Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Help needed for RSS url

Aloittaja kks_krishna, elokuu 04, 2007, 10:54:44 IP

« edellinen - seuraava »

kks_krishna

HI,

I want to use the FeedBurner url for my Forum Posts. How can I edit the URL of the RSS icon.

H

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" />';
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

imschur

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

H

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?
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

imschur

#4
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 [nofollow]


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

imschur

I got it. Heres what worked

<link rel="alternate" type="application/rss+xml" title="Gearpedia - RSS" href="http://feeds.feedburner.com/Gearpedia?format=xml" />

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: