The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Mark sorry to highjack this thread ...but how about to show only 1 usergroup even if they belong to a secondary usergroup?
|
#12
|
||||
|
||||
Quote:
Code:
$users_visited = $vbulletin->db->query_read(" SELECT user.* FROM " . TABLE_PREFIX . "user AS user WHERE lastvisit >= " . TIMENOW . " - " . 7 * 86400 . " AND usergroupid = _YOURUSERGROUP_ ORDER BY lastvisit DESC "); |
Благодарность от: | ||
CAG CheechDogg |
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
Quote:
|
#15
|
||||
|
||||
Quote:
:up::up::up: |
Благодарность от: | ||
setishock |
#16
|
|||
|
|||
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. |
#17
|
||||
|
||||
Any progress on this Senor Mark?
|
#18
|
||||
|
||||
I had some buddies show up unexpectedly tonight, and many beers were quaffed, and I decided to put off anything serious until tomorrow.
--------------- Added [DATE]1451590749[/DATE] at [TIME]1451590749[/TIME] --------------- You will likely want to set "Cache Time (in minutes)" to 0 so that this information is always current. This is the PHP content I used on my dev site to show all Math Helpers currently online: 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 |
Благодарность от: | ||
Dragonsys |
#19
|
||||
|
||||
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: |
Благодарность от: | ||
MarkFL |
#20
|
||||
|
||||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|