To get the first exemple in index.php, just add :
- Code: Select all
// GYM Sitemaps & RSS agregator
if (!empty($config['gym_installed'])) {
if (!function_exists('display_feed')) {
require_once($phpbb_root_path . 'gym_sitemaps/includes/gym_common.' . $phpEx);
}
$params = array(
// Full URL to the RSS feed
'url' => 'http://phpbb3.phpbb-seo.net/rss/news/forum.xml',
// true | false - Scroll the link list or not ?
// Default is false
'slide' => true,
// number of item to parse
// Default is 5
'limit' => 10,
);
/**
* display_feed($params, $tpl_prefix = '')
* $params : array of params or string feed URL for defaults
* tpl_prefix is for using different link blocks on one page
* Use display_feed('http://www.example.com/rss/rss.xml') to use default settings.
* */
display_feed($params);
}
// GYM Sitemaps & RSS agregator
before :
- Code: Select all
page_header(
(the line is longer) and then :
- Code: Select all
<!-- INCLUDE gym_link_body.html -->
wherever you'd like to see the list in index_body.html
You'd just have to change the source (
http://phpbb3.phpbb-seo.net/rss/news/forum.xml) to match your feeds instead to have your scrolled last topic list on index
You'll find more details about the possible option in the GYM install file.
Please note that so far only the prosilver gym_link_body.html is provided, so you'll need to make your own for other styles, but it's not very difficult.
++