![]() |
detectiing installed plugins and products.
Is there a built in vb function to detect if a specific plugin or product is installed?
|
Not that I know of, though all you would need to do is a simple query to check if something exists.
|
Ah, look what I found. :D
PHP Code:
|
All loaded (ie. installed & Active) plugins are in the $vbulletin object. Think $vbulletin->product(s) or $vbulletin->plugin(s).
Too lazy to go check now which one Edit: it is $vbulletin->products['product_id'] |
That's even better since I will know the product id. Thanks
Of course, if it's turned off... |
Quote:
|
I think that it will not be in the array if it is turned off (if you look at it from a functional POV, then turned off is the same as not installed).
But i already suggested sometime ago at vb.com, to always include in the array, but add a flag if it is active or not. |
They could just do it this way.
PHP Code:
|
All times are GMT. The time now is 04:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|