Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Patrick Egan - kesäkuu 28, 2006, 03:58:14 AP

Otsikko: Where is RSS advertised in the forums
Kirjoitti: Patrick Egan - kesäkuu 28, 2006, 03:58:14 AP
Maybe I am really missing something but I see in the theme template the statement below. But then where does it actually show up. I have enabled RSS feeds but I don't see where they would actually be listed.

// 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" />';

Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: Dannii - kesäkuu 28, 2006, 04:07:59 AP
It's in the html source. There isn't anything visual.
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: Patrick Egan - kesäkuu 28, 2006, 04:26:10 AP
OK Thanks..

So then how would I do something like adding a feed icon (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.cmcrossroads.com%2Fimages%2Ffeed-icon-12x12.gif&hash=336240771b4e8c2544e6f26eaff62eb032c758a5) next to the board name of each board that is linked to the RSS feed-

Something like...

News and Updates (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.cmcrossroads.com%2Fimages%2Ffeed-icon-12x12.gif&hash=336240771b4e8c2544e6f26eaff62eb032c758a5)
Look here to find general news concerning Simple Machines or its software packages.
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: carlatf - kesäkuu 28, 2006, 09:16:45 IP
Hi Patrick,
I've already done something similar to what you ask.
I added a visual note when you enter to a board that an RSS feed is available.

in MessageIndex.template.php replace


<td align="', !$context['right_to_left'] ? 'right' : 'left', '" nowrap="nowrap" style="font-size: normaltext;" id="botones">', theme_show_buttons(), ' </td>


<td align="', !$context['right_to_left'] ? 'right' : 'left', '" nowrap="nowrap" style="font-size: normaltext;" id="botones">', theme_show_buttons(), ' <a title="The latest messages on the forum ' . $context['page_title'] . ' for your site or your desktop (RSS FEED)" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $context['current_board'], '" /><img src="/rss_delforo.png" valign="middle" hspace="5"  border="0" alt="RSS FEED of the forum ' . $context['page_title'] . '" /></td>


A question, why there's not a TOPIC rss feed? I put  ?type=rss;action=.xml after my topic and I just get the RSS feed for the forum the topic is in.

Best,
Carla
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: Patrick Egan - kesäkuu 29, 2006, 03:13:50 AP
[UPDATED TO USE FEED ICONS] - http://www.feedicons.com/

Thanks Carla,

After a little hunting I use your example and added the XML button the boards index page.

For those following along at home, here's how you go from...

News and Updates
Look here to find general news concerning Simple Machines or its software packages.

To this

News and Updates (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.cmcrossroads.com%2Fimages%2Ffeed-icon-12x12.gif&hash=336240771b4e8c2544e6f26eaff62eb032c758a5)
Look here to find general news concerning Simple Machines or its software packages.


1 - Back it up!

2 - Edit  /SMFDIR/Themes/YOURTHEME/BoardIndex.template.php

3 - Look for something like this (may vary depending on the theme)

Lainaa
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
, $board['description'];

4 - Change it to this

Lainaa
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>
<a title="Subscribe to feed of latest topics for this forum" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $board['id'], '" /><img src="/images/feed-icon-12x12.gif" valign="bottom" border="0" alt="RSS FEED' . $context['page_title'] . '" /></a><br />
, $board['description'];

Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: starrbuck - kesäkuu 29, 2006, 02:21:24 IP
I thought I had a syntax error but I found it.  The problem was operator headspace.  Thanks!
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: Tim - kesäkuu 29, 2006, 06:13:10 IP
For those of you who wish to use something else then the XML button, look into feed icons (http://feedicons.com/)
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: starrbuck - kesäkuu 30, 2006, 12:08:24 IP
Thanks for the link, Tim.  Nice set of icons and I'm glad they are trying to standardize it.
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: Patrick Egan - heinäkuu 04, 2006, 02:38:23 AP
Thanks Tim. The feed icons are SOOOO Much nicer looking and it would be nice to get a standard in place
Otsikko: Re: Where is RSS advertised in the forums
Kirjoitti: vbgamer45 - heinäkuu 04, 2006, 07:39:34 IP
I have a mod that adds it to the boardindex on the default theme for each forum.
http://www.smfhacks.com/hacks/Feed-Icon-Board-Index.html

In fact i got the feedicons from the same site heh.