The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Code:
Parse error: parse error, unexpected $ in /home/virtual/site26/fst/var/www/html/forums/global.php(315) : eval()'d code on line 1 act ![]() It has something to do with my phpinclude template, (when called from the global.php file (root directory)) which consists of : Code:
// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
//Administrative/Moderator Login
if ($bbuserinfo[usergroupid]==6) { //Admins
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/admin/index.php\"><b>Admin Login</b></a><br>";
} elseif ($bbuserinfo[usergroupid]==5) { //Co-Admins
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/coad/index.php\"><b>Co-Admin Login</b></a><br>";
} elseif ($bbuserinfo[usergroupid]==7) { //Mods
$adminlogin = "<a href=\"http://www.darkblazes.com/forums/mod/index.php\"><b>Mod Login</b></a><br>";
} else { //Everyone else
$adminlogin = "";
}
//End Login Code
//Refer start
if ($bbuserinfo[userid]==1) { //hellsatan
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==2) { //arunan
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==3) { //azrael
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[userid]==4) { //skeeve
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} elseif ($bbuserinfo[usergroupid]==7) { //mods
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont><br><a href=\"http://www.darkblazes.com/squirrelmail\">Check your Mail!</a>";
} else { //Everyone else
$cprefer = "<normalfont><a href=\"refer.php?s=$session[sessionhash]\">Refer Friends</a><smallfont> - You can refer your friends with this link!</smallfont><br><normalfont>Your Referring link is : <b>http://www.darkblazes.com/forums/index.php?s=&blaze=$bbuserinfo[userid]</b></normalfont>";
}
//Refer end
Satan |
|
#2
|
||||
|
||||
|
What was the last thing you changed in that?
It all looks correct to me.... If I were you, I'd go and delete one line at a time until the error goes away |
|
#3
|
||||
|
||||
|
The last thing I did was add Logician's dfh_announcement thing, and that didnt change anything
![]() Satan |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|