It works flawlessly....but I have one thing more to ask to you. I worked two hours on it for trying it to get to work. Could you me explain every line of code what it does? Correct me plz if my thoughts of the code are wrong...
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\"; ");
Here I assum a template get assigned to the
variable $loggedinusers???
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
!= means???
$username gets assigned to $bbuserinfo['username'] but what does this code $bbuserinfo['username'] do?
eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";") ;
Assigning a template again I assume
} else { Ok, this is a part of the IF then ELSE statement
$welcometext = "";
What does this mean and why did you do it?
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
Why do you assign these both eval lines??
Hope you are willing to learn me some code...
|