Support Forum

cannot show "Unread and recently updated topics" on the forum frontpage

JE jessada
jessada
Member

Sorry for many questions

I tried to show “Unread and recently updated topics” on the lower part of forum page but it’s not work

ON “General Display Setting” page, I already set ” Default number of unread posts for users” at 50

Please suggest which function I need to adjust

Thanks

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

It does show – it just does not, by default, display for the forum admin but all other users do see it. are you wanting to turn it on for the forum admins as well?

JE jessada
jessada
Member

Yellow Swordfish said
It does show – it just does not, by default, display for the forum admin but all other users do see it. are you wanting to turn it on for the forum admins as well?

Is that possible?

YS Yellow Swordfish
Yellow Swordfish
Member

Absolutely.

V5 is template driven just like WP so it is a matter of editing the template.

In this case the spGroupView.php template in the SP theme you are using.

The tag that displays the recent post list is called sp_RecentPostList() and we just need to add an argument to it like so:

sp_RecentPostList('show=10&admins=1', __sp('Unread and recently updated topics'));

Note the ampersand before the new argument.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)

YS Yellow Swordfish
Yellow Swordfish
Member

You’re welcome.
The ‘show’ argument there is set to 10. That will determine how many recent posts get displayed.