Hi guys, is it possible to make the wpforro software more like a live chat?
Like each time some one replies to a post it is update on everyone pages without having to refresh?
Similar to the way Discord works?
If not, we really need some kind of live chat function. The plugs I use are often faulty, but live chat is a much needed feature of any forum IMO.
Can something like this be done?
Running Ajax refresh functions to make forum topics almost live will punish most servers, especially if your forum is busy. It's also no small undertaking developing such a system.
IMO, unless you run one of those forums devoid of any knowledgebase content, chat and forums do not mix well, generally your forumites land up talking carp all day in chat and real content dies a slow death.
The best simple chat system I have tried on a dev board is https://wordpress.org/plugins/simple-ajax-chat/ , it's very simple and does what it says on the tin without too much fuss.
If you want to liven up your forum a little bit you can use this code snippet to auto refresh the "Recent Posts" page (my members tend sit in the Recent Posts page all day so this works on my forums, YMMV).
add_action( 'wp_head', function () { ?> <script> jQuery(function($) { setInterval(function($) { jQuery("#wpforo-wrap > div.wpforo-main > div.wpforo-content > div > div.wpforo-recent-content.wpfr-topics").load(location.href+" #wpforo-wrap > div.wpforo-main > div.wpforo-content > div > div.wpforo-recent-content.wpfr-topics>*",""); }, 120000); }); </script> <?php } );
To make the Recent Posts widget auto refresh you can use this plugin: https://wordpress.org/plugins/wp-auto-reload-widgets/ . It may be old but it still works on the latest WP version (I may have updated the java, can't remember).
With either the code above or plugin you not set the timing below 60000ms (1 minute) until you can test your server while it is under load at a busy time of day.
Great info thanks mate
If you want to liven up your forum a little bit you can use this code snippet to auto refresh the "Recent Posts" page (my members tend sit in the Recent Posts page all day so this works on my forums, YMMV).
Would this be possible with the PM page? Maybe that could work as a live chat in this case?
Maybe you can try flarum for live chat, but install it on sub domain