![]() |
Mark sorry to highjack this thread ...but how about to show only 1 usergroup even if they belong to a secondary usergroup?
|
Quote:
Code:
$users_visited = $vbulletin->db->query_read(" |
Quote:
|
Quote:
|
Quote:
:up::up::up: |
I wasn't paying attention and just put in the change you made to weed out banned members. It gave me a server error. Had one of those DOH moments. When I replaced the old with the new in its entirety, it worked as advertised. Now all that shows is me and the supermod and the folks that just signed up for S&G.
Thanks again. If I could program like you my Arduino wouldn't be sitting on my desk gathering dust. |
Quote:
|
Quote:
--------------- Added [DATE]1451590749[/DATE] at [TIME]1451590749[/TIME] --------------- Quote:
PHP Code:
PHP Code:
This will list all users currently online who are a member of the selected usergroupid, and list them in descending order by the time of their last activity. I should also add, that if you wish to use multiple groupids (and have user avatars displayed), I recommend checking out Joe's (BirdOPrey5) product here: Current Staff Online Forum Sideblock and CMS Widget by BOP5 |
Quote:
--------------- Added [DATE]1451683913[/DATE] at [TIME]1451683913[/TIME] --------------- Mark ..is it possible to edit this so that when there is only one member of said group it says "1 Officer Online" when there is only one member (Officer) instead of "1 Officers Online" --------------- Added [DATE]1451685439[/DATE] at [TIME]1451685439[/TIME] --------------- Ooops ...nevermind Mark ...this doesn't work with for additional usergroups .... it will only display members of the primary usergroup .... can this be modified to show members if they also have the groupid as the additional usergroup? --------------- Added [DATE]1451685565[/DATE] at [TIME]1451685565[/TIME] --------------- Or allow to do an array of group ids? --------------- Added [DATE]1451692168[/DATE] at [TIME]1451692168[/TIME] --------------- Bummer !!! This works but for some reason it works for some of the members and not others ... at one point it listed one member 10 times ... --------------- Added [DATE]1451692371[/DATE] at [TIME]1451692371[/TIME] --------------- This is what is happening: https://vborg.vbsupport.ru/external/2016/01/24.jpg |
I did not realize there were new posts in this thread because of doublepost merges. Sorry about that. To allow multiple usergroups and to prevent repetition, try this (of course edit the $groupid/$groupname definitions):
PHP Code:
|
All times are GMT. The time now is 07:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|