The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I would like to automatically refresh the activity stream every, maybe 5 seconds. Is there a way to do this ? (Vb's default setting is only for minutes). I had a look in clientscript/vbulletin_activitystream.js and change some things, but that's not enough and do nothing. Thank you. |
#2
|
|||
|
|||
![]()
you will need to edit these line in activitystream.js file
Change this line Code:
if(this.options.refresh*60000>300000){this.idlerefresh=this.options.refresh*60000}else{this.idlerefresh=300000} Code:
if(this.options.refresh*1000>60000){this.idlerefresh=this.options.refresh*1000}else{this.idlerefresh=60000} |
#3
|
|||
|
|||
![]()
Does your forum really get that busy that you need to refresh every 5 seconds as opposed to every 5 minutes? The more things you give to VB to do more often will chew up CPU cycles as well as pounding on your database. Your host may not appreciate that.
|
#4
|
||||
|
||||
![]()
Taking a huge gamble by doing every 5 seconds.............Just saying
|
#5
|
|||
|
|||
![]()
This depend of users viewing the activity stream isn't it ? I have something like 400-600 users on my board at the same time, but nomore than 10/20 users watching the activity stream, so the the server load should be negligible ? (Dedicated server)
--------------- Added [DATE]1338391354[/DATE] at [TIME]1338391354[/TIME] --------------- Quote:
|
#6
|
|||
|
|||
![]()
try this one (last code was refrshing in every 60 seconds or more)
Replace Code:
if(this.options.refresh*60000>300000){this.idlerefresh=this.options.refresh*60000}else{this.idlerefresh=300000} Code:
if(this.options.refresh){this.idlerefresh=this.options.refresh*1000}else{this.idlerefresh=60000} |
#7
|
|||
|
|||
![]()
This work well, thank you, i have set 10 sec.
Thank you. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|