PDA

View Full Version : Social Group and Album Enhancements - Social Group RSS - RSS Feeds for Social Groups


nick_ramsay
05-08-2009, 10:00 PM
This hack creates an RSS feed for each social group. Each feed shows the last 20 posts (not just threads) from the desired social group.

How it works:
The feeds are generated by using the url, http://www.yoursite.com/groupfeed.php?groupid=ID, or clicking the RSS icon on each group's homepage. ID is the id number for the group.

RSS feeds are inaccessible for private groups.

What it involves:
Uploading a new file to your forums root directory.
Uploading an RSS icon to the images/misc folder.
Making a small template edit to show the RSS icon.

Caveats:
The RSS icon shows regardless of whether the group is private or not.

Requests:
I won't be supporting this hack. I'm hoping somebody with more vBulletin and programming experience than me can take what I've done, give it some solid testing and make it better. If you'd like to revamp it, be my guest.

How to install:
1. Upload the attached groupfeed.php file to your forums root directory;
2. Upload the attached RSS icon, feed-icon-24x24.png to the images/misc folder;
3. Go to Admin CP -> Styles & Templates -> Style Manager -> Choose Edit Templates and click Go -> Double click Social Groups Templates -> Double click socialgroups_group ->Search in Template for <h1 id="group_name">.

Replace:

<h1 id="group_name"></h1>

with:

<h1 id="group_name">$group[name] <a href="groupfeed.php?groupid=$group[groupid]"><img style="vertical-align: top; height: 24px; width: 24px; border: 0px;" src="$stylevar[imgdir_misc]/feed-icon-24x24.png"></a></h1>

Save and visit your social groups. You should see an RSS icon next to each group's title.

TNCclubman
05-09-2009, 11:26 AM
very nice.

Mark.B
05-09-2009, 11:41 AM
Ooh now I've been after something like this, will install later on.

Another of those "yet another feature that should be in the default package" addons, of which there are so many for Social Groups.

nick_ramsay
05-16-2009, 12:45 AM
I've made some small changes to groupfeed.php so that it successfully passes the W3C Feed Validator (http://validator.w3.org/feed/). Please download the latest groupfeed.php file (attached to the first post) and upload it to your forums root directory, overwriting the old one. Thanks.

jaderollie
07-09-2009, 06:40 PM
i cant see an rss icon, any reason why, the install is all ok thanks

if i test i get :-
RSS Poster Robot

test XML Error: Mismatched tag at line 777

RSS Feed Manager

Done

coffee
08-10-2009, 09:01 PM
Good for English forums but not others ..

It needs to be more flexible and using a code like the one in the file: external.php which shows feeds from all languages.

jaderollie
08-10-2009, 09:19 PM
mine still does not work :(

Alfa1
09-13-2009, 02:37 PM
The feed shows every post in the same thread. Can you reduce this to showing each thread once?
Could you add one feed for all groups?

Morrus
04-14-2012, 04:02 PM
I know this is old and unsupported. But for those who are thinking of installing this, please be aware that the RSS feed breaks if the content contains any apostrophes.

smirkley
11-23-2015, 07:48 PM
Can be made to work with minor alterations to the code, and link embed onto template.