Support Forum

Forum recent activity

AW Aaron Wentzel
Aaron Wentzel
Member

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,

1 Answer

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-recent-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.