Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

2 participants

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

Résolu Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

Message par tony59 Jeu 14 Juil 2011 - 0:15

Bonjour a tous.

J'avais demander il y a quelques temps de changer la couleur de mes DESCRIPTIONS de sujets, sans pour autant changer celle de mes messages.
On m'a répondu d'aller dans mon "topic list box" comme template et de faire ceci
Code:
    <!-- BEGIN switch_description -->
            <span class="genmed">
               

                {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            </span>
            <!-- END switch_description -->
a remplacer par
Code:
    <!-- BEGIN switch_description -->
            <span class="tdescrip">
               

                {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            </span>
            <!-- END switch_description -->
Puis ceci dans mon CSS
Code:
    .tdescrip{
    color: #la couleur de votre choix;
    font-size: la taille de la police;}

Aujourd'hui, j'aimerais que cela s'applique également aux libellés du type "[sondage]" ou encore "[important]".
Mais aussi lorsqu'il y a beaucoup de messages dans un sujet, les mots "Pages 1, 2, 3 ..." où on clic sur le numéros de la page.

Est ce possible? Comment faire?
Pouvez vous m'aider s'il vous plait?


Dernière édition par tony59 le Dim 17 Juil 2011 - 13:23, édité 1 fois
avatar

tony59
*****

Masculin
Messages : 618
Inscrit(e) le : 23/10/2010

http://www.leforumsecret.com
tony59 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

Message par SoraNoHime Dim 17 Juil 2011 - 11:06

Bonjour,

Avez-vous déjà modifié le template topics_list_box ? si oui pouvez-vous me le fournir ?

Cordialement.
SoraNoHime

SoraNoHime
Membre actif

Féminin
Messages : 6218
Inscrit(e) le : 10/06/2010

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

Résolu Re: Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

Message par tony59 Dim 17 Juil 2011 - 13:08

Bonjour Macema,

Oui, je l'ais déjà modifier, le voic :
Code:
<!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
   var all_checked = true;
   for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
      }
   }
   document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
   for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
      }
   }
}
</script>
<!-- END multi_selection -->

<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> TOPICS              <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/secretstory.saison5&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> </th>
      <th align="center" nowrap="nowrap" width="80"> Réponses </th>
      <th align="center" nowrap="nowrap" width="100"> Publié par ... </th>
      <th align="center" nowrap="nowrap" width="50"> Vus </th>
      <th align="center" nowrap="nowrap" width="150"> Dernier posteur :  </th>
      <!-- BEGIN multi_selection -->
      <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
   <!-- END multi_selection -->
   </tr>
   <!-- BEGIN pagination -->
   <tr>
      <td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
   </tr>
   <!-- END pagination -->
   <!-- END header_table --><!-- BEGIN header_row -->
   <tr>
      <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
   </tr>
<!-- END header_row -->

<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
   <tr>
      <!-- BEGIN single_selection -->    <td class="listebox" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
      <!-- END single_selection -->
      <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
      <!-- BEGIN icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
      <!-- END icon -->
    <td class="row4" onmouseover='this.className="row4"' onmouseout='this.className="row4"' width="100%">
         <div class="topictitle">
            {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title">
               <a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
            </h2>
         </div>
         <!-- BEGIN switch_description -->
         <span class="tdescrip">
            <br />
            <i>=>{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}</i>
         </span>
         <!-- END switch_description -->
         <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> 
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
      </td>

      <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
      <td class="row3" align="center" valign="middle"><span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></td>
      <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
      <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
      <td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
   <!-- END multi_selection -->
   </tr>
   <!-- END topic --><!-- BEGIN no_topics -->
   <tr>
      <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
   </tr>
   <!-- END no_topics --><!-- BEGIN bottom -->
   <tr>
      <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td> <span class="gensmall">{PAGINATION}</span></td>
               <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
            </tr>
         </table>
      </td>
   </tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->
avatar

tony59
*****

Masculin
Messages : 618
Inscrit(e) le : 23/10/2010

http://www.leforumsecret.com
tony59 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

Message par SoraNoHime Dim 17 Juil 2011 - 13:12

Pour sondage, annonce, Note la couleur ne pourra etre différencier :

repérez :

Code:
{topics_list_box.row.TOPIC_TYPE}

et changez le

Code:
<span class="sondannon">{topics_list_box.row.TOPIC_TYPE}</span>

puis dans la css ajoutez :

Code:
.sondannon {
color : #0000ff;
}

à personnaliser

Pour la pagination :

repérez :

Code:
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>

et changez le

Code:
         <span class="gensmall"><span class="page">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE}</span> <!-- END nav_tree --></span>

puis dans la css ajoutez pour les liens :

Code:
.page a {
color : #00ffff;
}

et pour le texte

Code:
.page {
color : #ff00ff;
}

à personnaliser

Cordialement.
SoraNoHime

SoraNoHime
Membre actif

Féminin
Messages : 6218
Inscrit(e) le : 10/06/2010

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

Résolu Re: Changer la couleur des libellés "Annonce", "Sondage" etc ainsi que "Pages..." sans pour autant changer celle des messages

Message par tony59 Dim 17 Juil 2011 - 13:21

Merci beaucoup, c'est superbe Wink
Car j'avais ajouter un fond image sur le topic list box et ducoup la couleur de tout ça rendais le texte illisible mais comme depuis "Couleur" si on changeait ça changeait aussi le texte des messages en général je voulais pas changer carrément.
C'est génial merci beaucoup Macema
avatar

tony59
*****

Masculin
Messages : 618
Inscrit(e) le : 23/10/2010

http://www.leforumsecret.com
tony59 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