Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

autorefresh discussionlist

Using 2.0.18.9
I did already read the topics here about autorefresh and the advantages and disadvantages but i have a question about this line:

$Configuration['Vanilla']['Comments']['AutoRefresh'] = '30';

For me the refreshing of comments is not important, but the discussionlist, i would like to give it a autorefresh.
So i thought adding this line in config.php would do the job, but it doesn't

$Configuration['Vanilla']['Discussions']['AutoRefresh'] = '30';

Is there a way to make it possible to autorefresh the discussionlist?

Tagged:

Comments

  • AFAIK nothing like this is implemented.

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
  • This is where I plug the first plugin I ever made for Vanilla, Latest Post List!

    http://vanillaforums.org/addon/latestpostlist-plugin

    It shows the latest discussions in the sidebar and has a configurable ajax update. You can set it up to check however often you want.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • jackmaessenjackmaessen ✭✭✭
    edited January 2014

    I have already installed this plugin @hgtonight, is it easy to configure it so that he catches the class "ul.DataList.Discussions"? ( This is the class i would like to have an autorefresh on)
    I am looking in the class.latestpostlist.plugin.php and i can see this line:

    // if we want to be on all pages, skip the check
            // otherwise leave if we aren't in an approved controller
            if ($Pages != 'all' && !InArrayI($Controller, $ShowOnController) ) {
                return;
            }
    

    I should change something in this line?

  • Latest Post List adds a module to the panel. That list is refreshed on a regular basis.

    You could add some JS to the discussions controller that auto refreshes (just bind an ajax request to /discussions.json on a timeout) but that will have a compounding effect for every user.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.