Results 1 to 9 of 9

Defining RSS Feeds by Forum & Thread

This is a discussion on Defining RSS Feeds by Forum & Thread within the General Discussion forums, part of the vBulletin SEO Discussion category; By default vBulletin defines the RSS feed for the entire site on every page. This should be by forum. I've ...

  1. #1
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times

    Defining RSS Feeds by Forum & Thread

    By default vBulletin defines the RSS feed for the entire site on every page. This should be by forum. I've made this change to my headerinclude:

    Change
    Code:
    <if condition="$vboptions['externalrss']"><link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" />
    to

    Code:
    <if condition="$vboptions['externalrss']">
    <if condition="$show['foruminfo'] OR $show['threadinfo']">
    <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] RSS Feed" href="external.php?type=rss2&forumids=$foruminfo[forumid]" />
    <else />
    <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" />
    </if>
    </if>
    In addition I've also done a custom rewrite on external.php:
    'external\.php\?type=rss2&forumids=(\d+)' => 'forum-$1-rss.xml'
    'external\.php\?type=rss2$' => 'rss.xml'

  2. #2
    Junior Member
    Real Name
    jay woo
    Join Date
    Jan 2007
    Posts
    17
    Liked
    0 times
    i'm interested in doing this.

    do i just change the code to what you put?

  3. #3
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times
    Actually, 3.6 does this by default; very similar. When I did this I did it for 3.5

    edit: the rewrite isn't done by default, obviously

  4. #4
    Junior Member
    Real Name
    jay woo
    Join Date
    Jan 2007
    Posts
    17
    Liked
    0 times
    what do you mean by 3.6 does it by default?

    how can i make rss feeds for one of my forum?

  5. #5
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times
    The first set of code above is from 3.5. In 3.6 the same code looks more like the second set.

    RSS feeds are created by external.php, which is a default feature of vbulletin.

  6. #6
    Senior Member Code Monkey's Avatar
    Real Name
    Code Monkey
    Join Date
    Aug 2006
    Posts
    780
    Liked
    0 times
    I always put the site name in there.

    Code:
    Site-Name-Feed-f(\d+)\.rss#] => external.php?type=RSS2&forumids=$1
    Site-Name-Feed\.rss#] => external.php?type=RSS2

  7. #7
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times
    Yep! Recently I moved everything over to feedburner though so I can track things a little better.

  8. #8
    Member
    Real Name
    Mike Collins
    Join Date
    Jun 2006
    Posts
    59
    Liked
    0 times
    Care to explain how you moved everything to feedburner? Specifically, how do you get things set so that when a visitor hits the RSS button on their browser that it calles feedburner instead of external.php?

  9. #9
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times
    modified the code above to point to the feedburner URL. If you check out my cell phone site, you'll see how they're named.

Similar Threads

  1. The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD
    By Joe Ward in forum General Discussion
    Replies: 49
    Last Post: 09-20-2011, 07:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •