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

Are clashes between Addons/Plugins less likely with Xenforo ?

Discussion in 'General XenForo Discussion and Feedback' started by Digital Doctor, Jan 26, 2011.

Thread Status:
Not open for further replies.
  1. Digital Doctor

    Digital Doctor Well-Known Member

    Question: Is there any fundamental design reasons why Xenforo will have less Mod clashes than vB ?
    Does anyone know more details about how Xenforo's core is better designed to keep prevent Addons / Plugins from clashing ?
    fuli5 likes this.
  2. Anthony Parsons

    Anthony Parsons Well-Known Member

    I believe the Zend Framework has a lot to do with it, and the shift to pretty much completely OOP coding.
    Digital Doctor likes this.
  3. Kier

    Kier XenForo Developer Staff Member

    We actually use very little of the Zend Framework - the vast majority of the code that runs XenForo is bespoke. The plugin system in particular is entirely unique to XenForo.

    To answer the question though, yes, collisions are far less likely and better handled by XenForo than by the vBulletin plugin system due to the fact that XenForo's plugin system has strict control over the data exposed to each callback function, whereas vBulletin's hooks for the most part exist in global scope, allowing them to modify just about anything at will. While the approach we took when we wrote vBulletin's hook/plugin system allows for great flexibility, it has the caveat that it's virtually impossible to avoid collisions, or to ensure backward compatibility through newer versions. Hence why we did it differently for XenForo.
    dutchbb, R_A, Brandon Sheley and 13 others like this.
  4. Shadab

    Shadab Well-Known Member

    Simply put, Better architecture. :)

    Kier and Mike have done a really amazing job in creating the underlying framework. The framework upon which this Forum application sits. The clear logical separation of different application parts goes a long way in ensuring you can elegantly reuse something without resorting to hacks.

    vB doesn't keep mods separate? I actually think, with vBulletin, it was quite the opposite. XenForo provides a level playing field for all the Addons; and better integration with the core components. So there's less hacking needed to just "get" things to work. The result? Less chance of addons stepping on each others' toes.

    There are well defined interfaces for handling things such as attachments, likes, search, alerts, content moderation, news feeds, etc. Addons can implement each of these features without interfering with other addons or the core itself.
    Fuhrmann, Darkimmortal, Mike and 2 others like this.
  5. Digital Doctor

    Digital Doctor Well-Known Member

    bespoke = custom-made for those West of the Atlantic Ocean.
  6. Anthony Parsons

    Anthony Parsons Well-Known Member

    The official... geeky answer, always kicks butt... nice! [​IMG]
    That's how I put it often too... people ask me, I say... awesome architecture.
  7. Anthony Parsons

    Anthony Parsons Well-Known Member

    I was actually just responding to Miko about his work... and XF being the foundation for his work, I have never seen such innovative or creative work able to be performed on other forum platforms as I'm seeing in development and "what's to come" developments from people surrounding XF.

    Digital Doctor likes this.
  8. Digital Doctor

    Digital Doctor Well-Known Member

    I think:

    [​IMG]Minimized Addon Clashing Infrastructure

    is a major feature, and will warm the hearts of experienced forum admins.
  9. ragtek

    ragtek Guest

    That's not true:p

    If the add-on coder have no idea what he's doing (like me some time ago) it will crash all the other add-ons running on this event*scnr*
    This couldn't happen in vb, because you hadn't to run the parent action...
    If something went wrong, you got an error, now with XF, it throws no error if you don't run the parent method.
    In some cases you'll never realize that the other listeners weren't called
  10. Digital Doctor

    Digital Doctor Well-Known Member

    Do you have any suggestions how to minimize this ?
  11. Digital Doctor

    Digital Doctor Well-Known Member

    Anyone had any addon conflicts ?
  12. ragtek

    ragtek Guest

    yes, some have still conflicts (because i'm too lazy...)
    if a add-on overrides a original method and you don't call the parent method, some important things could be ignored...
    tenants likes this.
  13. Bob

    Bob Well-Known Member

    yes, one of xfrocks addons (BD banking) conflicts with lnblogs (returns an error on likes). Ran into it last night, have not had a chance to inbox either of them about it.
  14. Jeremy

    Jeremy Well-Known Member

    I actually wrote BBCM with a major clash in it. I didn't think of it till DarkImmortal's hack malfunctioning. It'll be fixed when I get time to start to finish it next week. :)
  15. Jaxel

    Jaxel Well-Known Member

    Yeah... with my RecentThreads block in XenPorta. Several other mods are expanding the core functionality of the Thread model, so when I tried to expand the core functionality the same way, I started getting duplication errors. I fixed this by instead of expanding on the core model, I simply used the existing functions and put it together in my own thread builder.
  16. GodForum.com

    GodForum.com Well-Known Member

    simply put ... xF is leading us to the promise land :)
  17. Slavik

    Slavik XenForo Moderator Staff Member

    Without being offensive, i'm actually gobsmacked, is this not a term the UK and US shares?!
  18. Digital Doctor

    Digital Doctor Well-Known Member

    I'll say it is almost never used.
  19. EQnoble

    EQnoble Well-Known Member

    Well it is used in the US, though I admit it is not often...just it's not in a custom tailored clothing sense...it is used as the past tense of bespeak which can literally mean to speak to, respond to, to address or to be accounted for. So in the context it was used (I believe) it would not be the same in both places. But funny thing is the present tense of the word can mean to request ahead of time or to engage in advance. I just found that to be a bit of awesome right there given the OP. LOL
  20. Digital Doctor

    Digital Doctor Well-Known Member

    What was the details of the conflict ?
Thread Status:
Not open for further replies.

Share This Page