vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

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

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-30-2007, 01:43 AM
Senior Member
Big Board Administrator
 
Real Name: John
Join Date: Dec 2005
Posts: 386
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'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 10-09-2007, 12:28 AM
Junior Member
 
Real Name: jay woo
Join Date: Jan 2007
Posts: 13
i'm interested in doing this.

do i just change the code to what you put?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 10-09-2007, 12:32 AM
Senior Member
Big Board Administrator
 
Real Name: John
Join Date: Dec 2005
Posts: 386
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 10-09-2007, 12:41 AM
Junior Member
 
Real Name: jay woo
Join Date: Jan 2007
Posts: 13
what do you mean by 3.6 does it by default?

how can i make rss feeds for one of my forum?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 10-09-2007, 11:30 PM
Senior Member
Big Board Administrator
 
Real Name: John
Join Date: Dec 2005
Posts: 386
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 10-10-2007, 12:40 AM
Code Monkey's Avatar
Senior Member
vBulletin HackervBSEO Pre-Release TeamvBSEO Code Quality Assurance
 
Real Name: Code Monkey
Join Date: Aug 2006
Posts: 772
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 10-10-2007, 11:39 AM
Senior Member
Big Board Administrator
 
Real Name: John
Join Date: Dec 2005
Posts: 386
Yep! Recently I moved everything over to feedburner though so I can track things a little better.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 10-31-2007, 05:34 PM
Junior Member
 
Real Name: Mike Collins
Join Date: Jun 2006
Posts: 28
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 10-31-2007, 05:44 PM
Senior Member
Big Board Administrator
 
Real Name: John
Join Date: Dec 2005
Posts: 386
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD Joe Ward General Discussion 25 06-05-2008 12:04 PM


All times are GMT -4. The time now is 01:26 AM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.