Changer l'ordre dans le titre d'un forum phpbb

WRInaute impliqué
Bonjour à tous,

j'aurais aimé savoir comment je dois procéder pour modifier l'affichage des titres de mon forum Phpbb afin d'optimiser le référencement de mon forum.

Donc pour ne plus avoir :

TITRE_SITE :: Voir le forum - TITRE_POST...

et le remplacer simplement par :

TITRE_POST - TITRE_SITE

J'ai essayé le code fournie dans ce topic :https://www.webrankinfo.com/forum/viewtopic_16647.htm

Mais il change le titre de cette facon : TITRE_SITE - TITRE_POST

Moi je veux le contraire

Edit : La solution --> https://www.webrankinfo.com/forum/viewt ... 095#555095
 
WRInaute impliqué
Je crois que dans le fichier viewtopic.php tu auras la réponse, il y a une ligne qui doit se nommer TITLE => $var...

A+
 
WRInaute impliqué
J'ai trouvé la solution. La voila :

Code:
#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_topic'] .' - ' . $topic_title;
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title = $topic_title;
 
#
#-----[ OPEN ]------------------------------------------
#

viewforum.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
$page_title = $forum_row['forum_name'];
 
#
#-----[ OPEN ]------------------------------------------
#

templates/SubSilver/overall_header.tpl
 
#
#-----[ FIND ]------------------------------------------
#

<title>{SITENAME} :: {PAGE_TITLE}</title>
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
<title>{PAGE_TITLE} :: {SITENAME}</title>
 
#
#-----[ OPEN ]------------------------------------------
#

index.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['Index'];
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title =  $board_config['site_desc'];
 
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
 
WRInaute impliqué
hebmaster a dit:
J'ai trouvé la solution. La voila :

Code:
#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_topic'] .' - ' . $topic_title;
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title = $topic_title;
 
#
#-----[ OPEN ]------------------------------------------
#

viewforum.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
$page_title = $forum_row['forum_name'];
 
#
#-----[ OPEN ]------------------------------------------
#

templates/SubSilver/overall_header.tpl
 
#
#-----[ FIND ]------------------------------------------
#

<title>{SITENAME} :: {PAGE_TITLE}</title>
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
<title>{PAGE_TITLE} :: {SITENAME}</title>
 
#
#-----[ OPEN ]------------------------------------------
#

index.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['Index'];
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title =  $board_config['site_desc'];
 
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Merci d'avoir partagé ta découverte je cherchait moi aussi un truc similaire
 
WRInaute impliqué
eWeb a dit:
Vous avez pas une erreur avec le fichier viewforum.php après ces changements ?
non

essaye de mod :

Code:
#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_topic'] .' - ' . $topic_title;
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title = $topic_title;
 
#
#-----[ OPEN ]------------------------------------------
#

viewforum.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
$page_title = $forum_row['forum_name'];
 
#
#-----[ OPEN ]------------------------------------------
#

templates/SubSilver/overall_header.tpl
 
#
#-----[ FIND ]------------------------------------------
#

<title>{SITENAME} :: {PAGE_TITLE}</title>
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#
 
<title>{PAGE_TITLE} :: {SITENAME}</title>
 
#
#-----[ OPEN ]------------------------------------------
#

index.php
 
#
#-----[ FIND ]------------------------------------------
#
 
$page_title = $lang['Index'];
 
#
#-----[ REPLACE, WITH  ]------------------------------------------
#

$page_title =  '';
 
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
 
Discussions similaires
Haut