Problème avec le titre des mes catégories

2 participants

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

Résolu Problème avec le titre des mes catégories

Message par Sweeney Dim 11 Mar 2012 - 21:50

Bonsoir tout le monde !

Comme mon titre l'indique, j'ai un problème avec le titre de mes catégories. En suivant ce tutoriel pour mettre des images en-haut et en-bas des catégories, je me suis rendue compte qu'après il m'était impossible de mettre des images en guise de titre de catégories. Même en utilisant le code que tout le monde connait, ça ne marche pas. J'aimerais donc savoir s'il y a un moyen ou un code à insérer dans le template pour pouvoir insérer mes fameux titres un à un, c'est-à-dire catégorie par catégorie puisque j'ai appris que le tutoriel que j'ai suivi s'applique à toutes les catégories, je me retrouve donc avec un titre unique pour toutes mes catégories et il m'est impossible de le remplacer par une image.

Voici mon index_box:
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 width="80%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" style="background-image: url(http://44.imagebam.com/download/_4XFOOIodqApHzWs6hjkxA/17929/179286003/Haut%20Cat%C3%83%C2%A9gories.png); height: 183px; width: 877px; background-repeat: no-repeat; background-position: center center;">TEXTE</td></tr></table>
<table align="center" class="forumline" width="877px" border="0" cellspacing="0" cellpadding="0">
  <tr>
      
      
      </div>
   </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 over" align="center" valign="middle" height="50">
            <span class="gensmall"></span><br />
    <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><table style="margin-bottom: 40px;" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="http://65.imagebam.com/download/YTvSab-d46FY7EAPOScJqQ/17930/179298488/Bas%20Cat%C3%83%C2%A9gories.png" /></td></tr></table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->

Je ne vous poste pas mon CSS car le problème ne vient pas de là (il ne compte rien mis à part une modification du header), mais si néanmoins vous en avez besoin je vous le posterais.

Je vous ai fait un imprim. écran de mon forum pour que vous puissiez mieux comprendre mon problème (ne faites pas trop attention, il est en reconstruction) :
Spoiler:

Je remercie d'avance la ou les personnes qui prendront la peine de me répondre. Et je m'excuse aussi au cas où ce sujet ne serait pas posté dans la bonne catégorie.


Dernière édition par Sweeney le Dim 11 Mar 2012 - 23:24, édité 1 fois
Sweeney

Sweeney
*

Messages : 31
Inscrit(e) le : 11/03/2012

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

Résolu Re: Problème avec le titre des mes catégories

Message par Kaktus Dim 11 Mar 2012 - 22:59

Bonsoir !
Je pense que cela vient tout simplement du fait que vous ayez mis "Texte" dans votre template, de ce fait cela s'affiche partout. Je vous propose ceci, en l'enlevant et en mettant la balise qui correspond aux catégories. Je n'ai pas essayé, mais logiquement, cela devrait fonctionner.

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 width="80%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" style="background-image: url(http://44.imagebam.com/download/_4XFOOIodqApHzWs6hjkxA/17929/179286003/Haut%20Cat%C3%83%C2%A9gories.png); height: 183px; width: 877px; background-repeat: no-repeat; background-position: center center;"><span class="secondarytitle">{catrow.tablehead.L_FORUM}</span></td></tr></table>
<table align="center" class="forumline" width="877px" border="0" cellspacing="0" cellpadding="0">
  <tr>
     
     
      </div>
  </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 over" align="center" valign="middle" height="50">
            <span class="gensmall"></span><br />
    <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><table style="margin-bottom: 40px;" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="http://65.imagebam.com/download/YTvSab-d46FY7EAPOScJqQ/17930/179298488/Bas%20Cat%C3%83%C2%A9gories.png" /></td></tr></table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->

Cordialement, Kaktus.
Kaktus

Kaktus
***

Féminin
Messages : 160
Inscrit(e) le : 12/12/2010

http://capharnaum.forumactif.fr/
Kaktus a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Problème avec le titre des mes catégories

Message par Sweeney Dim 11 Mar 2012 - 23:26

Je vous remercie énormément, ça a marché ! Je n'y aurais jamais pensé de moi-même puisque je ne m'attaque aux templates que depuis quelques heures, j'étais une véritable novice avant. Mille mercis, vraiment !
Sweeney

Sweeney
*

Messages : 31
Inscrit(e) le : 11/03/2012

Sweeney 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