Support Forum

Forum Preview/Recent Posts Widget

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

there is a new recent posts widget and template tag… so yeah… the name of the template tag has changed to sp_RecentPostsTag() with a whole slew of potential options (see the code)… for either, you will need the template tags plugin for SP…

YS Yellow Swordfish
Yellow Swordfish
Member

Sadly Brandon did write up the widget which was lost when we had the server issues before Christmas. So the answer is not yet.
But the recent posts template tag is pretty well documented in the code header

NE neon
neon
Member

Yellow Swordfish said

Sadly Brandon did write up the widget which was lost when we had the server issues before Christmas. So the answer is not yet.
But the recent posts template tag is pretty well documented in the code header

Thanks will have a look.

MP Mr Papa
Mr Papa
Member

we hope to get the codex population started soon…

BR Brandon
Brandon
Member

The codex info on the widget and how to setup is still available.

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

If you use a theme that allows widgets in different areas, header, sidebar, footer, etc then that may be all you need.

We did lose the info on how to use that template tag but as Andy said it is pretty well documented.

For example here is one of my setups.

<?php sp_RecentPostsTag(‘beforeForum=In the Forum: &afterForum= &beforeUser= <b>&afterUser=  </b>&beforeTopic=  posted:&afterDate=<hr />&itemOrder=FUTD&limit=12’);?>

Makes it look like this:

In the Forum: Slingbox Hardware MuzicEngineer posted: Slingbox Pro-HD has bad capacitors too!!
 – 26 minutes ago

 

I hope to rewrite this one and post it soon.

NE neon
neon
Member

Thanks. So something like this    

<?php sf_recent_posts_tag(10, true, true, true, false, false, true, $avatar=true, $size=100); ?>

 will no longer work?

YS Yellow Swordfish
Yellow Swordfish
Member

No
We have changed all template tags and functions to use the alternative WP syntax of the ‘argument1=x&argument2=y’… etc. type.

UN
Unknown
Member

neon said

Does the forums recent posts preview still work in 5.0?

Trying to se posted files

YS Yellow Swordfish
Yellow Swordfish
Member

recent posts preview? What do you refer to please?