![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||
This template edit will show if any members are logged in or not by displaying the online status in red for offline or green for online.
![]() ![]() Edit the phrase "currently_active_users" and change to "[Your Forum Name] Members" Create new phrases "online_now" value="ONLINE NOW!" and "offline_now" value= "OFFLINE" or whatever you want displayed Find and change in template FORUMHOME :
To:
and in additional.css
Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
Comments |
#2
|
||||
|
||||
Can this be used to display if any members of a specific usergroup are online?
No members have liked this post.
|
#3
|
||||
|
||||
I imagine it could. I don't have a vb4 install anymore to work with so I couldn't tell you how to do it. I'm sure one of the vb4 devs on here could help you out with that. I only work on vb5 mods now.
No members have liked this post.
|
#4
|
||||
|
||||
I had thought about using is_member_of (and someone PM'd me about it as well), I'm just not sure if it would actually check anyone logged in, or if it just pulls from the person viewing the page. I will play with it and post up here if I find a solution which works.
No members have liked this post.
|
#5
|
||||
|
||||
When you use the is_member_of() function, you typically need to pass 2 arrays as parameters, the first should contain the usergroup information of the user in question, and the second array is a list of usergroupids you are checking for.
So, for example suppose you have the userid of the user in question (in $userid), what you could then use as a condition is: is_member_of(fetch_userinfo($userid), array(X, Y, Z)) which will return true if the user with $userid as their userid is a member of any of the usergroups with usergroupid X, Y, or Z.
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by MarkFL
Right, which is why I don't think it would work for this situation, as it will pull the info for a specific user, not any user currently online. Unless i loop through all online users, which I do not want to do, as that would cause some bad load times if there are a lot of users.
![]()
No members have liked this post.
|
#7
|
||||
|
||||
I believe BOP5 has a product that will show staff online in the sidebar, which could suit your needs.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons The following members like this post: Dragonsys
|
#8
|
||||||||
|
||||||||
Works for vB 4.2.5
Find and change in template FORUMHOME : (Only partial code was given above)
Change to:
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:10.