The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
GLOBAL var for admincp?
Is there some sort of global variable which defines whether or not you are in the AdminCP?
What I am trying to do is following condition within hook: fetch_userinfo if (!$within_admincp) { // do code here... } |
#2
|
|||
|
|||
Perhaps try one of the constants that is defined at the start of the admincp global.php file:
Code:
// identify where we are define('VB_AREA', 'AdminCP'); define('IN_CONTROL_PANEL', true); |
#3
|
||||
|
||||
works - thanks Calorie
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|