Affichage personnalisé des catégories

2 participants

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

Résolu Affichage personnalisé des catégories

Message par VERONICA974 Dim 3 Mai 2015 - 14:42

Détails techniques


Version du forum : phpBB2
Poste occupé : Fondateur
Navigateur(s) concerné(s) : Mozilla Firefox
Capture d'écran du problème :
Voir l'image:

Personnes concernées par le problème : Moi uniquement
Problème apparu depuis : 01 MAI 2015
Lien du forum : http://fiftyshades.forumofficiel.fr/

Description du problème

Bonjour tout le monde,

Je m'adresse à vous aujourd'hui pour un petit problème de structure dont je n'arrive pas à m'en défaire. Vous pouvez voir ce qu'il en est et par la même occasion ce que je souhaite sur la photo ci-dessus.

Je vous fournis également mon template index_box modifié :

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="3" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </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">&nbsp;</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">
      </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}>
                 <div class="descrip"><span class="genmed">{catrow.forumrow.FORUM_DESC}</span>        <br />
                          <div class="subfo">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</div></div>
         <span class="gensmall">
            <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
         </span>
      </td>
        <td class="row3 over" align="center" valign="middle" height="50">
                          <fieldset class="lastm"><legend class="stats"><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></legend><span class="gensmall">{catrow.forumrow.LAST_POST}<br />
                          {catrow.forumrow.TOPICS} sujets, {catrow.forumrow.POSTS} messages</span>
                          </fieldset>
              </td>
            <!-- 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="http://nsa38.casimages.com/img/2015/05/03//150503020016794760.jpg"><!-- END tablefoot --><!-- END catrow -->

Ainsi que mon code CSS relatif à ma structure des catégories :

Code:
        .lastm{
        border: 1px solid #D8D8D8;
        border-radius: 11px;
        width: 150px;}
       
        .descrip{
        border: 1px solid #D8D8D8;
        margin: 10px;
        padding: 5px;
        }
       
        .stats{
        border: 1px solid #D8D8D8;
        border-radius: 11px;
        text-align: center;
        padding: 3px;
        }
       
        .subfo{
        padding-left: 75px;}
       
       
        a.forumlink{
        padding-left: 75px;}

En vous remerciant déjà par avance...


Dernière édition par VERONICA974 le Dim 3 Mai 2015 - 19:53, édité 1 fois
avatar

VERONICA974
Nouveau membre

Féminin
Messages : 2
Inscrit(e) le : 01/05/2015

http://fiftyshades.forumofficiel.fr/
VERONICA974 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Affichage personnalisé des catégories

Message par MlleAlys Dim 3 Mai 2015 - 19:21

Bonjour,

les éléments apparaissent au dessus du tableau parce qu'ils ne sont pas à l'intérieur d'une des cellules du tableau : le navigateur ne sait pas où les afficher, donc les met avant le tableau Oo

Essayez le template suivant :
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="3" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </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">&nbsp;</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}>
         <div class="descrip genmed">
            {catrow.forumrow.FORUM_DESC}
                           <!-- BEGIN switch_moderators_links -->
                           <div class="modos gensmall">
               {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
                           </div>
                           <!-- END switch_moderators_links -->
         </div>
                     <div class="subfo gensmall">
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
         </div>
      </td>

      <td class="row3 over" align="center" valign="top" height="50">
         <fieldset class="lastm">
            <span class="gensmall">

               <!-- BEGIN avatar -->
               <span class="lastpost-avatar">
                  {catrow.forumrow.avatar.LAST_POST_AVATAR}
               </span>
               <!-- END avatar -->

               {catrow.forumrow.LAST_POST}
               <br />
               {catrow.forumrow.TOPICS} sujets, {catrow.forumrow.POSTS} messages
            </span>
         </fieldset>
      </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="http://nsa38.casimages.com/img/2015/05/03//150503020016794760.jpg"/>
<!-- END tablefoot -->
<!-- END catrow -->


avec le css suivant :
Code:
a.forumlink {
  display: inline-block;
  padding-left: 75px;
  height: 20px;
  line-height: 20px;
}
     
.descrip {
  border: 1px solid black;
  border-radius: 10px;
  padding: 5px;
  height: 70px;
  overflow: auto;
  margin: 0 5px 5px 5px;
}
     
.subfo {
  display: inline-block;
  padding-left: 75px;
}
     
.lastm {
  border: 1px solid black;
  border-radius: 10px;
  width: 150px;
  height: 70px;
  padding: 5px;
  margin: 20px 5px 5px 5px;
}
MlleAlys

MlleAlys
Membre actif

Messages : 5800
Inscrit(e) le : 12/09/2012

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

Résolu Re: Affichage personnalisé des catégories

Message par VERONICA974 Dim 3 Mai 2015 - 19:53

C'est parfait ... Merci beaucoup !
avatar

VERONICA974
Nouveau membre

Féminin
Messages : 2
Inscrit(e) le : 01/05/2015

http://fiftyshades.forumofficiel.fr/
VERONICA974 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