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
-
Last edited by glennrocksvb; 02-07-2022, 11:01 AM.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
-
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.
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
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
-
Originally posted by lange View PostBy using Sitebuilder, is it possible as usual to restrict the display according to the usergroup?
Originally posted by lange View PostBy using Admincp, is there a template that we can customize?
Originally posted by lange View PostIs it responsive (mobile) ?
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Your product is interesting. I'm sure it works.
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.
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
lange, here you go...
Add the following CSS in css_additional template:
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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Originally posted by USC View Postglennrocksvb new version is working however "Username HTML Markup" is not showing upHelpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & 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
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Get Affordable and Fast VPS for vBulletin -
by matoseHi guys,
Just migrated to vB Cloud and found your forum searching for some customizations.
Nice to meet you!
m...Yesterday, 01:25 AM -
Reply to Quick Topic Moderationby glennrocksvbCheck core/vb/api/node.php and find the closeNode function. If you are using the compressed PHAR version of the vB5 package, you will not see the api...Yesterday, 12:00 PM
Comment