comme on me l'a conseillé ici j'aimerais tester l'add-on du mod Glance de phpbb
mici
Modérateur: Modérateurs
#
#-----[ OPEN ]------------------------------------------
#
glance.php
#
#-----[ FIND ]------------------------------------------
#
// set the topic title sql depending on the character limit set in glance_config
$sql_title = ($glance_topic_length) ? ", LEFT(t.topic_title, " . $glance_topic_length . ") as topic_title" : ", t.topic_title";
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// set the topic title sql depending on the character limit set in glance_config - we want the full URL here
//$sql_title = ($glance_topic_length) ? ", LEFT(t.topic_title, " . $glance_topic_length . ") as topic_title" : ", t.topic_title";
$sql_title = ", t.topic_title";
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('news', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = $latest_news[$i]['topic_title'];
$seo_forum_name = $latest_news[$i]['forum_name'];
//Restore topic title length limit
$latest_news[$i]['topic_title'] = ($glance_topic_length) ? substr($latest_news[$i]['topic_title'], 0, $glance_topic_length) : $latest_news[$i]['topic_title'];
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_LINK' => $topic_link,
#
#-----[ REPLACE WITH ]------------------------------------------
#
'TOPIC_LINK' => append_sid($topic_link),
#
#-----[ FIND ]------------------------------------------
#
'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_news[$i]['forum_id'])
#
#-----[ REPLACE WITH ]------------------------------------------
#
'FORUM_LINK' => append_sid($glance_forum_dir . 'viewforum.php?f=' . $latest_news[$i]['forum_id']))
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('recent', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = $latest_topics[$i]['topic_title'];
$seo_forum_name = $latest_topics[$i]['forum_name'];
//Restore topic title length limit
$latest_topics[$i]['topic_title'] = ($glance_topic_length) ? substr($latest_topics[$i]['topic_title'], 0, $glance_topic_length) : $latest_topics[$i]['topic_title'];
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_LINK' => $topic_link,
#
#-----[ REPLACE WITH ]------------------------------------------
#
'TOPIC_LINK' => append_sid($topic_link),
#
#-----[ FIND ]------------------------------------------
#
'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_topics[$i]['forum_id'])
#
#-----[ REPLACE WITH ]------------------------------------------
#
'FORUM_LINK' => append_sid($glance_forum_dir . 'viewforum.php?f=' . $latest_topics[$i]['forum_id']))
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM












Retourner vers MODS phpBB2 SEO
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités