Modification colonne "Dernier Message"

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

Résolu Modification colonne "Dernier Message"

Message par Sin'ah Sam 28 Jan 2012, 15:32


B
onjour à tous,
Après avoir longuement réfléchis et tergiversé sur la question, j'ose finalement poster afin de trouver un peu d'aide. Je vous remercie d'avance de lire mon baratin ! =) J'espère réussir à être claire...

Je cherche à modifier le corps du forum, c'est à dire, la colonne catégorie/forum et ses descriptions ainsi que la colonne dernier message. J'aimerais effectuer pas mal de changement et j'ai vu beaucoup de postes sur forumactif qui s'y réfèrent, mais ayant déjà mes templates de modifiés, je ne parviens pas à m'en sortir !

Je voudrais mettre la colonne dernier message à gauche, avec le titre du forum incorporé dedans (au dessus du titre du dernier message en gros). Et à droite, laisser juste la description du forum et le décompte de sujets et messages. Je ne suis pas certaine d’être vraiment claire là... xD Si vous avez des questions, je vous en prie.

J'ai déjà regardé les sujets qui parlent des changement de colonne, mais ça ne marche pas... Je n'arrive pas à obtenir de résultat. Donc ça me gène un peu de demander quelque chose qui a déjà été vu (notamment dernier message à gauche) mais je ne m'en sors pas seule. Si quelqu'un est susceptible de pouvoir m'aiguiller, je serais ravie !

Pour les informations :
- la version de mon forum est phbb2
- j'en suis la fondatrice
- je suis sous firefox
- j'ai modifié l'indexbox, concerné par mon problème
- j'ai du css
- et si vous ne visualisez pas ma demande, je peux vous fournir un lien d'exemple, si c'est autorisé

Voici mon template indexbox :



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}
       
                {CURRENT_TIME}
       
                </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>
       
                <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
       
                <!-- 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="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>
       
                    </span>
                </h{catrow.forumrow.LEVEL}>
       
        <!-- [ DÉBUT DES MODIFICATIONS EFFECTUEES PAR LE FORUM DES FORUMS ] -->
       
              <div class="forum-stats">{catrow.forumrow.POSTS} messages, dans {catrow.forumrow.TOPICS} sujets.</div>
        <div class="forum-description">
        <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
        </div>
        <div class="forum-sousforum">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</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>
              <!-- BEGIN forum_link_no -->
              <td class="row3 over" align="center" valign="middle" height="50">
                <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
              </td>
       
        <!-- [ FIN DES MODIFICATIONS EFFECTUEES PAR LE FORUM DES FORUMS ] -->
       
              <!-- END forum_link_no -->
              <!-- BEGIN forum_link -->
              <td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
              <!-- END forum_link -->
          </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 -->

Je vous remercie !
Au bientôt j'espère.



Dernière édition par Sin'ah le Sam 28 Jan 2012, 16:12, édité 1 fois
Sin'ah

Sin'ah
Nouveau membre

Féminin
Messages : 18
Inscrit(e) le : 28/01/2012

http://no-matter.forumperso.com/
Sin'ah a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Modification colonne "Dernier Message"

Message par Invité Sam 28 Jan 2012, 15:48

Bonjour,

Quelque chose comme ceci?
Modification colonne "Dernier Message" Captur54

Cordialement.
Anonymous

Invité
Invité


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

Résolu Re: Modification colonne "Dernier Message"

Message par Sin'ah Sam 28 Jan 2012, 15:49

C'est exactement ça oui. =D
Sin'ah

Sin'ah
Nouveau membre

Féminin
Messages : 18
Inscrit(e) le : 28/01/2012

http://no-matter.forumperso.com/
Sin'ah a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Modification colonne "Dernier Message"

Message par Invité Sam 28 Jan 2012, 16:00

Ok!

1. Inverser les titres des colonnes:
Ceci :
Code:
<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:150px;">{L_LASTPOST}</div></th>
          </tr>
devient :
Code:
<tr>
              <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
              <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
             
          </tr>
2. Inverser les cellules:
Cette partie de votre template :
Code:
<td class="row3 over" align="center" valign="middle" height="50">
              <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
              </td>
doit venir se placer juste après :
Code:
<!-- BEGIN inc -->
              <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
              <!-- END inc -->

3. Déplacer le titre des forums:
Ceci :
Code:
<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}>
est à déplacé juste après :
Code:
 <td class="row3 over" align="center" valign="middle" height="50">
N'oubliez pas de rajouter un ou plusieurs <br /> pour espacer le titre et le dernier message.

Et normalement, il ne reste plus qu'à enregistrer et publier.

Cordialement.
Anonymous

Invité
Invité


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

Résolu Re: Modification colonne "Dernier Message"

Message par Sin'ah Sam 28 Jan 2012, 16:12

Ca fonctionne parfaitement ! =D
Je vous remercie, j'ai reconnu des choses que j'avais essayé mais cette fois, ça marche !
Merci encore. C'est résolu.
Amicalement.
Sin'ah

Sin'ah
Nouveau membre

Féminin
Messages : 18
Inscrit(e) le : 28/01/2012

http://no-matter.forumperso.com/
Sin'ah 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