vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Social Group RSS - RSS Feeds for Social Groups (https://vborg.vbsupport.ru/showthread.php?t=213241)

nick_ramsay 05-08-2009 10:00 PM

Social Group RSS - RSS Feeds for Social Groups
 
1 Attachment(s)
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:

Code:

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

Code:

<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. 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.


All times are GMT. The time now is 10:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete