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 />
And used this plugin:
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>";
}
and it looks like: [ SERVER1 status:
ONLiNE | SERVER2 status:
OFFLiNE ]
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