Recent Topics

1 Jun 17, 2005 15:26    

A friend wanted to add my feed to his site. Initially he didn't find the feed. Here's what he had to say:

"Sorry about that. It does look like you have a RSS 2.0 feed, it's just not auto-discoverable. I'm so used to subscribing to feeds that way. I haven't had to look for a feed on a blog in a while. You might want to look into adding that feature at some point. Most modern blog scripts like WordPress will automatically do that for you."

How can I get B2Evolution to do this also?

(I have a feeling I'm asking a bonehead newbie question, but, hey, I don't know . . . )

Thanks,
David

2 Jun 17, 2005 15:41

That's just done with link tags, afaik.

Don't you have something like this in your skin's _main.php file, up in the HEAD tag?

<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />

3 Jun 17, 2005 17:11

Yes, I have that very same set of link tags in the head tag. Is there something there that needs to be altered to get the "auto-discover" function I want?

- David

4 Jun 17, 2005 17:28

Well in Firefox and Opera both of your blogs generate the RSS feed icon in the browsero it seems to be working OK from what I can see.

5 Jun 17, 2005 18:14

<a href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"><img src="../../img/xml.gif" alt="XML" width="36" height="14" class="middle" /></a>

or more extensive :

<ul>
				<li>
					RSS 0.92:
					<a href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rss_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					RSS 1.0:
					<a href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rdf_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					RSS 2.0:
					<a href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rss2_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					Atom:
					<a href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_atom_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
			</ul>


Form is loading...