exactly as the title says: I want add refresh button in Latest Threads of portal to reload only Latest Threads...
preferably using ajax and jquery
if anyone can help I would be very grateful
thanks...
I think the easiest way to do this would be to actually make a "latest threads" template and load it via ajax with a periodical updater and an optional refresh button. Basically like a shoutbox.
(2014-05-03, 07:42 AM)Leefish Wrote: [ -> ]I think the easiest way to do this would be to actually make a "latest threads" template and load it via ajax with a periodical updater and an optional refresh button. Basically like a shoutbox.
thanks...
i already solved problem...
not work if not put line below...
require_once MYBB_ROOT.'inc/class_parser.php';
$parser = new postParser;
i don't understand why...
i don't like much of idea of automatically refresh... Because this probability increase resource usage
anyway... thanks
Yea, periodical updater is a Prototype thing - it basically increases the value between each call - so 1 minute, 2 minutes, 4 minutes - you get the idea. This reduces the number of calls to the server.