Register to Reply
Results 1 to 5 of 5

Thread: Auto refresh

  1. Thread Starter #1
    Super VIP VOiD's Avatar
    Click to Expand
    Join Date
    Nov 2015
    Posts
    30
    vB Version
    4.2.x
    Likes
    17
    Liked 9 Times in 8 Posts
    Gender
    Male

    Auto refresh

    Hi everyone, i am looking for a auto refresh in What's going on? so every 30 seconds it would refresh just the Currently active users and not the whole page, please note i don't won't a page refresher, only for the Currently active users please.

    If anyone can help please let me know.

    I am using the current vBulletin 4.2.5
    Last edited by VOiD; 6th Dec 2018 at 12:01.
    Thank you.
    Regards
    VOiD
    Remember there is never a dumb question.
    because there is always an answer!

  2. #2
    Administrator Tempus's Avatar
    Click to Expand
    Join Date
    Oct 2011
    Posts
    6,098
    vB Version
    4.2.x
    Likes
    1,984
    Liked 3,667 Times in 1,559 Posts
    Gender
    Male
    Add this to the bottom of your headinclude template:
    Code:
    Only registered members can view code.

    Add this to the bottom of your footer template:
    Code:
    Only registered members can view code.
    Change the value in red to the amount of time you want between refreshes. 5000 = 5 seconds, 10000 = 10 seconds etc.
    The Small Print
    Our staff assume members have read the rules and will not accept ignorance as an excuse for not following the them.
    The breaking of any rule WILL lead to you being warned or even banned without notice so don't risk it!


  3. Thread Starter #3
    Super VIP VOiD's Avatar
    Click to Expand
    Join Date
    Nov 2015
    Posts
    30
    vB Version
    4.2.x
    Likes
    17
    Liked 9 Times in 8 Posts
    Gender
    Male
    Thank you Tempus, i did as you adviced and it workes 100% awesome mate.

    Edit: Sorry Tempus but i didn't notice that when i put the code in headinclude
    Code:
    Only registered members can view code.
    it stopped the shoutbox from working, then when i moved the code from the top to the bottom, my shoutbox went apart, maybe you can add the code in a different place where it won't interfere with the shoutbox.

    In the light version i have removed the code, in the dark version i have left the code, but shouitbox not working in the dark theme.
    Last edited by VOiD; 9th Dec 2018 at 10:09.
    Thank you.
    Regards
    VOiD
    Remember there is never a dumb question.
    because there is always an answer!

  4. #4
    Administrator Tempus's Avatar
    Click to Expand
    Join Date
    Oct 2011
    Posts
    6,098
    vB Version
    4.2.x
    Likes
    1,984
    Liked 3,667 Times in 1,559 Posts
    Gender
    Male
    New updated code tested with DBTech vBShout.

    Add this to the bottom of your headinclude template:
    Code:
    Only registered members can view code.

    Add this to the bottom of your footer template:
    Code:
    Only registered members can view code.
    Change the value in red to the amount of time you want between refreshes. 5000 = 5 seconds, 10000 = 10 seconds etc.
    The Small Print
    Our staff assume members have read the rules and will not accept ignorance as an excuse for not following the them.
    The breaking of any rule WILL lead to you being warned or even banned without notice so don't risk it!


  5. #5
    Administrator Tempus's Avatar
    Click to Expand
    Join Date
    Oct 2011
    Posts
    6,098
    vB Version
    4.2.x
    Likes
    1,984
    Liked 3,667 Times in 1,559 Posts
    Gender
    Male
    I made this into an addon to make it easier to use. Now it will work on all styles without needing to make any edits.

    http://vbulletin-mods.com/forum/showthread.php?t=13453
    The Small Print
    Our staff assume members have read the rules and will not accept ignorance as an excuse for not following the them.
    The breaking of any rule WILL lead to you being warned or even banned without notice so don't risk it!


Register to Reply

Similar Threads

  1. SOLVED
    Auto Media
    By mico1410 in forum Solved Requests
    Replies: 2
    Last Post: 20th Jan 2018, 02:23
  2. [Ajax] Refresh button - users browsing this thread
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 1
    Last Post: 28th Sep 2016, 21:13
  3. Moderation Auto-PM v4.0.6
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 5
    Last Post: 28th Sep 2016, 20:11
  4. Auto Thread Poster by BOP5 (Auto Thread Starter)
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 0
    Last Post: 21st Feb 2015, 19:09
  5. FUZZY SEO Auto Linker (auto link words in posts to any URL)
    By Tempus in forum vBulletin 4.x Add-ons
    Replies: 11
    Last Post: 16th Jan 2013, 22:07

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •