Development > Feature Requests
Auto refresh the portal
Leppie:
Would it be possible to add an auto-refresh setting so that the portal updates every now and then.
This way the recent topics, who's online and ShoutBox will be updated and display more recent events.
[SiNaN]:
You can make the shoutbox auto-refresh by going to Admin > SimplePortal > Shoutbox > Shoutbox List, clicking the Modify link for the shoutbox and setting the Auto refresh setting.
You can make the whole portal page auto-refresh by the following code edit but it's not suggested:
Sources/Subs-Portal.php
--- Code: (Find) --- $initialized = true;
--- End code ---
--- Code: (Replace) --- if ($context['SPortal']['on_portal'])
{
$context['html_headers'] .= '
<meta http-equiv="refresh" content="5">';
}
$initialized = true;
--- End code ---
Change 5 as the number of seconds you want auto-refresh to happen.
Burke Knight:
NOTE:
Auto-refreshing can do the following:
1. Annoy users.
2. Cause server problems, like cpu and memory overloads.
3. Use up a lot of bandwidth.
4. Use up your hit allowance. (A lot of free web hosts have daily hit allowance limitations.)
Leppie:
--- Quote from: [SiNaN] on August 23, 2013, 06:21:39 AM ---You can make the shoutbox auto-refresh by going to Admin > SimplePortal > Shoutbox > Shoutbox List, clicking the Modify link for the shoutbox and setting the Auto refresh setting.
--- End quote ---
Thanks for this tip.
Is it possible to have the "Who's Online" box auto-refresh like the ShoutBox?
Leppie:
--- Quote from: BurkeKnight on August 23, 2013, 07:15:47 AM ---NOTE:
Auto-refreshing can do the following:
1. Annoy users.
--- End quote ---
Very valid point, and I would like to avoid auto-refresh for the whole portal.
The others a bit less in my case as I have a dedicated server for the forum.
Navigation
[0] Message Index
[#] Next page
Go to full version