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
Forum recent activity
Avatar
Aaron Wentzel
Member
Free Members
sp_UserOfflineSmall Offline
Aug 31, 2012 - 3:05 pm

What code would i use to grab the top 5 /10 /x most recent forum posts to display on every page of my site? 

What code would i call to get top 5 forum posters ever

What code would i call to get top 5 most active posters in last month

Thanks,

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 31, 2012 - 4:02 pm

The first would require you to have the SP 'template tags' plugin active and can be called with:

sp_RecentPostsTag();

This can take a lot of arguments to influence the display and these are described in our codex: http://codex.simple-press.com/.....ent-posts/

The second can be achieved with:

sp_forum_api_support();
sp_TopPostersStats();

which will give you the same list as is shown on the forum stats at the bottom.

We don't have code readily available for your third item I am afraid.

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