Support Forum

sp_RecentPostList not displaying in GroupView

MO Moggle
Moggle
Member

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!

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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'));
MO Moggle
Moggle
Member

Ahhh ok, I knew I was overlooking something.

Thank you for your help.