Affichage catégorie et autre ...

2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Résolu Affichage catégorie et autre ...

Message par ♥Lolita97416♥ Mar 2 Aoû 2011 - 16:14

Bonjour,

Voilà je cherche depuis des jours comment faire en sorte que mes catégorie s'affiche comme ceci et ne sais nullement quel templates modifiés , ni quel CSS ajoutés pour faire ceci :
Spoiler:

Deuxièmement , j'aimerai savoir comment faire pour enlever les modérateurs des forums .
Enfin je ne veux plus qu'il y es ceci :
Spoiler:

Merci d'avance et bonne fin de journée


Dernière édition par ♥Lolita97416♥ le Dim 7 Aoû 2011 - 17:46, édité 1 fois
♥Lolita97416♥

♥Lolita97416♥
*

Messages : 34
Inscrit(e) le : 29/01/2011

http://heartland.forumgratuit.org/
♥Lolita97416♥ a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par Invité Mar 2 Aoû 2011 - 16:31

Bonjour,

Une première piste pour réaliser les modifications de vos catégories:
> https://forum.forumactif.com/t261562-suppression-des-colonnes-sujets-et-messages .

Pour l'affichage des modérateurs, rendez-vous dans Panneau d'admin' > Affichage > Structure et hiérarchie => Afficher les modérateurs d'un forum: "Non".

Cordialement.
Anonymous

Invité
Invité


Invité a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par ♥Lolita97416♥ Mar 2 Aoû 2011 - 16:44

Merci pour les modérateur .

Mais ce que je cherche n'est pas d'afficher le nombre de sujets et messages mais plutôt faire apparaître le nom de mes catégorie comme ceci , enfin avec cette forme :
Spoiler:
♥Lolita97416♥

♥Lolita97416♥
*

Messages : 34
Inscrit(e) le : 29/01/2011

http://heartland.forumgratuit.org/
♥Lolita97416♥ a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par Invité Mer 3 Aoû 2011 - 15:42

Bonjour,

J'avais mal compris Razz . Pour modifier les titre des catégories de cette manière, il faut modifier le template index_box. Pour cela il faut être fondateur et avoir une version de forum qui permet la modification de template.

Pour phpBB2, on peut agir sur les titres via le CSS, en ajoutant ceci:
Code:
/*oter le fond des categories*/
.secondarytitle h2 {
  background-color: transparent;}

/*fond des titres de catégories*/
.secondarytitle {
  background-image: url('http://i44.servimg.com/u/f44/16/64/78/25/barrre10.jpg');
  background-repeat: no-repeat;
  background-color: transparent;
  background-position: bottom left;
  height:30px;
  width:180 px;
  text-align: left;
  padding-left: 5px;}
Remplacez l'image que j'ai mise pour tester par celle de votre choix, et personnaliser le code CSS selon ce que vous cherchez à obtenir.

Ensuite, dans le template index_box, on retire les en-têtes des colonnes sujet/message/dernier message.
Repérez ce morceau:
Code:
<th nowrap="nowrap" width="50">{L_TOPICS}</th>
      <th nowrap="nowrap" width="50">{L_POSTS}</th>
      <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
et supprimez-le.

Ensuite on déplace le titre des catégories au dessus du tableau avec la class "forumline". Pour cela il faut recréer un petit tableau:
Repérez:
Code:
<!-- 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>
         </tr>
   <!-- END tablehead -->
   <!-- BEGIN cathead -->
Remplacez par:
Code:
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
         </tr></table><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   
   <!-- END tablehead -->
   <!-- BEGIN cathead -->
Les titres sont en place, mais les colonnes en dessous sont déformées. Donc il faut ajouter les dimensions dans cette partie:
Code:
      <td class="row3" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </td>
comme ceci:
Code:
      <td class="row3" align="center" valign="middle" height="50"  width="50"><div style="width:50;">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50"  width="50"><div style="width:50;">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50" width="150"><div style="width:150;">
         <span class="gensmall">{catrow.forumrow.LAST_POST}</span></div>
      </td>
