MyBB Community Forums

Full Version: Recent Threads On Index [Updated 02-09-21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
I am trying to replace

$plugins->add_hook("index_end", "recentthread_list_threads");

with

$plugins->add_hook("index_start", "recentthread_list_threads");

but nothing happens.

Any idea?

Thanks.
The index template is not evaluated until just before index_end. Why would you need to hook to index_start?
I want to move recent posts before the forum.
I think that I must play with the lines 198 and 199
You don't need to change the hook. You can move {$recentthreadtable} to wherever you want it to appear on the index page. It will be on your index template.
You have to move the entry "{$recentthreadtable}" in theme template index above the entry "{$forums}".
Thanks
there is a tiny problem with this: it shows the posts that are soft deleted or unapproved?

how can i prevent this? even admins dont need this unless its flagged for the admins
How can i have this on the side? Can someone be very helpful and explain.

Live preview of what i want https://realityforum.net/
(2015-06-17, 07:15 PM)dragonexpert Wrote: [ -> ]
(2015-06-17, 07:05 PM)vidme Wrote: [ -> ]hmm, still doesn't work, even tried editing portal template still nothing.

Make sure in your portal template {$latestthreads} is there.  If it still is, PM me an admin account and I will look into the issue for you.

Hi there,

Can I ask about the same issue, its not showing in my portal either, and {$latestthreads} is there.

Also is there anyway to have this as the only information available in Portal?

Thanks
Hello.
I would like to fetch the prefixes of the subjects if he were \

Could someone help?

{$thread[\'prefix\']}
Displays only numbers
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42