Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
How do I display Recent Topic Posts, Replies, Comments on Sidebar?
Avatar
saki
Member
Free Members
sp_UserOfflineSmall Offline
Oct 11, 2011 - 5:13 pm

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...

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Oct 11, 2011 - 6:18 pm

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.

Avatar
saki
Member
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2011 - 12:36 am

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 12, 2011 - 8:26 pm

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..

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2011 - 1:57 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 16, 2011 - 3:30 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2011 - 11:21 am

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...

Avatar
folignometeo
Rookie
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2012 - 1:33 am

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

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2012 - 9:32 am

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/.....s/widgets/

Avatar
halalan
Member
Free Members
sp_UserOfflineSmall Offline
Feb 25, 2012 - 2:27 pm

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.?

Founder of the C.T.O.A. (Chinese Tractor Owners Association)
"Helping Each Other With Knowledge"

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625