Warning:
This hack causes
serious problems if your board has table prefixes. If it is installed in a board where tables are prefixed, the board start producing DB errors and it won't even allow you to access admin cp and disable product. So if you dont know what you are doing, you'll get stuck in a very bad position.
Problem & Fix:
This query in the pluggin is problematic:
PHP Code:
SELECT p.*, po.`order` FROM " . TABLE_PREFIX . "pluginorder AS po
JOIN plugin AS p ON(p.pluginid = po.pluginid)
ORDER BY p.hookname, po.order
It should be:
PHP Code:
SELECT p.*, po.`order` FROM " . TABLE_PREFIX . "pluginorder AS po
LEFT JOIN " . TABLE_PREFIX . "plugin AS p ON(p.pluginid = po.pluginid)
ORDER BY p.hookname, po.order
If you installed the hack and stuck with an DB error and you can't even access admin cp here is the fix for you:
Edit includes/init.php, find:
PHP Code:
if ($vbulletin->options['enablehooks'] OR defined('FORCE_HOOKS'))
Before that add:
PHP Code:
$vbulletin->options['enablehooks'] = FALSE;
Upload init.php.
This will cure DB error and now you can login to admin cp. Go to products and uninstall the product. Now delete the line you edit to init.php, reupload init.php and you are done.
@hambil : Sorry to post this into your thread and I appreciate your sharing your work with other vb members but I feel obligated to post this so that people won't get into trouble. It maybe a good idea to apply the fix I provided to your pluggin. Sorry again!