Forum RSS feeds

Begonnen von algebre, 15 Februar 2009, 15:15:52

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

algebre

I have a proposal about the RSS feeds of forum smf,
to be accessible from any location of the site.
in the file includes/my_header.php we add this code:

if (mxModuleAllowed('Forum')) {
$boardname = 'Forum';
include('modules/' . $boardname . '/mx_SSI.php');
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', 'modules.php?name=', $boardname ,'&amp;type=rss;action=.xml" />';
}


or simply:

if (mxModuleAllowed('Forum')) {
echo '
<link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars($GLOBALS['sitename']) . ' - ' . _FORUM . '" href="modules.php?name=Forum&amp;type=rss;action=.xml">
';
}


and delete this line from modules/Forum/smf/Themes/default/index.template.php


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

grafikmurkser

meine pmx-Seite : die erste und einzige, freie, deutschsprachige Community rund um fraktale Bilder apophysis-schmiede   reg.User mehr als 1000