Is there a way to have Recent discussions widget to refresh itself every x seconds?
Right now the changes in the discussions don't reflect on the widget unless the user reloads the whole page.
I think following lines from widgets.php controls the latest discussions.
Is there a way to add an interval to this?
// Retrieve the latest discussions from the Vanilla API
$resturl = vf_combine_paths($resturl, '/');
$data = json_decode(vf_rest($resturl));
if (!is_object($data))
return;
Answers
I think following lines from widgets.php controls the latest discussions. Is there a way to add an interval to this?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •