![]() |
|
Thread Tools |
#1
|
|||
|
|||
How to refresh activitystream each X second ?
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. No members have liked this post.
Last edited by Altari; 29 May 2012 at 19:30. |
#2
|
||||||||
|
||||||||
you will need to edit these line in activitystream.js file
Change this line
To
now if you enter 5 in vB default setting, it will be treated as 5 seconds. No members have liked this post.
|
#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.
__________________
Working on new projects and expanding our horizons. Come by and see what we're up to now.
No members have liked this post.
|
#4
|
||||
|
||||
Taking a huge gamble by doing every 5 seconds.............Just saying
No members have liked this post.
|
#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 30 May 2012 at 16:22 ---------------
Originally Posted by Badshah93
Thank you for your help, but that's not enough and this doesn't work.
![]()
No members have liked this post.
|
#6
|
||||||||
|
||||||||
try this one (last code was refrshing in every 60 seconds or more)
Replace
With
No members have liked this post.
|
#7
|
|||
|
|||
This work well, thank you, i have set 10 sec.
Thank you. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:56.