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
Any plugin that allows wordpress widget to display SP Forum most recent topics?
Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 5, 2013 - 10:16 pm

Now that I know the proper short codes to use I have been able to get Hot Topics to display in a text widget using the short code "sp_hot_topics". Also "sp_recent_posts" works fine, although it does exactly the same thing as the Recent Topics widget. However, when I try to use "sp_unanswered_posts", "sp_newest_topics", "sp_latest_posts" or "sp_todays_posts", the result does not display the forum names or topic titles. Only the author's name and date posted are displayed:

Is this a bug or should this be working?

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 6, 2013 - 2:27 am

Can I have a link to a page this is on so I can take a look at it.

By the way - I think you should be using the full shortcode tag name. Not even sure why the version you are using would work at all although I will find out!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2013 - 4:10 pm

Sure, my test page is:

http://crescentcitycyclists.org/sandbox/

I got the short codes I'm using directly out of the code file "sp-template-tags-plulgin.php":

function sp_UnansweredPostsShortcode($atts) {
    include_once(SPTEMPTAGSDIR.'sp-UnansweredPosts-tag.php');
    return sp_do_UnansweredPostsShortcode($atts);
}
add_shortcode('sp_unanswered_posts', 'sp_UnansweredPostsShortcode');

function sp_NewestTopicsShortcode($atts) {
    include_once(SPTEMPTAGSDIR.'sp-NewestTopics-tag.php');
    return sp_do_NewestTopicsShortcode($atts);
}
add_shortcode('sp_newest_topics', 'sp_NewestTopicsShortcode');

etc.

 

Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2013 - 5:27 pm

I have a new development related to this issue. I just noticed that since I deactivated Subscriptions to do the test you requested and turned it back on, now the Forum Subscriptions button in not appearing in the user Profile under the Subscriptions tab. How do I get this back?

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2013 - 7:10 pm

what do you mean turned it off??? do users have permission to subscribe to forums/topics?

Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2013 - 10:17 pm

Dave Hughes said
I have a new development related to this issue. I just noticed that since I deactivated Subscriptions to do the test you requested and turned it back on, now the Forum Subscriptions button in not appearing in the user Profile under the Subscriptions tab. How do I get this back?

 

Sorry, I just realized I posted this to the wrong thread. I've got two support issues going at once.

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2013 - 11:25 pm

no worries... will handle the other then... ;)

Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2013 - 9:23 am

I still would like to get the other post listing short codes working. Andy, have you had a chance to look at my sandbox page yet? It only lists posts in our For Sale/Wanted forum if your are not logged in since that is the only one that's publicly accessible.

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2013 - 9:31 am

sorry, which shortcodes do you want to use?  if you tell me which template function you want to use, can tell you the shortcdoe, if it exists - not all our template functions have shortcoodes...

and you never answered my questions in post #15...

Avatar
Dave Hughes
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2013 - 4:48 pm

Steve,

I assumed your questions in post 15 were based on post 14, which I said in post 16 was a mistaken post related to another thread on a different problem I'm having. So your questions seemed irrelevant to the issue this thread is discussing.

Post 11 lists the short codes that are not working for me and shows an example of the output I get when using one of them in a widget. Andy asked for a link to a page where I'm using it so he could look at, which I provided in post 13, but I have not heard back from him yet. Also, Andy questioned where I had gotten the short codes I am using and I  showed where I found them in post 13.

I have tried many of the short codes in sp-template-tags-plulgin.php, and a couple of them work fine "sp-hot-topics" and "sp-recent-posts", but the others listed in post 11 do not work – the forum and topic names are blank. That's the problem I'm trying to solve.

 

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