- Code: Tout sélectionner
Fatal error: Call to undefined function display_feed() in /home/villar/public_html/forum/last_posts_GYM.php on line 32
Et en regardant dans le fichier gym_common.php, je n'ai pas vu la fonction display_feed()
Donc là je coince (mes débuts d'utilisation du code PHP SEO sont un peu difficile
Une petite aide est donc la bienvenue !
Voici mon code de last_posts_GYM.php
- Code: Tout sélectionner
<!-- INCLUDE overall_header.html -->
<!-- INCLUDE gym_link_body.html -->
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// 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://www.ville-arnieressuriton.fr/forum/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);
}
page_header('RSS Last Topics');
page_footer();
?>
<!-- INCLUDE overall_footer.html -->

Français |
Anglais


