PDA

View Full Version : $numberregistered works in some templates but not in others..



Kyrnel
Sun 8th Dec '02, 2:48pm
I am modifying my templates to display PM and Currently Active users info on the same line at the top of the screen.
So since they are on the same line they have to be in the same template. I used the forumhome_pmloggedin template first, but the currently active users info doesnt display. Its not my HTML, the variables ($numberregistered, $numberguests, $activeusers) dont work in that template.
So I moved the HTML(PM and logged in users) to forumhome_loggedinusers template. It works but that template appears for guests and the PM image doesnt work since obviously guests dont have PMs.
So I moved the HTML (PM and logged in users) into the forumhome_welcometext template and again, the Logged In users variables dont work.
It would make sense to me that those variables only work with the template they came from but they also work in the forumhome_unregmessage template (which allows me to display logged in user info to guests without using the forumhome_loggedinusers template). So this doesnt make any sense to me.
I need those variables to work in the forumhome_pmloggedin template. That way Im only showing PM info to users who are logged in and have enabled PMs.
I know I can get this work if I split up the info into two lines again, but I really dont want to take up that much room at the top of my forum.

Can anyone help with this problem or have any ideas on this?

Thanks..

Steve Machol
Sun 8th Dec '02, 2:50pm
The variable $numberregistered is not a global variable. You would need to hack this capability in. Try asking over at vbulletin.org.

Kyrnel
Sun 8th Dec '02, 2:51pm
Originally posted by Steve Machol
The variable $numberregistered is not a global variable. You would need to hack this capability in. Try asking over at vbulletin.org. Thank you for your very quick response. I will try over there.