pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => SMF-pragmaMx Bridge => Thema gestartet von: algebre am 15 Februar 2009, 15:15:52

Titel: Forum RSS feeds
Beitrag von: algebre am 15 Februar 2009, 15:15:52
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" />';
Titel: Re: Forum RSS feeds
Beitrag von: grafikmurkser am 15 Februar 2009, 19:36:39
thx :)