2008-03-22, 03:24 PM
Well in the welcome block i want to change the welcome_back variable.
what i want to do.
instead of:
Welcome back, apropowerranger. You last visited: 02-29-2008, 10:06 AM
i want:
AProPowerRanger, You Last Visited: 02-29-2008, 10:06 AM
what i do:
in global.php i change welcome_back to this:
in global.lang.php i change welcome_back to this:
at the end i get this error:
MAY SOMEONE PLEASE MAKE A CODE TO DO AS I WISH SO I CAN JUST ADD IT TO BOTH FILES?
GREAT THANKS,
APROPOWERRANGER!
what i want to do.
instead of:
Welcome back, apropowerranger. You last visited: 02-29-2008, 10:06 AM
i want:
AProPowerRanger, You Last Visited: 02-29-2008, 10:06 AM
what i do:
in global.php i change welcome_back to this:
$lang->welcome_back = sprintf($lang->$mybb->user['username'], $lastvisit);
before it was$lang->welcome_back = sprintf($lang->welcome_back, $mybb->user['username'], $lastvisit);
in global.lang.php i change welcome_back to this:
$l['welcome_back'] = "{1}, You last visited: {2}";
[b]before it was this:[/b]
$l['welcome_back'] = "<strong>Welcome back, {1}</strong>. You last visited: {2}";
at the end i get this error:
Parse error: syntax error, unexpected '{', expecting ')' in /hosted/subs/ulmb.com/u/n/mybb/public_html/mybb/global.php on line 254
MAY SOMEONE PLEASE MAKE A CODE TO DO AS I WISH SO I CAN JUST ADD IT TO BOTH FILES?
GREAT THANKS,
APROPOWERRANGER!