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
sp_RecentPostList not displaying in GroupView
Avatar
Moggle
Member
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2012 - 8:31 am

I am probably overlooking something here, i have the code:

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

near the bottom of spGroupView.php, however it is not being displayed.

I cannot seem to work out why it is not displaying and it is driving me mad.

I've tried the "default" theme which has not been modified and it doesn't display either.

Please help!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 2, 2012 - 8:55 am

This is the lost of arguments available to that function:

'tagId'        => 'spRecentPostList'
'tagClass'    => 'spRecentPostSection'
'labelClass'=> 'spMessage'
'template'    => 'spListView.php'
'show'        => 20
'group'        => 0
'admins'    => 0
'mods'        => 1
'get'        => 0

So it is automatically shown to members, moderators and guests. If you want to show it for admins too then you need to add that as an argument as in

sp_RecentPostList('show=10&admins=1', __sp('Unread and recently updated topics'));
andy-signature.png
YELLOW
SWORDFISH
Avatar
Moggle
Member
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2012 - 9:06 am

Ahhh ok, I knew I was overlooking something.

Thank you for your help.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 2, 2012 - 8:24 pm

np. glad we could help.

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