The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
i know if not conditional for a script :
Code:
if (THIS_SCRIPT != 'scriptname') {
stuff
}
but what is if not conditional for all files in admincp folder? i want to wrap some code so not used by files in admincp |
|
#2
|
|||
|
|||
|
I believe there is a constant VB_AREA that may be defined for all admin CP files...I don't have access to the code right now, so can't give you any more information at the moment.
|
|
#3
|
||||
|
||||
|
in admincp/global.php there is this line define('VB_AREA', 'AdminCP');
so the conditional writed like this? : Code:
if (VB_AREA != 'AdminCP') {
stuff
}
|
|
#4
|
|||
|
|||
|
Yes, AFAIK, that should work.
|
|
#5
|
||||
|
||||
|
i already try it, its not working, i open a file in admincp/thefile.php its still including the code in stuff
hmm wonder where is still wrong is it the conditional included all files in admincp? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|