Support Forum

sp_RecentPostList not working

UN underthegun
underthegun
Member

Hi guys,
I was checking out this forum and others using SP and seen many using the “unread and recently updated topics” feature and I wanted it for mine, as well, as I really like the feature.

Since I didn’t see it on my homepage I assumed it wasn’t default and started looking up the code I needed to make it work and I found it.

So I went into spGroupView.php and see

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

So my question, any idea why it isn’t working? Is there a setting somewhere that I haven’t found?

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

It does work but by default it is not displayed for forum admins who have so many other ways to determine new posts.
If you want it to show up for admins then add the argument admins=1 – so that it becomes ‘show=10&admins=1’

UN underthegun
underthegun
Member

It’s odd b/c little things like this I should be able to figure out. But as far as the backend of SP goes I’m still new and afraid to try new things surprised

DB Danielle Bishop
Danielle Bishop
Member

I get this message when trying to use sp_RecentPostList :

Fatal error: Call to undefined function sp_RecentPostList() in /problem-with-post-edit-buttonome/omlta/public_html/wp-content/themes/omlta/sidebar.php on line 71.

I have the Template Tags & Widgets plugin in installed & activated. Any thoughts?  The widget isn’t working either.

Thanks,

Danielle

MP Mr Papa
Mr Papa
Member

sorry, what are you trying to do?  that is not a valid template tag in 5.0…

you want either:  sp_RecentPostsTag() or sp_LatestPostsTag()

the former shows the most recent topics with posts…  the latter shows the most recent posts (so may see multiple per topic)…

DB Danielle Bishop
Danielle Bishop
Member

I’m trying to add a list of recent topics to a non-dynamic sidebar.

I  downloaded and installed the plugin today.  All the files are there, etc.  Even if I add a dynamic sidebar and the Recent Forum Post widget, I get the following error message:

Fatal error: Call to undefined function sp_forum_api_support() in /problem-with-post-edit-buttonome/omlta/public_html/wp-content/sp-resources/forum-plugins/template-tags/library/sp-RecentPosts-tag.php on line 132

MP Mr Papa
Mr Papa
Member

sounds like you are not running SP 5.0.5?  Please upgrade… just visit the wp dashboard – updates…

DB Danielle Bishop
Danielle Bishop
Member

I updated the plugin – didn’t fix my issue

MP Mr Papa
Mr Papa
Member

so on forum – toolbox – toolbox, please tell me the version and build #…

did you upgrade sp after doing the update?

DB Danielle Bishop
Danielle Bishop
Member

Thanks – that did work – sorry – I’m new to SP.

One last question:

How do I remove the author/forum info while using the sp_RecentPostsTag();?

MP Mr Papa
Mr Papa
Member

ah, now you are getting into details! wink

the best way to understand the arguments for now until we get the codex fully up to snuff, is to just look at the code… in the template tags plugin, the library, the sp recent post tag file…  and see what the arguments you can pass to the function are…

not sure I fully understand what you want to do, but you try this:

sp_RecentPostsTag(‘itemOrder=TD’);

the default for that arugment is FTUD, which means include Forum, Topic, User and Date…  so I just removed the forum and user…