Comment mettre une balise h1 dans le titre d'un forum phpBB

WRInaute passionné
hello

sur le forum wri, le nom du forum en gros au dessus de ce message, est dans une balise h1, comment faire pareil ?

et si possible faire pareil pour le titre du topic que est un peu au dessus de ces lignes que vous lisez, comment mettre une balise h1 (ou h2) autour ?

ca va en intéréssé je suis sur

merci d'avance
 
WRInaute occasionnel
Il faut que tu change les fichiers de tes templates, dans les fichier qui portent dans leur nom "viewtopic" principalement, mais sur la plupart ça ne fait aps de mal (viewforum etc..) :D
 
Nouveau WRInaute
YSonic a dit:
Il faut que tu change les fichiers de tes templates, dans les fichier qui portent dans leur nom "viewtopic" principalement, mais sur la plupart ça ne fait aps de mal (viewforum etc..) :D

C'est à dire modifier quels codes dans quelles pages ?
 
WRInaute passionné
et dans les fichier tpl (template) c pas plus facile ?

vous voyez que ça interesse d'autre webmasters cette question :D
 
Nouveau WRInaute
Hum désolé pour moi "template" n'est pas un fichier mais un dossier ! Et dans ce dossier tu as au minimum 2 sous dossiers. Et dans ces dossiers tu as des fichiers. Alors ma question est loin d'être idiote :?
 
WRInaute occasionnel
Les fichiers en .tpl (qui sont dans le dossier du "thème choisi", qui est dans le dossier "templates") dont le nom comprte "viewtopic" sont les pages qui servent à afficher un sujet, il suffit de trouver la ligne qui affiche le titre du sujet (variable suivant les thèmes) et d'ajouter les balises h1 ;)
 
Nouveau WRInaute
Voici le code de mon fichier viewtopic_body.tpl, je doit insérer H1 à quel endroit ?

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="maintitle" valign="top">&nbsp;<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td valign="top" class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}" id="{postrow.U_POST_ID}"></a><strong>{postrow.POSTER_NAME}</strong></span><br />
<span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}</span><br />
<img src="images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" /></a>{L_POSTED}:
{postrow.POST_DATE}</td>
<td align="right" valign="top" nowrap="nowrap">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a href="#top"></a>{postrow.DELETE_IMG}{postrow.IP_IMG}<img src="templates/fiblack3d/images/icon_up.gif" alt="{L_BACK_TO_TOP}" width="16" height="18" title="{L_BACK_TO_TOP}" class="imgtopic" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom" class="genmed">{postrow.SIGNATURE}<span class="postdetails">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}">{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>
</tr>
<tr>
<td class="spacerow" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td colspan="2" align="center" class="cat">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}:&nbsp;&nbsp;</td>
<td>{S_SELECT_POST_DAYS}&nbsp;</td>
<td>{S_SELECT_POST_ORDER}&nbsp;</td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><br />
<br />
{JUMPBOX}<br />
<br />
{S_TOPIC_ADMIN}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
</tr>
</table>
 
WRInaute passionné
faut trouver la variable qui affiche le titre, mais j'ia pas le courage dans ton code lol, quelqu'un peu se casser la tête a ma place :D ?
 
WRInaute occasionnel
Salut,pour le forum php il faut chercher le fichier appelé overall_header.tpl dans templates/subsilver et le titre de la page c'est SITENAME...
Voilà j'espère que vous avez votre réponse.
 
WRInaute discret
Z'avez pas chercher loin, 3ligne du code de bibou2635 pour le titre du topic ^^
Code:
<td class="maintitle" valign="top">&nbsp;<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
 
WRInaute occasionnel
Après, rien n'empêche de créer une autre colonne ou ligne au design pour faire un titre en non cliquable par exemple ^^

Sinon, il suffit de rajouter les balises entre lse td données plus haut par nautiljon ;)
 
Nouveau WRInaute
nautiljon a dit:
Z'avez pas chercher loin, 3ligne du code de bibou2635 pour le titre du topic ^^
Code:
<td class="maintitle" valign="top">&nbsp;<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>

Merci nautiljon :D
 
Discussions similaires
Haut