MyBB Community Forums

Full Version: Add latest threads & most replied threads to index template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
I'm trying to add blocks with latest threads & most replied threads to main page of the forum.

Quote:<div id="mysidebar">

<div class="block">
<h3>Who ia online</h3>
<span class="smalltext"><strong>{$lang->whos_online}</strong></span>
        <span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span>
<br>
<center>[<a href="online.php">{$lang->complete_list}</a>]</center>
<br>
{$lang->stats_mostonline}
</div>

<div class="block">
<h3>{$lang->latest_threads}</h3>

{$threadlist}

</div>

<div class="block">
<h3>{$lang->most_popular}</h3>

{$lang->most_replied_threads}

</div>

</div>

everything that is marked red doesn't work. the rest is fine.

help me pls - what am i doing wrong?

forum: http://mybbtest.infinityfreeapp.com/
version: 1.8
Not every variable can be used everywhere.
in custom codes you must fill variables with hook or require codes.
for example $threadlist not defined on index , So it must be filled with custom plugin or add code to core.
(2023-02-23, 12:08 PM)Mostafa.Shiraali Wrote: [ -> ]Not every variable can be used everywhere.
in custom codes you must fill variables with hook or require codes.
for example $threadlist not defined on index , So it must be filled with custom plugin or add code to core.

Could you pls give any links to plugins that can allow to view latest threads & most replied threads on other pages of forum? (if smth like this exist)