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

How can I extend Helper classes?

Discussion in 'XenForo Development Discussions' started by Mr. Goodie2Shoes, Jun 25, 2012.

  1. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    okay... so I am thinking of adding an awesome feature for my add-on 'XenSocialize' and for that I need to 'extend' XenForo's Facebook Helper class... but I couldn't find any code-event-listener that miht suite for the job... any help will be really appreciated :)
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Yeah unfortunately there isn't a code event listener for that.

    However, this does include a listener for it:

    http://xenforo.com/community/resources/developer-kit.246/

    What I don't know, however, is how you'd go about implementing that into your add-on.

    I guess with guiltar's permission, you'd be able to include his add-on in your add-on deployment so your installer would install his add-on (and therefore the correct listeners)
     
    Mr. Goodie2Shoes likes this.
  3. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    umm... I don't see any listener function related to the helpers o_O
     
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    I guess I should 'extend' all the relating controller classes :D
     
  5. guiltar

    guiltar Well-Known Member

    You probably mean Extra Code Events Addon.
    It extends only controller helpers. It is possible sinse they are never called directly.
    But nothing to do with static helpers.
     
  6. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    ah damn... the Facebook Helper is a static one :(
     

Share This Page