Announcement

Collapse
No announcement yet.

Visitors in the Last X Hours Module

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • glennrocksvb
    replied
    Originally posted by Mitch View Post
    I assume this does not work on cloud? I received an email for the update, but don't believe I ever purchased the original
    This doesn't work on vBCloud because it requires uploading a PHP file to the server. Please disregard it. But I'll take a look why you got an email.

    Leave a comment:


  • Mitch
    replied
    I assume this does not work on cloud? I received an email for the update, but don't believe I ever purchased the original

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    USC, the CSS code here to show the visitor count is no longer needed starting from v1.8 of this mod. I have added it as a module option to show or hide the visitor count.

  • glennrocksvb
    replied
    Originally posted by lange View Post
    Right now, my forum is running on 5.6.6 /PHP 8.0.15 with a lot of custom templates, custom hooks, three or four mods. I haven't noticed any problems so far.

    I'll wait a bit for this mod then.

    Thank you.
    lange I have released v1.8 to add support for PHP 8.0 and 8.1 as well as add module option to show visitor count.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Did that start after adding the latest CSS to add the count? If you remove it, does the module work?

  • USC
    replied
    suddenly stopped working Click image for larger version

Name:	Screenshot 2022-02-06 165558.png
Views:	122
Size:	34.0 KB
ID:	23670

    Leave a comment:


  • lange
    replied
    Right now, my forum is running on 5.6.6 /PHP 8.0.15 with a lot of custom templates, custom hooks, three or four mods. I haven't noticed any problems so far.

    I'll wait a bit for this mod then.

    Thank you.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    5.6.6 yes but haven't checked with PHP 8. Is 5.6.6 fully compatible with PHP 8? I will set it up on my local and test.

  • lange
    replied
    Does this mod work under vB 5.6.6 / PHP 8?

    Regards

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    css_additional template can be updated in either AdminCP Style Manager or Sitebuilder CSS Editor.

  • USC
    replied
    Superb Job Glenn , very much appreciated

    a question though, where do i put this code ? css_additional or site builder CSS ?

    Leave a comment:


  • glennrocksvb
    replied
    Originally posted by USC View Post
    no mention of number of visitors ?

    "XXX Members have visited the forum"

    would be great if you could add that thanks
    Through the power of CSS, I was able to figure out and add the number of visitors. I didn't know that CSS has counters that could count the number of elements, in this case the <li> tags containing the avatars. It just needs more CSS trickery to display the count above the list because the total count can only be displayed after all the elements to be counted. Without this additional trick, the visitor count would have been displayed below the list of avatars.

    Code:
    /* Last Visitors Module with Visitor Count - START */
    .vbmodsthatrocks-last-visitors-widget {
       counter-reset: last-visitor-count;
    }
    
    .vbmodsthatrocks-last-visitors-widget .widget-content {
       display: grid;
    }
    
    .vbmodsthatrocks-last-visitors-widget .last-visitor-list {
       order: 2;
    }
    
    .vbmodsthatrocks-last-visitors-widget li {
       counter-increment: last-visitor-count;
    }
    
    .vbmodsthatrocks-last-visitors-widget .widget-content:after {
        content: counter(last-visitor-count) ' members have visited this forum.'; /* Adjust wording as desired */
        order: 1;
        margin-bottom: 20px;
        font-weight: bold;
    }
    /* Last Visitors Module with Visitor Count - END */
    I have updated the Last Visitors module on homepage here with this code. Check it out!

    Enjoy!
    Last edited by glennrocksvb; 02-05-2022, 09:56 PM.

    Leave a comment:


  • glennrocksvb
    replied
    USC, thanks for your purchases and your request. I will consider adding that.

    Leave a comment:


  • USC
    replied
    purchased it and installed , no mention of number of visitors ?

    "XXX Members have visited the forum"

    would be great if you could add that thanks

    Leave a comment:


  • USC
    replied
    Thank you very much glenn

    Leave a comment:

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"