Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Getting a better handle on my RSS feed - Limit RSS feed
Avatar
Steve Moran
Rookie
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2012 - 9:37 am

I grabbed a bit of code from the support forum and now get just the most recent item for each topic which is good.  Now I would also like to eliminate the name of the person making the post.  Right now the RSS for this topic would be:

 

Steve Moran on Getting a better handle on my RSS feed - Limit RSS feed.

Then the text in this box.

My first choice would be this  to just remove the name and leave the Topic Name, plus the stuff in this box.

My second choice would be to at least add a : after the name.

 

Thanks if you have any thoughts on this.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2012 - 9:53 am

Why not use the template tag or widget for recent topics with posts in which you can specify this....?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2012 - 12:16 pm

If don't want to use the widget or template tag this should remove the username.

Place is spFunctions.php file

/* change RSS info */
add_filter('sph_feed_item', 'my_feed_title_filter',10,2);
function my_feed_title_filter($item, $spThisPostList) {
$item->title         = $spThisPostList->topic_name;
return $item;
}

Should have or create a custom theme when making changes if you don't have one already.

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