Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
cannot show "Unread and recently updated topics" on the forum frontpage
Avatar
jessada
Member
Free Members
sp_UserOfflineSmall Offline
May 1, 2012 - 7:18 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 1, 2012 - 8:00 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
jessada
Member
Free Members
sp_UserOfflineSmall Offline
May 1, 2012 - 9:10 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 1, 2012 - 11:17 am

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/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
jessada
Member
Free Members
sp_UserOfflineSmall Offline
May 1, 2012 - 11:21 am

Thank you

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 1, 2012 - 11:27 am

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

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626