Support Forum

How do I display Recent Topic Posts, Replies, Comments on Sidebar?

SA saki
saki
Member

How do I display Recent Topic Posts, Replies, Comments on Sidebar?

 

I would like to show this on the home page that does not have the forum…

10 Answers

New Answer

LH Lee H
Lee H
Member

Saki… last I knew the recent posts widget was broken for SPv5. Andy told me that the widgets and template tags will be functional closer to the final release as the main code is ever changing and can easily break the template tags and the widget. Seems reasonable as the code IS changing often.

SA saki
saki
Member

Can I grab the plugin template code below and throw it in a theme template to output it on a page? Maybe there’s more to it.

 

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

 

Where are the functions in the plugin that I might put in my theme functions?

MP Mr Papa
Mr Papa
Member

in the template tags plugin…  look in the main plugin file and you will see all the available ones…  as Lee points out, all are not working yet, but I believe the recent post one is..

BR Brandon
Brandon
Member

The sp-recent-posts-widget.php is still using ‘sp_recent_posts_tag’ on line 37 which should be ‘sp_RecentPostsTag’  so will error out if used.

There is also an issue with the ‘&icon=’ in the ‘sp-RecentPosts-tag.php’ which causes a problem. So I deleted it from the line and it at least shows the right arrow and the Vtip after doing so.

Hopefully you will get a chance to take a look at the ‘template-tags’ plugin soon and see what works as expected and which don’t.

YS Yellow Swordfish
Yellow Swordfish
Member

The widget has not been re-coded yet I am afraid. In fact quite a few of the template tags require recoding. These are the sort of tasks that it is always better to leave nearer to the end of the cycle because of their reliance on core code.

MP Mr Papa
Mr Papa
Member

the plan is to go beta at end of October…  we will be done with the template tag coding before going to beta…

and frankly, stuff like this is why we recommend not running the 5.0 alpha on a production site…  but we will get to it very soon…

FO folignometeo
folignometeo
Member

Hi everyone, this is my first topic in this forum… smile

now that SP5 is relase there is any way to display in home page recent topics post, replies and so on…

 

Thanks!

Alex

BR Brandon
Brandon
Member

There is a Simple:Press plugin that adds a Widget which you can add to your site that shows recent posts.

The info on how to add it is here.

http://codex.simple-press.com/codex/simplepress-api/functions-and-tags/widgets/

HA halalan
halalan
Member

What about widgets that are usable from the standard Word Press admin section for widgets, where you just drag and drop them on your sites sidebars etc.?

SP SPQC
SPQC
Member

halalan said

What about widgets that are usable from the standard Word Press admin section for widgets, where you just drag and drop them on your sites sidebars etc.?

It is, one you enabled Template Tags and Widgets you will be able to drag Recent Forum Posts to your sidebar.