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

XF 2.0 Check for active add-on

katsulynx

Well-known member
#1
What's the simplest way to check for an installed add-on, for example if you want to provide additional functionality depending on whether the resource manager is installed or not? Doing a query or a finder lookup seems like a lot of overhead.
 

Mike

XenForo developer
Staff member
#2
Installed or active? If active, the app/container has "addon.cache" which will tell you all of the add-ons active and their version IDs. If you really want to do something based on the install status itself, you'd need some sort of query (such as against the add-on table).
 

katsulynx

Well-known member
#3
Active indeed, not installed. Basically about hiding/showing some tabs depending on whether a third-party add-on is active or not, so users don't run into not working functionality.