The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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:
|