Announcement
Collapse
No announcement yet.
Visitors in the Last X Hours Module
Collapse
This is a sticky topic.
X
X
-
So you'd have to keep on updating the fake guest count in order to make it appear real? Otherwise, showing 986 guest count every 24 hours or the count not even changing within 24 hours would make it look unreal as guests (including bots) usually come and go.
- Top
- Translate
- Bottom
-
I don't know how you configure the fake guest count on that mod but if you configure it by entering the count that you want to be displayed in the module, then that count will never change until you manually change the option again?
- Top
- Translate
- Bottom
-
I don't know for the dynamic thing.
It's ok Glenn. I'll look at that later with Mr Google translate. At the moment you may be losing me because of my age. ;-)
(this is the last visitors mod from Yilmaz).
- Top
- Translate
- Bottom
-
I take no offense. I was just explaining that the number of guests seemed to be the currently online guests and not necessarily within the 24-hour cutoff. And now you disclosed that it is fake. If the fake guest count is set as an option, then you have to always modify it to make it dynamic and look like real? And I don't know why it adds a table in the DB as the last visitors info already exists in the database. My Last Visitors mod is the same as the "List Visitors in the Last 24 Hours" in the User Manager in AdminCP. The only difference is I made the time cutoff as an option instead of the fixed 24 hours.
- Top
- Translate
- Bottom
Leave a comment:
-
No offense, it was just a suggestion.
The 1454 guests are the fake guests. It's an option in the settings with the added number of fake guests.
Both mods work fine. I will test the two mods for a while and decide which one to use. Your mod seems to have the advantage of not adding a MySQL table and it's important for me. The difference between the two mods is visually very small in the design as you can see on this screenshot that I will delete in the next few hours.
- Top
- Translate
- Bottom
Leave a comment:
-
lange, that seems to be a combination of the Last Visitors and Who's Online modules. But the Who's Online is a little different. It just counts who are online at the point the page was loaded. It doesn't take into account the time cutoff. For example, it seems like that the 1.454 guests in that screenshot are the guests who were currently online at that time not in the past 24 hours. Guests don't have user IDs thus the system cannot record the number of active guests within a span or range of time. So including the number of guests in the Last Visitors module is a little misleading.Last edited by glennrocksvb; 02-28-2022, 12:46 PM.
- Top
- Translate
- Bottom
Leave a comment:
-
Hi,
It would be interesting if you could improve this mod by adding a Last Activity on mouse-over option and other details.
- Top
- Translate
- Bottom
Leave a comment:
-
Thank you, I will install this version.
- Top
- Translate
- Bottom
-
Originally posted by lange View PostHi.
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
- Top
- Translate
- Bottom
Leave a comment:
-
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
-
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 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
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Reply to Topic Starter Ribbon for vBCloudby glennrocksvbMitch I've added the fix for this mod. Please refer to the "Fix for vB 6.0.4 and later" section in the updated first post....Yesterday, 10:26 PM
Leave a comment: