Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: kks_krishna - elokuu 04, 2007, 10:54:44 IP

Otsikko: Help needed for RSS url
Kirjoitti: kks_krishna - elokuu 04, 2007, 10:54:44 IP
HI,

I want to use the FeedBurner url for my Forum Posts. How can I edit the URL of the RSS icon.
Otsikko: Re: Help needed for RSS url
Kirjoitti: H - elokuu 05, 2007, 08:53:45 AP
Open:

Themes / default / index.template.php (default may be something else if you're not using the default theme!)

Find:

// If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

Change to:

// If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' <link rel="alternate" type="application/rss+xml" title="http://www.feedburner.com/url" />';
Otsikko: Re: Help needed for RSS url
Kirjoitti: imschur - marraskuu 05, 2007, 08:20:46 IP
Where have I gone wrong?

// If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' <link rel="alternate" type="application/rss+xml" title="http://www.feeds.feedburner.com/Gearpedia" />';

Thanks
Otsikko: Re: Help needed for RSS url
Kirjoitti: H - marraskuu 06, 2007, 03:05:10 IP
I still see this in the source:

<link rel="alternate" type="application/rss+xml" title="Gearpedia - RSS" href="http://www.gearpedia.net/index.php?type=rss;action=.xml" />

Did you modify the code in index.template.php for all the themes on your site and then upload the file with FTP?
Otsikko: Re: Help needed for RSS url
Kirjoitti: imschur - marraskuu 06, 2007, 05:32:30 IP
I put everything back last night when I didnt work.

I only modded the default template as its the only one used at my site.


The line of code you reference from my site is the feed that feedburner (and the rest of the world) uses to to get the content in the first place....right?  Feedburner is receiving the feed and converting it fine. Its getting the link to work on my site thats the problem (in my mind)

http://feeds.feedburner.com/Gearpedia


Heres what I tried and failed at tonight

// If RSS feeds are enabled, advertise the presence of one. if (!empty($modSettings['xmlnews_enable'])) echo ' <link rel="alternate" type="application/rss+xml" title="http://feeds.feedburner.com/Gearpedia?format=xml" />';



Thanks for responding
Drew
Otsikko: Re: Help needed for RSS url
Kirjoitti: imschur - marraskuu 06, 2007, 07:54:41 IP
I got it. Heres what worked

<link rel="alternate" type="application/rss+xml" title="Gearpedia - RSS" href="http://feeds.feedburner.com/Gearpedia?format=xml" />
Otsikko: Re: Help needed for RSS url
Kirjoitti: H - marraskuu 07, 2007, 03:38:40 IP
Glad you got it working! :)