Support Forum
I am wanting to pass through RSS to facebook and twitter only new topics and not replies to those topics for specific forums.
Is this possible through RSS can someone help me set it up so it won't degrade with future updates? I had it with 4.4.4 with the help of one of the generous admins here.
I am sorry, not sure I follow what you want to do... you want rss to only include new topics? you can do this using the filters available in the rss feeds routine...
Visit Cruise Talk Central and Mr Papa's World
OK - you can try this but be warned - not tested out that much so you might have to undo it again!
First up edit the core file /simple-press/forum/feeds/sp-feeds.php
Locate the comment that reads '# Execute the query' and immediately ABOVE that line add this:
$where = apply_filters('sph_rss_where', $where, $feed);
Then open up the spFunctions.php file of your SP theme - in the templates folder. And add this function:
add_filter('sph_rss_where', 'rssFirstPostOnly', 1, 2); function rssFirstPostOnly($where, $feed) { $where.= ' AND '.SFPOSTS.'.post_index = 1'; return $where; }
Be careful with all the full-stops and spaces in there. It needs to be exact!
See if this does the trick. If it does we can add that filter to the RSS feeds code so you know it will be there in the next update of SP.
As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)
YELLOW
SWORDFISH
|
I was talking about a filter on the post list class query for feeds... would have accomplished the same thing...
but no issue with a specific rss filter either... think there is an existing ticket on that anyways...
Visit Cruise Talk Central and Mr Papa's World
okay, thanks... we will get the function specific filter in place for this...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)