dragonexpert / recentthreads

Adds a section to your index page for recent threads.
Other
8 stars 2 forks source link

Add new option - disable AJAX refreshing (or allow only for selected usergroups) #51

Closed Eldenroot closed 3 years ago

dragonexpert commented 5 years ago

I think it would be best to either be ajax or no ajax. Due to the way forum permissions are handled, it will refresh once basically immediately to make sure permissions are done correctly.

Eldenroot commented 5 years ago

Yes, I agree. This is implemented in DVZ Shoutbox plugin - you can enable/disable ajax refreshing and enable it only for specific usergroups.

dragonexpert commented 5 years ago

We can look at doing that in the next build. I want to push the current build since there isn't issues that I am aware of.

Eldenroot commented 5 years ago

Ok, agree. Thx

dragonexpert commented 3 years ago

I think just an all or nothing is how I want to do this. If someone wants to actually program a per usergroup and it works, by all means, submit a pull request. For now, I am going to say to just comment out the line var refresher = window.setInterval(function () {refresh_recent_threads()}, 30000) in the recentthread_headerinclude template if you don't want refreshing.