The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, i'm little confused about using template hooks in vB 4, so i just ask here for little help. Hope someone helps me
On vB 3.8.x i had a little server status check in navbar. Template edit was: Code:
[ SERVER1 status: $status1 | SERVER2 status: $status2 ]<br /> Product: vBulletin Hook location: global_start Code:
include "/var/www/mysite.com/misc/serverstatus.php"; $server1=$serverstat1; $server2=$serverstat2; $status1=""; $status2=""; if ($server1 == 1) { $status1="<font color=green>ONLiNE</font>"; } else{ $status1="<font color=red>OFFLiNE</font>"; } if ($server2 == 1) { $status2="<font color=green>ONLiNE</font>"; } else{ $status2="<font color=red>OFFLiNE</font>"; } But now, on vB 4, it just looks like: [ SERVER1 status: $status1 | SERVER2 status: $status2 ] So i miss something and i cant figure out what ... Thanks in advance for help Holy |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|