1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Writing to a Table Which is not Mine

Discussion in 'XenForo Development Discussions' started by Kovu, Aug 22, 2014.

  1. Kovu

    Kovu New Member

    I've been currently developing a plugin where, when a user is banned, the system runs a cron which removes all of their post ratings (From Dark's PostRating plugin). However, I do not know how to write to his table. I seem to need a DataWriter, but I'm not sure if I can use his, or I need to make one myself?

    Any help is appreciated. I thought I could just instantiate a DataWriter and write directly to the table, but I'm not entirely sure if I can just do that.
     
  2. JulianD

    JulianD Well-Known Member

    Try to see through his code to find how he uses the Datawriter. Probably you will only need to learn how to use it instead of building one from scratch.
     
  3. Aayush

    Aayush Well-Known Member

    You can just instantiate his data writer to write to his table.
     
  4. Kovu

    Kovu New Member

    Fixed it, it was much more simple than I initially thought.
     

Share This Page