The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Online users counter...
Hai there,
I want to have the online users amount in the right top corner of my forum. The template that arranges that is called forumhome_welcometext . So what I did was a copy of $totonline from the template forumhome_loggedinusers to my forumhome_welcometext but the amount of users does not show. See snapshot plz...the amount of users online should be mentioned between the words "zijn" en "gebruikers" What code do I need to assign to index.php so that I can use the $totalonline variable in my template forumhome_welcometext Plz help... |
#2
|
||||
|
||||
ok, I know the coding, I will contact u back as soon as I get it..
|
#3
|
||||
|
||||
PHP Code:
|
#4
|
|||
|
|||
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... |
#5
|
||||
|
||||
I've tried to explain it in easy language - I hope I helped you with this... I guess you are dutch, but i'm not sure, so if you still need help, then I can also explain in dutch if you want |
#6
|
|||
|
|||
I am DUTCH indeed, are you DUTCH too???
Thanx for your explaining... |
#7
|
||||
|
||||
yes, i am dutch.
|
#8
|
||||
|
||||
I am sry but somehow, it posted the old coding, I am sure i changed the coding, but it was showing the old coding, I changed the coding again, sry..
|
#9
|
||||
|
||||
These 2 lines shouldn't be there
PHP Code:
PHP Code:
|
#10
|
|||
|
|||
Why should those 2 lines not be there???
I had those lines there and worked fine...I changed it because you said so but now I am asking why is that? Could you explain it 2 me? Thanx anyway for your effort... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|