Noel 4 DMB
04-27-2002, 04:03 PM
I started placing the "Welcome Back, ***" Message on the home page, and i got that working, but now, the damn thing won't put up a default Unregistered message.
Im using SSI to call up the file since the home page is not in the forum folder. This is the coding i've got in my ssi-welcome.php3 file.
<?php
error_reporting(7);
$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php3');
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");
eval("dooutput(\"".gettemplate('forumhome_welcometext')."\");");
} else {
$welcometext = "";
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
}
?>
Can someone please help me figure out how I can both get this to work, and also edit the rest of the text that is displayed? Eventually I would like to display some profile information along with the welcome message. Thanks guys!
Noel
Im using SSI to call up the file since the home page is not in the forum folder. This is the coding i've got in my ssi-welcome.php3 file.
<?php
error_reporting(7);
$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php3');
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";");
eval("dooutput(\"".gettemplate('forumhome_welcometext')."\");");
} else {
$welcometext = "";
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
}
?>
Can someone please help me figure out how I can both get this to work, and also edit the rest of the text that is displayed? Eventually I would like to display some profile information along with the welcome message. Thanks guys!
Noel