The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
How can I make this so it only shows the un-cached templates for the admin only?
Thank you for the code, by the way. I am finding a few spots where I must have missed a few templates. ![]() |
#12
|
||||
|
||||
![]()
Something like this should work...
if ($bbuserinfo['usergroupid']=='6') { echo "<b>$templatename</b> isn't cached!<br>"; } |
#13
|
||||
|
||||
![]()
Thanks, Tigga.
![]() LOL filburt, you are gonna love this one. Take a look at your file cannedtext.php and you'll notice that you have $templateused instead of $templatesused in both spots. ![]() |
#14
|
||||
|
||||
![]()
Good tip, filburt1.
![]() |
#15
|
||||
|
||||
![]()
Just confirming, the code should end up looking like this:
PHP Code:
|
#16
|
|||
|
|||
![]()
Are you sure $bbuserinfo is in the global scope there?
|
#17
|
||||
|
||||
![]()
It's not, but I've added it. Is that the right place to put the echo bit?
|
#18
|
||||
|
||||
![]()
I assume it is since it works...
|
#19
|
||||
|
||||
![]()
And I also found out the hard way that you have to add $bbuserinfo to the global statement right above it or it won't work.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|