I followed your instructions. I created the templates, and put the PHP code into a file. I then inserted this into another PHP webpage using the include function.
It generated this error:-
Fatal error: Call to undefined function: gettemplate() in path to PHP file/homelogin.php on line 8
What am I doing wrong?
This is the full PHP file I created (called homelogin.php)
PHP Code:
<?
//User Center ****************
if ($bbuserinfo['userid']!=0) {
eval("\$login = \"".gettemplate('home_logout')."\";");
} else {
eval("\$login = \"".gettemplate('home_login')."\";");
}eval("\$userbits .= \"".gettemplate('home_user')."\";");
?>