MyBB Community Forums

Full Version: recent topics on index page to all pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I make the recent topics plugin available on all pages? When I move it to the header it doesn't display any recent threads.
(2014-02-20, 09:10 PM)Tempest Wrote: [ -> ]How can I make the recent topics plugin available on all pages? When I move it to the header it doesn't display any recent threads.

You would have to edit the core of the plugin, I think the hooks it uses are only coded to work(or are in) the index.php file. You'd have to check though. I'm not too advanced in this area, however I think a few edits would allow it to work.
Open recenttopicsindex.php (file plugin), and search (line: 18):
$plugins->add_hook("index_end", "recenttopicsindex_show");
and change to:
$plugins->add_hook("global_start", "recenttopicsindex_show");
For some reason I am not finding that first line anywhere in the file? Would you mind taking a screenshot of it for me? I have been looking for it but I just do not see that line anywhere.

Was googling and I think I may have titled this wrong. I meant the recent posts. I didn't realize there were 2 plugins like this.

- http://mods.mybb.com/view/recent-posts-forum-index This is the one I have uploaded. I am so sorry.
Open recentpostsindex.php (file plugin), and search (line: 13):
$plugins->add_hook("index_start", "recentposts_box");
and change to
$plugins->add_hook("global_start", "recentposts_box");


In template index - remove: {$recentposts}
... and add in template or plugin (where you want to display) {$recentposts}.
Thank you for your help! Big Grin
(2014-05-24, 01:17 AM)Leefish Wrote: [ -> ]hkkp - the forum link is already there - the showthread link is on the last post. Perhaps try this one from Cedric? It has templates, so it is easier.

http://mods.mybb.com/view/mylatestthreads

not show on index for me