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

Events / Triggers list for Xenforo ?

Discussion in 'XenForo Development Discussions' started by vlom31, May 16, 2016.

  1. vlom31

    vlom31 Member

    Hi there,

    Is there any sort of comprehensive list of all the events happening in xenforo ?

    I want to implement MixPanel to track all the events, like user signin up, creating thread, posting a message, liking a post etc ... do I have to go looking for these events in the hard code or is there an easier way ?



    Cheers,
    Mehdi
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not really. But the code is somewhat self-documenting if you look through the controllers:

    library/XenForo/ControllerPublic

    Every action has a controller function.
     
    vlom31 likes this.
  3. vlom31

    vlom31 Member

    Cool thanx !

    Do you know how modifying the controller files might be affected by future xenforo updates of my forum ?

    Will I have to remodify them at each update or is this something that's handled ?


    Mehdi
     
  4. thedude

    thedude Well-Known Member

    The correct way to "hook" into a controller, or other parts of the core, is by creating an add-on and using Event Listeners. Editing the actual XenForo files (such as the controller files) will require you to re-edit them after each upgrade and isn't the recommended way to do things.

    There are some guides on here for creating add-ons and there are countless free add-ons you can download to see how they work.
     
    vlom31 likes this.
  5. vlom31

    vlom31 Member

    Thanx a lot @thedude , I figured but my previous developer did it in the code of the xenforo files ... i'm redoing all of it so I'll fix it and use the correct method from now on.



    Mehdi
     

Share This Page