Bonjour,
ds google_sitemap.php
chercher la fonction (lignes 220-244):
<?php
/**
* SMF-Forum
*/
function simple($modname)
{
global $limit, $prefix, $i, $item;
if (!google_allowed($modname)) {
return;
}
// Boards die nicht angezeigt werden sollen, als Array
$exclude_boards = null;
// / versch. globale Variablen vorher initialisieren, weil in Funktionen aufgerufen
global $db_prefix, $settings, $context, $mxsmf;
if (!@include('modules/' . $modname . '/mx_SSI.php') || !function_exists('mxSmfCreatePmxUrl')) {
return;
}
$posts = ssi_recentTopics(intval($limit), $exclude_boards, 'array');
// $posts = ssi_recentPosts(intval($limit), $exclude_boards, 'array');
foreach ($posts as $row) {
$i++;
$item[$i]['link'] = mxSmfCreatePmxUrl(str_replace(';topicseen', '', $row['href']));
$item[$i]['date'] = intval($row['timestamp']);
}
}
remplacer par celle-ci :
<?php
/**
* SMF-Forum
* modifier le 9-03-2010,
* pour: resoudre un problème d'affichage des topics du forum SMF
* suppression de la chaine "#new" en fin des lien pour plus de clarté
*/
function simple($modname)
{
global $limit, $prefix, $i, $item;
if (!google_allowed($modname)) {
return;
}
// Boards die nicht angezeigt werden sollen, als Array
$exclude_boards = null;
// / versch. globale Variablen vorher initialisieren, weil in Funktionen aufgerufen
global $db_prefix, $settings, $context, $mxsmf;
if (@file_exists('modules/' . $modname . '/mx_SSI.php')) {
include('modules/' . $modname . '/mx_SSI.php');
}
if (!function_exists('mxSmfCreatePmxUrl')) {
return;
}
$posts = ssi_recentTopics(intval($limit), $exclude_boards, 'array');
// $posts = ssi_recentPosts(intval($limit), $exclude_boards, 'array');
$exclude_url_parts = array('#new', ';topicseen');
foreach ($posts as $row) {
$i++;
$item[$i]['link'] = mxSmfCreatePmxUrl(str_replace($exclude_url_parts, '', $row['href']));
$item[$i]['date'] = intval($row['timestamp']);
}
}
remarque: le code original est '
techniquement' correct , peut-être un problème de version ou un conflit avec un autre bout de code de pragmaMx