The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin not Working - Is it me or vB?
I have a nice plugin here. Actually, I altered the main file itself first before I realized I could even put this in the plugin. Now, after copying my code over, it refuses to work, and I have no idea why. (It was working as a direct php page modification.)
The relevant info: Hook location: can_moderate_forum The code: PHP Code:
The plugin DOES run. It does NOT give any database or PHP errors. It just hits the first "IF" condition and dies. $do is the issue. So, here's the deal. This code goes in the function can_moderate. This function gets called several times when some page is loaded, sometimes with something in $do, sometimes with it left blank. I'm only concerned with when it has something in it, hence the condition and the reason that my SQL query checks for it. I suspect that it is only running this plugin one time - the first time that can_moderate is called. But I'm not sure, and I have no idea how to fix this even if that is indeed the problem. I've searched around a bit in vain. So I'm wondering if anyone can help me with this problem.... On a related note, I am VERY new at this, so go easy on me. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|