Si vous avez apporté des modifications sur le template, ne modifiez que le nécessaire Wink .

Cordialement.
Anonymous

Invité
Invité


Invité a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par ♥Lolita97416♥ Jeu 4 Aoû 2011 - 11:09

J'essaye et je te préviens du résultat

Mais merci tout de même ♥

Edit => Enfaite je n'y arrive pas , donc si tu aurai un petit temps , pourrai-tu changer mon template sil te plait ?

Le voici :
Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
   <tr>
      <td valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <span class="gensmall">{LAST_VISIT_DATE}<br />
         {CURRENT_TIME}<br />
         </span>
         <!-- END switch_user_logged_in -->
         <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
         <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
         <!-- END switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
   </tr>
</table>
<!-- 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="50">{L_TOPICS}</th>
      <th nowrap="nowrap" width="50">{L_POSTS}</th>
      <th nowrap="nowrap" width="150"><div style="width:150px;">{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">
         <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
         </h{catrow.forumrow.LEVEL}>
         <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" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50">
         <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 -->



Merci d'avance ♥
♥Lolita97416♥

♥Lolita97416♥
*

Messages : 34
Inscrit(e) le : 29/01/2011

http://heartland.forumgratuit.org/
♥Lolita97416♥ a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par Crazy-Sweet Jeu 4 Aoû 2011 - 11:20

Oww Merci, depuis le temps que je chercher, sa marche super bien. Simplement une question, comment centrer les titres?
Crazy-Sweet

Crazy-Sweet
***

Messages : 121
Inscrit(e) le : 30/12/2009

http://crazy-sweet.forumgratuit.org/
Crazy-Sweet a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par Invité Jeu 4 Aoû 2011 - 22:25

Bonsoir,

@ ♥Lolita97416♥. A quelle étape êtes-vous bloquée? qu'est-ce qui ne fonctionne pas?

@ Crazy-Sweet, Le mieux serait d'ouvrir un nouveau sujet, sinon cela risque de rendre la compréhension du topic un peu difficile Wink .

Cordialement.
Anonymous

Invité
Invité


Invité a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par ♥Lolita97416♥ Ven 5 Aoû 2011 - 10:07

Insolide : Je ne comprends rien , je ne comprends pas beaucoup ce template
♥Lolita97416♥

♥Lolita97416♥
*

Messages : 34
Inscrit(e) le : 29/01/2011

http://heartland.forumgratuit.org/
♥Lolita97416♥ a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par Invité Ven 5 Aoû 2011 - 11:53

Bonjour,

L'inconvénient, en vous donnant le template tout fait, c'est que vous ne pourrez pas le modifier vous-même pour l'adapter à votre forum ...

Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
   <tr>
      <td valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <span class="gensmall">{LAST_VISIT_DATE}<br />
         {CURRENT_TIME}<br />
         </span>
         <!-- END switch_user_logged_in -->
         <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
         <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
         <!-- END switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
   </tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table  border="0" cellspacing="0" cellpadding="0" align="left"><tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
        </tr></table><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
 
  <!-- 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">
         <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
         </h{catrow.forumrow.LEVEL}>
         <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" align="center" valign="middle" height="50"  width="50"><div style="width:50px;">
        <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>
      <td class="row2" align="center" valign="middle" height="50"  width="50"><div style="width:50px;">
        <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50" width="150"><div style="width:150px;">
        <span class="gensmall">{catrow.forumrow.LAST_POST}</span></div>
      </td>
      </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 -->

Cordialement.
Anonymous

Invité
Invité


Invité a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage catégorie et autre ...

Message par ♥Lolita97416♥ Dim 7 Aoû 2011 - 17:26

Ahhhh super merci ♥

Problème résolu.

Merci Isolde
♥Lolita97416♥

♥Lolita97416♥
*

Messages : 34
Inscrit(e) le : 29/01/2011

http://heartland.forumgratuit.org/
♥Lolita97416♥ a été remercié(e) par l'auteur de ce sujet.

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum