AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

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

25 Posts
7 Users
7 Reactions
4,649 Views
VereK
Posts: 522
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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: 6 years ago

Famed Member
Posts: 2600
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 6 years ago

Famed Member
Posts: 2600
dimalifragis
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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


Posts: 1243
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
Share: