Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

New Feature [Closed] What is the next big surprise in WPforo?

25 Posts
7 Users
7 Reactions
3,008 Views
VereK
Posts: 522
(@verek)
Honorable Member
Joined: 8 years ago

I would like to see the ajax autorefresh that can be set in the wpForo sidebar widgets extended the Recent Posts page. It very easy to make a code snippet for that function and I have done so but perhaps it would be better as a core function and setting for board owners who are not well versed in writing their own code.

3 Replies
dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

@verek If the widgets could support shortcodes, that will solve the issue. But they do not.

VereK
(@verek)
Joined: 8 years ago

Honorable Member
Posts: 522

@dimalifragis 

Not sure what shortcodes have to do with the request I posted?

Since an update or two ago the wpForo sidebar widgets do now have an option to set an autorefresh time in seconds. I want that function extended to the Recent Posts page natively (where about 90% of my members sit all day). I accomplished this with an easy snippet but users/admins get lost when talking about custom coding snippets so baked in code that can be set in the dashboard would be the way to go for these admins/users. 

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

@verek Right, i somehow missunderstood that post of yours 🙂

Posts: 1215
(@percysgrowroom)
Noble Member
Joined: 6 years ago

Posted by: @verek

I want that function extended to the Recent Posts

Yes 100% agree with this. It would be a good feature 

1 Reply
VereK
(@verek)
Joined: 8 years ago

Honorable Member
Posts: 522

@percysgrowroom 

In code snippets create a new snippet with this code to run on the front-end only. Naming and tags is up to you

add_action( 'wp_head', function () { ?>
<script>
jQuery(function($) {
setInterval(function($) {
jQuery("div.wpforo-recent-content.wpfr-topics").load(location.href+" div.wpforo-recent-content.wpfr-topics>*","");
}, 120000);
});
</script>
<?php
} );

The timing (120000) is in milliseconds, thus set for 2 minutes, adjust that number to suit your needs. 

If the function gets baked into wpForo core then you can disable/delete the snippet

 

Page 3 / 3