![]() |
Detecting if a product is installed and enabled?
You can see if another product is installed by looking at
PHP Code:
|
[sql]SELECT * FROM product WHERE productid='foobar' AND active=1[/sql]
Or, to avoid Queries and to be sure that not just the Product is enabled but also the Plugin(s): Set a Flag with the Plugin(s) and check that. |
the value of $vbulletin->products['ProductID'] should be 0 for not active, or 1 for active. Enabling/disabling a product however is not updating the datastore. This is a bug that is solved in RC3: Enable/disable product don't update products datastore
|
**groan** Does that mean we have to reinstall all the products/plugins?
|
That i can not answer, but solving the bug itself will not need a new install of the products.
|
All times are GMT. The time now is 08:14 AM. |
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:
|