"Derniers messages" à gauche

2 participants

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

Résolu "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 13:49

Bonjour,
Après nombre de recherches sur internet et sur Forumactif j'ai effectivement trouvé des topics en lien avec ma question. Cependant étant complétement novice : je n'ai rien compris aux réponses formulés avec des codes.

Ma question est : comment mettre les "derniers messages" à gauche ?
et si possible comment transformé les colonnes "Sujets" et "Message" en simple phrase sous l'image situé dans "derniers messages" ?
Comment peut on supprimer complement le nom des barres tel que "sujet", "message"... ?

Forum actuel :
Spoiler:

Pour une version plus comme cela :
Spoiler:

Merci pour vos futures réponses, et désolé si je ne l'ai pas posté au bon endroit.


Cordialement,
Launliie

Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Lixyr Lun 6 Juin 2011 - 14:48

Bonjour.

C'est simple à faire, si vous êtes en phpbb2, si vous avez accès aux templates (si vous êtes fondatrice du forum).

Il faudra modifier le template index_box.

L'avez-vous déjà modifié ? Si oui, pouvez vous le poster.
Si, non, pas la peine. ^^
Lixyr

Lixyr
Aidactive
Aidactive

Féminin
Messages : 7411
Inscrit(e) le : 22/07/2010

https://forum.forumactif.com
Lixyr a été remercié(e) par l'auteur de ce sujet.

Résolu Re: "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 15:11

Je l'ai en effet modifié car j'ai trouvé l'une des reponses dont j'avais besoin : "Comment peut on supprimer complement le nom des barres tel que "sujet", "message"... ? "

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 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">
         <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">Messages {catrow.forumrow.POSTS} ♦ Sujets {catrow.forumrow.TOPICS}</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">
         <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 de m'aider Smile
Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Lixyr Lun 6 Juin 2011 - 15:30

Alors, pour ce faire, il suffit de repérer dans les templates la partie correspondant aux derniers messages.

Ce qui est pratique avec ce template, c'est qu'il est tout petit.

1 ) Alors, déjà, pour le titre, c'est cette partie-là :

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>

=> th étant la balise des titres des cellules, il suffit de placer le titre du dernier message avant le titre du forum :

<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>


<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) ensuite, la cellule contenant les informations :

<!-- 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">{catrow.forumrow.LAST_POST}</span>
</td>

</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->

il suffit de la mettre avant la cellule contenant la description des forums (ici éventuellement, avant la cellule contenant l'image) :

<!-- END inc -->
<td class="row3 over" align="center" valign="middle" height="50">
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>


<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>



3) ce qui donne au final un template de l'ordre de :

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 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>
      <!-- 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="row3 over" align="center" valign="middle" height="50">
            <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
          </td>

          <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">Messages {catrow.forumrow.POSTS} ♦ Sujets {catrow.forumrow.TOPICS}</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>
             
      </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 -->
Lixyr

Lixyr
Aidactive
Aidactive

Féminin
Messages : 7411
Inscrit(e) le : 22/07/2010

https://forum.forumactif.com
Lixyr a été remercié(e) par l'auteur de ce sujet.

Résolu Re: "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 15:41

Merci, c'est génial ! J'y comprend franchement pas grand chose...
Est ce que je peux me permettre de te demander encore quelques chose ?

Peut on enlever le titre "derniers messages"?
Et comment faire pour rajouter des images et changer la couleur etc, sans désordonné le templates (à quel endroit)?

Merci en tout cas pour tout ca Smile


Dernière édition par Launliie le Lun 6 Juin 2011 - 15:45, édité 2 fois
Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 15:42

Si c'est trop demandé dis le... Smile
Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 15:44

Excusez moi pour ce qui semble etre du flood... je clique sans faire exprès sur le bouton "citer" au lieu d'éditer. et je sais pas comment suprimer mes messages en trop...
Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Lixyr Lun 6 Juin 2011 - 15:59

On ne peut pas supprimer les messages en trop. Smile Seuls les membres du staff peuvent le faire.

---------------------

Non non tu ne m'embêtes pas.

Alors pour enlever le titre, chose toute simple, il suffit de retirer le contenu des balises du titre correspondant, soit ... ceci :

<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>

ça donne :

Code:
<tr><th nowrap="nowrap" width="150"> </th>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
</tr>

--------------------

ensuite, pour les images, et les couleurs, ça dépend de quelle image tu parles, où tu veux la mettre, et de ce que tu veux coloriser. Mais c'est faisable aussi.


Pour faciliter les recherches, mettez un titre explicite.
Remerciez "Derniers messages" à gauche 976083691 le message qui vous a aidé pour que celui-ci soit mis en évidence.
Épinglez votre sujet en résolu "Derniers messages" à gauche 3592387030 pour prévenir la modération.

"Derniers messages" à gauche Baston10
Lixyr

Lixyr
Aidactive
Aidactive

Féminin
Messages : 7411
Inscrit(e) le : 22/07/2010

https://forum.forumactif.com
Lixyr a été remercié(e) par l'auteur de ce sujet.

Résolu Re: "Derniers messages" à gauche

Message par Launliie Lun 6 Juin 2011 - 16:14

C'est parfait !!!
Merci infiniment de m'avoir aidé Smile.

Et puis pour les couleurs j'ai pu comprendre qu'on pouvait les modifs grace à la fiche Css.


Dernière édition par Launliie le Lun 6 Juin 2011 - 16:17, édité 1 fois
Launliie

Launliie
Nouveau membre

Messages : 28
Inscrit(e) le : 06/06/2011

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

Résolu Re: "Derniers messages" à gauche

Message par Lixyr Lun 6 Juin 2011 - 16:15

Ravie d'avoir pu aider. Smile


Pour faciliter les recherches, mettez un titre explicite.
Remerciez "Derniers messages" à gauche 976083691 le message qui vous a aidé pour que celui-ci soit mis en évidence.
Épinglez votre sujet en résolu "Derniers messages" à gauche 3592387030 pour prévenir la modération.

"Derniers messages" à gauche Baston10
Lixyr

Lixyr
Aidactive
Aidactive

Féminin
Messages : 7411
Inscrit(e) le : 22/07/2010

https://forum.forumactif.com
Lixyr a été remercié(e) par l'auteur de ce sujet.

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


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