Announcement
Collapse
No announcement yet.
Visitors in the Last X Hours Module
Collapse
This is a sticky topic.
X
X
-
Or are you only adding the secondary Administrators usergroup to Bot users and not to all Registered Users? If so, then you're good.
- Top
- Translate
- Bottom
-
Why not just create a new usergroup off Administrators usergroup and name it as "Registered User Bots" and then move all bot users to that usergroup.
- Top
- Translate
- Bottom
-
Wait, adding Administrator as secondary usergroup to Registered Users usergroups grants all regular users (not just Bot users) with Administrative privileges that you set. That's dangerous! It's unrelated to the mod issue but I don't think you should do that.Originally posted by flohse View PostI want the bots to show up as regular users. As far as I remember the bots need elevated privileges for the mods "Welcome Post for New Users" and "Auto-Create Flag Report Topic".
- Top
- Translate
- Bottom
-
Thanks for the detailed responses. Let me tray again on my end. I didn't have that odd Registered Users primary usergrop and Administrators secondary usergroup set up.
- Top
- Translate
- Bottom
Leave a comment:
-
Hello Glenn,
here is the requested information.
No, Affected users have this setting:Originally posted by glennrocksvb View PostThe affected users are all Registered Users, right?
I want the bots to show up as regular users. As far as I remember the bots need elevated privileges for the mods "Welcome Post for New Users" and "Auto-Create Flag Report Topic".
No. They don't.Originally posted by glennrocksvb View PostDo Registered Users usergroup have Username HTML Markup configured in the Usergroup Manager? It looks like it doesn't but I want to confirm.
But Administrators have.
Yes.Originally posted by glennrocksvb View PostIf you set the mod to only show usernames without avatars, does the same issue occur?
It is the same with unmodified themes, i. e. "Gradient":Originally posted by glennrocksvb View PostTry changing to a different style/theme. Does the issue still occur?
with only text:
Already mentioned in post #172.Originally posted by glennrocksvb View PostWhat is your vB and PHP versions?
FrankOriginally posted by flohse View PostvBulletin 6.1.3
MySQL 8.0.43-0ubuntu0.24.04.1
PHP Version 8.3.6
- Top
- Translate
- Bottom
Leave a comment:
-
flohse, I couldn't reproduce the issue on my end. Please answer the following additional questions:- Try changing to a different style/theme. Does the issue still occur?
- What is your vB and PHP versions?
- Top
- Translate
- Bottom
Leave a comment:
-
flohse, please answer the following:- The affected users are all Registered Users, right?
- Do Registered Users usergroup have Username HTML Markup configured in the Usergroup Manager? It looks like it doesn't but I want to confirm.
- If you set the mod to only show usernames without avatars, does the same issue occur?
Last edited by glennrocksvb; 08-21-2025, 06:11 PM.
- Top
- Translate
- Bottom
Leave a comment:
-
flohse, thanks for providing detailed and helpful information. I'll debug on my end and let you know.
- Top
- Translate
- Bottom
Leave a comment:
-
Hello Glenn,
I think I have tracked down the cause for this issue to a code fragment in the template widget_vbmods_last_visitors.
The first block in the "if" statement seems to be causing the problem.
If you remove the first block everything is shown correctly.Code:<vb:if condition="!empty($usergroups[$usergroupid])"> <vb:if condition="!empty($usergroups[$usergroupid][0])"> {vb:set displayUsername, {vb:raw usergroups.$usergroupid.0}} {vb:strcat displayUsername, {vb:raw username}} {vb:strcat displayUsername, {vb:raw usergroups.$usergroupid.1}} <vb:else /> {vb:set displayUsername, {vb:raw username}} </vb:if> <vb:else /> {vb:data musername, user, fetchMusername, {vb:raw onlineUser}} <vb:if condition="$musername != $username"> {vb:set displayUsername, {vb:raw musername}} {vb:set usernameTags, {vb:php explode, {vb:raw username}, {vb:raw musername}}} {vb:set usergroups.$usergroupid, {vb:raw usernameTags}} <vb:else /> {vb:set displayUsername, {vb:raw username}} {vb:set usergroups.$usergroupid, {vb:php array, '', ''}} </vb:if> </vb:if>
Before removal:
After removal :
Can you please explain what the first block in the "if" statement is needed for and possibly fix this for the community? I don't want to break anything else.
Thanks in advance.
Frank
- Top
- Translate
- Bottom
Leave a comment:
-
Hello Glenn,
I am having a strange issue with this mod. I have the following user accounts.:
The displaynames are shown fine everywhere in the forum except in the specific Last 24 Hours module.
Latest Topics for example is ok.
But the Visitors in the Last 24 Hours module shows garbled displaynames after the third name.
I have checked the database with phpMyAdmin. The data is correct. The admincp also shows the correct displaynames.
I hope, this is simply a display problem of this module and can easily be fixed.
Can you please help and advise what I can provide for further troubleshooting?
Thanks.
Frank
vBulletin 6.1.3
MySQL 8.0.43-0ubuntu0.24.04.1
PHP Version 8.3.6
- Top
- Translate
- Bottom
Leave a comment:
-
I know. I can change the phrases for other modules in the Sitebuilder but not for your specific module. So I think it has something to do with how this module handles phrases?
Frank
- Top
- Translate
- Bottom
Leave a comment:
-
flohse, not being able to translate Module title is not specific to this mod only. It's on all modules.
But starting in vB 6.1.2, vBulletin started support for using phrases in module titles. Please see the Translations section in their release notes linked below:
<h1>vBulletin 6.1.2 Changes and Updates</h1> <p>vBulletin 6.1.2 is available for download. vBulletin Cloud upgrades will begin in within 7-14 days.</p> <h2>Gallery Channels</h2> <p>Gallery Channels are a new top-level channel type centered around photos. Gallery Channels act like
- Top
- Translate
- Bottom
Leave a comment:
Latest Posts
Collapse
-
by ChunkHello!
My name is Chunk (nickname). Im current graduated from my local college for Web Development. Today I will be exploring vBulletin...07-11-2026, 06:08 AM -
Get Affordable and Fast VPS for vBulletin -
by PitmanLol... Like I said, I am Shon.
I am I user and administrator of vBulletin since 2002 (good old days) and I joined here because I recently...07-08-2026, 02:29 PM

Leave a comment: