Remplacer la virgule des sous forums
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Remplacer la virgule des sous forums
Détails techniques
Version du forum : phpBB2Poste occupé : Administrateur
Navigateur(s) concerné(s) : Google Chrome
Capture d'écran du problème :
- Voir l'image:
Personnes concernées par le problème : Tous les utilisateurs
Lien du forum : http://poetikart.forumactif.org
Description du problème
Bonjour,J'aimerais remplacer la virgule des sous forums par un autre signe.
Mon Index-box a été modifié donc je ne sais pas comment faire.
Merci pour votre réponse.
- Index-box:
- <!-- BEGIN switch_user_logged_in -->
<div class="gensmall searchnew" align="center" valign="bottom">
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="150"><div style="width:210px;">{L_LASTPOST}</div></th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
<h{catrow.cathead.LEVEL} class="hierarchy">
<span class="cattitle">
<a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
</span>
</h{catrow.cathead.LEVEL}>
</td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
<!-- END inc -->
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td>
<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
</span>
</h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall">{catrow.forumrow.POSTS} messages dans {catrow.forumrow.TOPICS} sujets.</td></tr></tbody></table>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="gensmall">
<!-- BEGIN switch_moderators_links -->
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</span>
</td>
<td class="row3 over" align="center" valign="middle" height="50">
<!-- BEGIN ads -->
<span class="AD_LastPA">
<span class="lastpost-avatar"><img src="{catrow.forumrow.ads.IMG}" alt="{catrow.forumrow.ads.TITLE}" /></span>
<span class="AD_LastInfos">
<b><a href="{catrow.forumrow.ads.LINK}">{catrow.forumrow.ads.TITLE}</a></b><br />
{catrow.forumrow.ads.DATE}<br />
{catrow.forumrow.ads.LOCATION}
</span>
</span>
<!-- END ads -->
<!-- BEGIN avatar -->
<div style="width: 200px;"></div>
<span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
<!-- END avatar -->
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Dernière édition par Gourmandine.P le Lun 10 Juil 2017 - 14:47, édité 1 fois
Re: Remplacer la virgule des sous forums
Bonjour Gourmandine,
Je veux bien essayer de t'aider déjà tu vas remplacer ton code "Index Box" par celui ci-dessous tu n'oublie pas bien sûr une fois enregistré de cliquer sur le "v" en vert pour valider le code :
Ensuite va dans "Modules" -> Gestion des codes Javascripts
Tu mets comme titre "Suppression virgules titres sous-forums" ; tu coches "Sur Toutes les pages"
Puis tu y colles ce code et tu valides :
Ensuit direction "Affichage" - > "Images et Couleurs" -> "Couleurs" -> Feuille de style css
Et tu rajoutes ce code à la suite (remplace les points d'interrogation par le sigle/image/symbole que tu souhaites) et tu valides :
J'espère t'avoir aidée
Ombeline
Je veux bien essayer de t'aider déjà tu vas remplacer ton code "Index Box" par celui ci-dessous tu n'oublie pas bien sûr une fois enregistré de cliquer sur le "v" en vert pour valider le code :
- Code:
<!-- BEGIN switch_user_logged_in -->
<div class="gensmall searchnew" align="center" valign="bottom">
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="150"><div style="width:210px;">{L_LASTPOST}</div></th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
<h{catrow.cathead.LEVEL} class="hierarchy">
<span class="cattitle">
<a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
</span>
</h{catrow.cathead.LEVEL}>
</td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
<!-- END inc -->
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td>
<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
</span>
</h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall">{catrow.forumrow.POSTS} messages dans {catrow.forumrow.TOPICS} sujets.</td></tr></tbody></table>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="gensmall">
<!-- BEGIN switch_moderators_links -->
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
<div class="sub_link"><span class="ListeSousForums">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span></div>
</div>
</span>
</td>
<td class="row3 over" align="center" valign="middle" height="50">
<!-- BEGIN ads -->
<span class="AD_LastPA">
<span class="lastpost-avatar"><img src="{catrow.forumrow.ads.IMG}" alt="{catrow.forumrow.ads.TITLE}" /></span>
<span class="AD_LastInfos">
<b><a href="{catrow.forumrow.ads.LINK}">{catrow.forumrow.ads.TITLE}</a></b><br />
{catrow.forumrow.ads.DATE}<br />
{catrow.forumrow.ads.LOCATION}
</span>
</span>
<!-- END ads -->
<!-- BEGIN avatar -->
<div style="width: 200px;"></div>
<span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
<!-- END avatar -->
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Ensuite va dans "Modules" -> Gestion des codes Javascripts
Tu mets comme titre "Suppression virgules titres sous-forums" ; tu coches "Sur Toutes les pages"
Puis tu y colles ce code et tu valides :
- Code:
$(function(){
$('.ListeSousForums').each(function(){
$(this).html($(this).html().replace(/<\/a>,/ig, '</a>'));
});
});
Ensuit direction "Affichage" - > "Images et Couleurs" -> "Couleurs" -> Feuille de style css
Et tu rajoutes ce code à la suite (remplace les points d'interrogation par le sigle/image/symbole que tu souhaites) et tu valides :
- Code:
/*Séparations titres sous forums*/
.ListeSousForums a:after {
content:" ??? ";
vertical-align : 1px;
}
.ListeSousForums a:last-child:after {
content:"";
}
/*Fin séparations titres sous forums*/
J'espère t'avoir aidée
Ombeline
Re: Remplacer la virgule des sous forums
Hello Gourmandine.P et Ombeline30,
Ombeline30 ,
il y a bien plus simple et sans passer par un Script .
Gourmandine.P
Recherches dans le template ces deux variables:
Supprimes et remplaces par:
Penses à enregistrer puis à valider en cliquant respectivement sur puis
Dans la feuille de style:
Affichage/Images et Couleurs/Couleurs/Feuille de style
Déposes ceci:
Penses à cliquer sur le bouton
Pour le symbole, il suffit de modifier le + par celui de ton choix ici:
a++
Ombeline30 ,
il y a bien plus simple et sans passer par un Script .
Gourmandine.P
Recherches dans le template ces deux variables:
- Code:
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
Supprimes et remplaces par:
- Code:
<span id="M14_sous_fofo">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
Penses à enregistrer puis à valider en cliquant respectivement sur puis
Dans la feuille de style:
Affichage/Images et Couleurs/Couleurs/Feuille de style
Déposes ceci:
- Code:
/*On donne une taille de police a 0px*/
#M14_sous_fofo{font-size:0px;}
/*on donne une taille de police aux liens des sous fofos a 11px*/
#M14_sous_fofo a.gensmall{font-size:11px;}
/*on donne une apparence au symbole choisi*/
#M14_sous_fofo a.gensmall:after{content="+";font-size:8px;margin: 0px 2px 0px 2px;}
/*on supprime le symbole pour le dernier sous fofo*/
#M14_sous_fofo a.gensmall:last-child:after {content:"";}
Penses à cliquer sur le bouton
Pour le symbole, il suffit de modifier le + par celui de ton choix ici:
- Code:
#M14_sous_fofo a.gensmall:after{content="+";
a++
Invité- Invité
Re: Remplacer la virgule des sous forums
Bonsoir Milouze
Et comme toujours merci pour tes astuces toujours super intuitives
Belle soirée,
Ombeline
Et comme toujours merci pour tes astuces toujours super intuitives
Belle soirée,
Ombeline
Re: Remplacer la virgule des sous forums
Merci pour tous vos conseils.
Re: Remplacer la virgule des sous forums
De rien avec plaisir
Sujets similaires
» Retirer la virgule des sous forums
» Retirer la virgule des sous-forums
» Problème remplacement virgule des sous forums
» Retirer la virgule des sous-forums (template modifié)
» Décalage du texte et enlever la virgule entre les sous-forums, ...
» Retirer la virgule des sous-forums
» Problème remplacement virgule des sous forums
» Retirer la virgule des sous-forums (template modifié)
» Décalage du texte et enlever la virgule entre les sous-forums, ...
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum