Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Auto Refreshing for Recent Discussions Widget

edited December 2011 in Vanilla 2.0 Help

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.

Best Answer


  • 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))
Sign In or Register to comment.