MyBB Community Forums

Full Version: bad sql
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
im getting this error





Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/willow370/domains/tsagamers.net/public_html/forum/global.php(266) : eval()'d code on line 77


and my sites gone heywire www.tsagamers.net/forum
Are you using your vB nav theme?
yes
Did you do the modifications to the files?

in inc/functions.php

Find
//
// Outputs the contents of a page rendering variables
//
Add Under
//
function iif($expression, $returntrue, $returnfalse = '')
{
return ($expression ? $returntrue : $returnfalse);
}
//


inc/class_templates.php

Find
$template = str_replace("\\'", "'", addslashes($template));
Add Under
$template=str_replace("<if condition=","\".iif(",$template);
$template=str_replace("<then>",",\"",$template);
$template=str_replace("<else />","\",\"",$template);
$template=str_replace("</if>","\").\"",$template);
now i getting this




Fatal error: Cannot redeclare iif() (previously declared in /home/willow370/domains/tsagamers.net/public_html/forum/inc/functions.php:24) in /home/willow370/domains/tsagamers.net/public_html/forum/inc/functions.php on line 32
ok fixed it, now my postbits sections dont look correct

http://www.tsagamers.net/forum/showthread.php?tid=36
What kind of postbits do you want?
The vB or the normal MyBB ones?