Originally posted by glennrocksvb
View Post
Announcement
Collapse
No announcement yet.
Visitors in the Last X Hours Module
Collapse
This is a sticky topic.
X
X
-
Found a bug introduced in v1.8 where the visitor count is incorrect if a banned user is online but excluded in the Last Visitor list. The count is still including the online banned user. I will release v1.9 shortly to fix this issue.
Last edited by glennrocksvb; 02-07-2022, 11:01 AM.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
-
v1.9 released! Version history updated in the first post. Customers notified.Originally posted by glennrocksvb View PostFound a bug introduced in v1.8 where the visitor count is incorrect if a banned user is online but excluded in the Last Visitor list. The count is still including the online banned user. I will release v1.9 shortly to fix this issue.

My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
By using Sitebuilder, is it possible as usual to restrict the display according to the usergroup?Packaged as a Module. So you just drag and drop it onto the page using Sitebuilder
By using Admincp, is there a template that we can customize?
- Top
- Translate
- Bottom
Comment
-
Yes, just like any other default vB5 modules where you can set module view permissions by usergroups.Originally posted by lange View PostBy using Sitebuilder, is it possible as usual to restrict the display according to the usergroup?
What do you want to customize? To customize visitor count message (if enabled), you can update its phrase in the Phrase Manager as described in Feature #9 in the first post. If you want style customizations, CSS code is provided in the first post. Further style changes could be provided here if requested. Mostly, the customizations can be done in the module configuration itself. I posted an updated screenshot of the latest available module configuration in the first post.Originally posted by lange View PostBy using Admincp, is there a template that we can customize?
Yes. This mod is installed here. You can check it on your phone or use the mobile emulator feature on Chrome DevTools.Originally posted by lange View PostIs it responsive (mobile) ?

My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Your product is interesting. I'm sure it works.
I'm just exploring the possibilities for use in my custom styles.What do you want to customize?
- The Builder will allow me to display or not your module according to the group of users. It's OK.
- The template would allow me to display a placeholder (an image) instead of the module i.e. your module would be hidden. The placeholder would encourage guests to connect. In this case, the widget_onlineusers template is customized.
Yes, it's responsive. I checked by using the built-in Responsive Design Mode in FireFox.
- Top
- Translate
- Bottom
Comment
-
Yes that can be done to any module not just the Last Visitors module using pure CSS based on the logged-in user's usergroup. You could cover the module content with an image or do the same CSS trick that the Blur Replies mod is doing, to any module. Please see sample screenshot below.

My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Nice, it's more than I expected.
I am not a coder. If I buy your product, could you provide the CSS to display your screenshot?
Last question: I don't see the Who's Online avatars on your website. Is it compatible with this product or will I have to choose one or the other?
- Top
- Translate
- Bottom
Comment
-
Sure I can provide you the CSS.
It's up to you if you want to show both modules. I show the Who's Online module only for Administrator on this site. So only me can see it here.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
- Top
- Translate
- Bottom
Comment
-
lange, here you go...
Add the following CSS in css_additional template:
This blurs out the module to usergroup with ID=1 which is for unregistered users. Adjust the values accordingly.Code:#vb-page-body[data-usergroupid="1"] .vbmodsthatrocks-last-visitors-widget { position: relative; } #vb-page-body[data-usergroupid="1"] .vbmodsthatrocks-last-visitors-widget:before { content: 'Login to view this module.'; /* Change text as desired */ position: absolute; left: 50%; top: 50%; /* This is vertically centered. If you want it on top, change 50% to 100px */ transform: translate(-50%, -50%); color: red; font-size: 25px; font-weight: bold; background: rgba(255,255,255,0.9); padding: 3px 10px; z-index: 1; border-radius: 5px; box-shadow: 1px 1px 5px rgba(0,0,0,0.4); text-align: center; } #vb-page-body[data-usergroupid="1"] .vbmodsthatrocks-last-visitors-widget .widget-content { -webkit-filter: blur(25px); /* Adjust blur radius as desired */ filter: blur(25px); /* Adjust blur radius as desired */ -ms-user-select: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; pointer-events: none; }Last edited by glennrocksvb; 02-07-2022, 05:11 PM.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
Is this when showing both the avatar and username at the same time? Since showing the username is done only via pure CSS (post #109), the HTML markup can't be used. This has been the case even before the v1.8 and v1.9 updates. I would need to update the module to be able to physically add the username to the HTML source and use the Username HTML Markup assigned for a user.Originally posted by USC View Postglennrocksvb new version is working however "Username HTML Markup" is not showing up
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
-
v1.10 released. Customers notified. If you've added custom CSS before to show both avatar and username, you have to remove it first before installing v1.10. Please see updated first post for more details.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
Comment
-
- Top
- Translate
- Bottom
- Likes 1
Comment
-
Thanks for confirming v1.10 works on vB 5.6.6 and PHP 8.
- Top
- Translate
- Bottom
-
And cherry on the sunday, by modifying your widget_vbmods_last_visitors template, I think I'll be able to add my placeholder image instead or above your custom blur. I will test in the next days.
Very glad with this product.
- Top
- Translate
- Bottom
-
If you modify the mod template, upgrading the mod in the future may prevent the XML product installation process to overwrite the edited template. You might be able to add the placeholder image using just CSS.
- Top
- Translate
- Bottom
-
I know, it's the price to pay to go through the templates but I keep a backup of all the edited templates and I use the software Beyond Compare to compare the templates.
I'm not familiar with CSS but I'll give it a try too.
- Top
- Translate
- Bottom
-
Hi.
The following error message is displayed when I save the template without any modification inside the template. The template is not saved.
Tested on default style.
PHP 8.0.15 / vB 5.6.6
The following error occurred when attempting to evaluate this template:
The template contains a conditional expression using a function not defined as safe.
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
- Top
- Translate
- Bottom
Comment
-
I can save the template without this conditional:
Code:<vb:comment>Use a simple mobile device check to request 'thumb' size or not</vb:comment> <vb:if condition="isset($_SERVER['HTTP_USER_AGENT']) AND stripos($_SERVER['HTTP_USER_AGENT'], 'mobile') !== FALSE"> {vb:set avatarSize, {vb:php intval, {vb:raw avatarSizeMobile}}} <vb:else /> {vb:set avatarSize, {vb:php intval, {vb:raw avatarSizeDesktop}}} </vb:if>Last edited by glennrocksvb; 02-09-2022, 09:29 PM. Reason: Fixed code formatting by enclosing in [code] tag.
- Top
- Translate
- Bottom
-
That code is safe and harmless. vBulletin only has a limited set of PHP functions that can be used in a template. You can ignore that warning and proceed to saving the template successfully with or without your changes. But for peace of mind, I will fix this and release it soon.
- Top
- Translate
- Bottom
-
I was a little surprised that removing that block of code didn't produce an error or warning in PHP 8 because the $avatarSize variable wouldn't be initialized. But regardless, without this code, if you set Avatar Size for Mobile option to 50px or less, it would have a slight performance hit on mobile devices because larger avatars would be used instead of just thumb-sized images.
- Top
- Translate
- Bottom
Latest Posts
Collapse
-
Reply to some ideas for new modsin Chit Chatby desmomax
I finally created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that...
Today, 03:59 AM -
by flohseHi Glenn, what do you think about adding "Like Counts" similar to "Like Counts on Postbit and Profile" (when this mod is in use) in...Yesterday, 11:28 PM
-
Reply to push notification prompt?by desmomaxhy glenn
have you thought about this?Yesterday, 05:44 AM

Comment