Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Members online status Details »
Members online status
Mod Version: 1.00, by Replicant (Member) Replicant is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

vB Version: 4.2.2 Rating: (0 vote - 0 average) Installs: 4
Released: 12 Feb 2015 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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 :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and in additional.css


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 07 Sep 2016, 21:46
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
Can this be used to display if any members of a specific usergroup are online?
Reply With Quote
  #3  
Old 08 Sep 2016, 01:02
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Real name: Mel
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.
__________________
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
  #4  
Old 08 Sep 2016, 15:02
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
Originally Posted by Replicant View Post
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.
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.
Reply With Quote
  #5  
Old 08 Sep 2016, 16:42
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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
Reply With Quote
  #6  
Old 08 Sep 2016, 17:05
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
Originally Posted by MarkFL View Post
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.
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.
Reply With Quote
  #7  
Old 08 Sep 2016, 18:03
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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
Reply With Quote
  #8  
Old 18 Jun 2017, 16:47
Gavo34 Gavo34 is offline
 
Join Date: Feb 2013
Works for vB 4.2.5

Find and change in template FORUMHOME :
(Only partial code was given above)



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Change to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:27.

Layout Options | Width: Wide Color: