The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MySQL in a Plugin
I have a plugin with the following characteristics:
Hook: global_start Code: Code:
$userswith = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "mtweaks WHERE name='userswithimage'"); My vBulletin is version 3.6.9 and the plugin system is enabled. I also have Debug mode on. The issue at hand is the DB query is not executing. I cannot figure out why... I've tried using various references to $db ($this->registry->db, $vbulletin->db, $db, etc.) and none have seemed to work. (Some made the page fail to load) The query is valid and works in the custom ACP pages I made. Also, I've been looking at the SQL log in the debug section (the box at the bottom of pages) and it doesn't look like my query ever runs. So, I don't know why my query isn't running and I'd really appreciate some help getting it to work! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|