The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Quote:
Code:
global $phrasegroups; if (!in_array('bop5', $phrasegroups)) { $phrasegroups[] = 'bop5'; } |
#12
|
|||
|
|||
The database error results from the query which takes place after that hook. That code wouldn't prevent it.
|
#13
|
||||
|
||||
Then maybe this:
Code:
global $phrasegroups; if (!in_array('bop5', $phrasegroups) && defined('THIS_SCRIPT')) { $phrasegroups[] = 'bop5'; } |
#14
|
|||
|
|||
The in_array check isn't really needed. Either way it's going to result in a database error. I'd just leave it out and do what BOP is doing.
|
#15
|
||||
|
||||
Okay, you talked me into it. This is the first time I have dealt with this.
Code:
if (defined('THIS_SCRIPT')) { global $phrasegroups; $phrasegroups[] = 'cprofilefield'; } |
#16
|
||||
|
||||
If you want t be different Boofo instead of testing for the non-existence of THIS_SCRIPT you could check for the existence of CVS_REVISION which in my (limited) testing seems only defined in AdminCP scripts.
|
#17
|
||||
|
||||
As long as THIS_SCRIPT works, I'm fine with that. Thanks for the heads-up on it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|