First go to the "# Start templates #" section in global.php and add your two templates in the line that beginns with "$templatesused=."
Then add this before the line "$newpmmsg=0;"
if ($bbuserinfo['phpchatsys']==1) {
eval("\$phpchatsystem = \"".gettemplate('phpchaton')."\";");
} else {
eval("\$phpchatsystem = \"".gettemplate('phpchatoff')."\";");
}
This presumes that value "1" in the user table means that it should be on.
|