MyBB Community Forums

Full Version: How to show {$latestthreads} in index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i just want to show the Lastest Threads like the portal.php in the index.php page.

I just follow this guide: http://community.mybb.com/thread-110658.html

But i dont work for me, i added the code in the index.php and the {$latestthreads} in the header template in MyBB administration on the sidebar space but it dont work.

Can you help me?
Did you receive an error?
What went wrong?
You can use this plugin: http://community.mybb.com/thread-131633.html or one of another few that offer this functionality (more recommended than core file edits)

To remove the things you wish in another post in that topic, edit adv_sidebox_latest_threads_thread from Global Templates.
(2013-06-15, 02:25 PM)Destroy666 Wrote: [ -> ]You can use this plugin: http://community.mybb.com/thread-131633.html or one of another few that offer this functionality (more recommended than core file edits)

To remove the things you wish in another post in that topic, edit adv_sidebox_latest_threads_thread from Global Templates.

Can i install it and use some type of "shortcode", like the {$latestthreads}?
With the one I gave link for, no, it's inserted to template cache in places specified in inc/plugins/adv_sidebox/adv_sidebox_class_template_handler.php By default on index it starts after header and ends before footer. But you can change position by adding $this->find_top = "xxx" and/or $this->find_bottom = "xxx" to Index_template_handler.