Souci champs profil

3 participants

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

Résolu Souci champs profil

Message par Livia73 Sam 27 Oct 2012 - 2:58



Bonjour !

J'ai un petit problème au niveau du profil des membres. Tout le texte est en gris (comme le permet l'option basique depuis la PA -> Utilisateurs & Groupes -> Profils -> "nom" - couleur des champs), sauf les champs suivants :

- Message privé
- Contacter par email
- Dernière visite
- Messages privés


Voici :
Souci champs profil 476799Profil

Ca fait un peu tache. Y aurait-il un moyen de les mettre en gris également ?



D'avance, mille mercis pour vos réponses et astuces. =)



- l'URL du forum : http://hananohokori.1fr1.net/forum
- la version de votre forum : phpBB2
- votre statut sur le forum : fondatrice
- si vous avez modifié des templates : oui
- CSS personnalisé : oui
- votre navigateur : Mozilla Firefox



NB : l'autre problème a été réglé par mes soins.



Dernière édition par Livia73 le Mer 7 Nov 2012 - 11:25, édité 8 fois
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par FANCH 56 Sam 27 Oct 2012 - 8:56

Bonjour

Pour le Wysiwyg clique sur le AA
FANCH 56

FANCH 56
Membre actif

Masculin
Messages : 13259
Inscrit(e) le : 25/07/2005

https://www.anciens-cols-bleus.net/
FANCH 56 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Livia73 Sam 27 Oct 2012 - 14:52




Merci de votre réponse mais ce n'était pas ce que je demandais : je sais comment activer le WYSIWYG dans la fenêtre d'édition de texte. =)
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par MlleAlys Sam 27 Oct 2012 - 15:19

pour le WYSIWYG je ne m'y connais pas,
pour les histoires de couleur dans le profil, n'est ce pas juste la différence entre la couleur du texte "normal" et des liens ?

édit : ah non en fait ça n'a pas l'air d'être ça, désolée ^^"
heu...
je vais voir si j'ai une idée ^^"
MlleAlys

MlleAlys
Membre actif

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

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

Résolu Re: Souci champs profil

Message par Livia73 Dim 28 Oct 2012 - 22:15




Up ! =)
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Livia73 Mar 30 Oct 2012 - 17:57




Up ! =)
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Livia73 Mer 31 Oct 2012 - 19:11



Up ! =)
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Livia73 Mer 7 Nov 2012 - 4:31




Up ! =)
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Invité Mer 7 Nov 2012 - 10:13

Salut Livia73,
tu en es ou dans ton problème stp?
Tu peux donner la couleur de police que tu veux attribuer stp?
As tu modifié le template suivant :
profile_view_body
a++
Anonymous

Invité
Invité


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

Résolu Re: Souci champs profil

Message par Livia73 Mer 7 Nov 2012 - 11:03



Bonjour,

le problème n'a pas changé. La couleur que je souhaite est un gris (#A8A8A8), et je n'ai pas modifié le template profile_view_body.

Merci d'avance pour votre aide !
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Invité Mer 7 Nov 2012 - 11:11

Re,
on va supprimé tout le contenu de ce template et le remplacer ensuite Wink ,
Dans
Affichage/Templates/Général/profile_view_body

Supprimes tout le contenu et remplace par ceci:
Code:

<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a></span></td>
</tr>
</table>

<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
   <tr>
      <th class="thHead" colspan="2" nowrap="nowrap" height="25">{L_VIEWING_PROFILE}</th>
   </tr>
   <tr>
      <td class="catLeft" align="center" width="40%" height="28"><b><span class="gen">{L_USER_PRESENCE}</span></b></td>
      <td class="catRight" width="60%" align="center"><b><span class="gen">{L_ABOUT_USER}</span></b></td>
   </tr>
   <tr>
      <td class="row1" align="center" valign="top" height="120">
         <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
               <td valign="middle" nowrap="nowrap" align="right" width="20%"><span class="gen">{L_AVATAR_IMG} </span></td>
               <td width="80%"><b><span class="gen">{AVATAR_IMG}</span></b></td>
            </tr>
            <tr>
               <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_RANK}: </span></td>
               <td><b><span class="gen">{POSTER_RANK}</span></b></td>
            </tr>
            <!-- BEGIN switch_show_status -->
            <tr>
               <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_STATUT}: </span></td>
               <td><b><span class="gen">{USER_ONLINE}</span></b></td>
            </tr>
            <!-- END switch_show_status -->
            <!-- BEGIN switch_allow_friendsfoes -->
            <tr>
               <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_FRIENDS_AND_FOES}: </span></td>
               <td><span class="gen"><strong>{FRIENDSFOES}</strong></span></td>
            </tr>
            <!-- END switch_allow_friendsfoes -->
            <!-- BEGIN switch_auth_user -->
            <tr>
               <td valign="middle" nowrap="nowrap" align="right"><br /><span class="gen">{L_ADMINISTRATE_USER}: </span></td>
               <td><br /><strong><span class="gen">{ADMINISTRATE_USER}{BAN_USER}</span></strong></td>
            </tr>
            <!-- END switch_auth_user -->
         </table>
      </td>
      <td class="row1" rowspan="3" valign="top">
         <table width="100%" border="0" cellspacing="1" cellpadding="0">
         <tr>
            <td align="right" valign="top" nowrap="nowrap"><span class="gen_prof">{L_LAST_VISITED}:  </span></td>
            <td><b><span class="gen">{LAST_VISIT_TIME}</span></b></td>
         </tr>
         <!-- BEGIN switch_dhow_mp -->
         <tr>
            <td align="right" valign="middle" nowrap="nowrap"><span class="gen_prof">{L_PRIVATE_MSG}:  </span></td>
            <td><b><span class="gen">{PRIVATE_MSG}</span></b></td>
         </tr>
         <!-- END switch_dhow_mp -->
         <!-- BEGIN profile_field -->
         <tr id="field_id{profile_field.ID}">
            <td width="40%" align="right" valign="top" nowrap="nowrap">
                                  <span class="gen">{profile_field.LABEL}  </span></td>
            <td width="60%" width="100%"><b><span class="gen">{profile_field.CONTENT}</span></b>
                                  <!-- BEGIN profil_type_user_posts --><br /><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br />
            <span class="genmed"><a rel="nofollow" class="genmed" href="/st/{PUSERNAME}">{L_SEARCH_USER_POSTS} :</a><br />
                 - <a rel="nofollow" class="genmed" href="/sta/{PUSERNAME}">{L_TOPICS}</a><br />
                 - <a rel="nofollow" class="genmed" href="/spa/{PUSERNAME}">{L_POSTS}</a></span><!-- END profil_type_user_posts --></td>
         </tr>
         <!-- END profile_field -->
         </table>
      </td>
   </tr>
   <tr>
      <td class="catLeft" align="center" height="28"><b><span class="gen">{L_CONTACT} {USER&amp;#8288;NAME}</span></b></td>
   </tr>
   <tr>
      <td class="row1" valign="top" height="{S_CONTACT_HEIGHT}">
         <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <!-- BEGIN contact_field -->
            <tr id="field_id{contact_field.ID}">
               <td width="40%" align="right" valign="middle" nowrap="nowrap"><span class="gen_prof">{contact_field.LABEL}  </span></td>
               <td width="60%" valign="middle"><b><span class="gen_prof">{contact_field.CONTENT}</span></b></td>
            </tr>
            <!-- END contact_field -->
            <!-- BEGIN switch_admin_user_comment_active -->
            <tr>
               <td align="right" valign="middle" nowrap="nowrap" width="50%">
                  <span class="gen">{L_COMMENTS} :</span><br /><span class="gensmall">{L_MODS_AND_ADMINS}</span>
               </td>
               <td class="row1" valign="middle">
                  <table align="center">
                     <tr>
                        <td>
                           {ADMIN_USER_COMMENT}
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
            <!-- END switch_admin_user_comment_active -->
         </table>
      </td>
   </tr>
   <!-- BEGIN switch_rpg -->
   <tr>
      <td colspan="2" class="catLeft" align="center"><b><span class="gen">{L_VIEWING_RPG}</span></b></td>
   </tr>
   <tr>
      <td class="row1" align="center" valign="top" height="6">
         {RPG_IMAGE}<br /><br />
         <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <!-- BEGIN rpg_fields_left -->
            <tr>
               <td align="right" valign="middle" nowrap="nowrap">
               <span class="gen">{switch_rpg.rpg_fields_left.F_NAME} : </span>
               </td>
               <td width="100%" valign="middle" nowrap="nowrap">
               <b><span class="gen">{switch_rpg.rpg_fields_left.F_VALUE_NEW}</span></b>
               </td>
            </tr>
            <!-- END rpg_fields_left -->
         </table>
      </td>
      <td class="row1" align="center" valign="top" height="6">
         <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <!-- BEGIN rpg_fields -->
            <tr>
               <td align="right" valign="middle" nowrap="nowrap">
                  <span class="gen">{switch_rpg.rpg_fields.F_NAME} : </span>
               </td>
               <td width="100%" valign="baseline">
                  <b><span class="gen">{switch_rpg.rpg_fields.F_VALUE_NEW}</span></b>
               </td>
            </tr>
            <!-- END rpg_fields -->
         </table>
      </td>
   </tr>
   <tr>
      <td colspan="2" align="center" class="row1">
         {U_ADMIN_RPG}
      </td>
   </tr>
   <!-- END switch_rpg -->
</table>
<br />
<script src="{JS_DIR}jquery/json/jquery.json-1.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
   $(document).ready(function(){
      $('[id^=field_id]').each(function(){
         if ( $(this).find('.field_editable').is('span') )
         {
            $(this).hover(function()
            {
               if( $(this).find('.field_editable.invisible').is('span') )
               {
                  $(this).find('.field_editable').prev().addClass('ajax-profil_hover').parent().addClass('ajax-profil_parent').append('<div class="ajax-profil_edit"><img src="{AJAX_EDIT_IMG}" /></div>');
                  $(this).find('.ajax-profil_edit').attr({
                        alt: "{L_FIELD_EDIT_VALUE}",
                        title: "{L_FIELD_EDIT_VALUE}"
                     }).click(function(){
                     $(this).prev().prev().removeClass('ajax-profil_hover').addClass('invisible').next().removeClass('invisible').append('<img src="{AJAX_VALID_IMG}" class="ajax-profil_valid" />').find('input,select');
                     $(this).prev().find('.ajax-profil_valid').attr({
                        alt: "{L_VALIDATE}",
                        title: "{L_VALIDATE}"
                     }).click(function(){
                        var content = new Array();
                        $(this).parent().find('[name]').each(function(){
                           var type_special = $(this).is('input[type=radio],input[type=checkbox]');
                           if ( (type_special && $(this).is(':checked')) || !type_special )
                           {
                              content.push(new Array($(this).attr('name'), $(this).attr('value')));
                           }
                        });
                        var id_name = $(this).parents('[id^=field_id]').attr('id');
                        var id = id_name.substring(8, id_name.length);
                        $.post(
                           "{U_AJAX_PROFILE}",
                           {id:id,user:"{CUR_USER_ID}",active:"{CUR_USER_ACTIVE}",content:$.toJSON(content),tid:"{TID}"},
                           function(data){
                              $.each(data, function(i, item){
                                 $('[id=field_id' + i + ']').find('.field_uneditable').html(item).end().find('.ajax-profil_valid').remove().end().find('.field_editable').addClass('invisible').end().find('.field_uneditable').removeClass('invisible');
                              });
                           },
                           "json"
                        );
                     });
                     $(this).remove();
                  });
               }
            },function()
            {
               if( $(this).find('.field_editable.invisible').is('span') )
               {
                  $(this).find('.field_editable').prev().removeClass('ajax-profil_hover');
                  $(this).find('.ajax-profil_edit').remove();
               }
            });
         }
      });
   });
//]]>
</script>
Pense a enregistrer les modifications en cliquant respectivement sur Souci champs profil 907288 et Souci champs profil Ajouter2024

Dans la feuille de style:
Affichage/Images et Couleurs/Couleurs/Feuille de style

Déposes ceci:
Code:
.gen_prof {color:#A8A8A8;font-size:12px;}
Pense bien à valider les modifications en cliquant sur le bouton "Valider".

Actualises ton navigateur et le tour est joué Wink .

a++
Anonymous

Invité
Invité


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

Résolu Re: Souci champs profil

Message par Livia73 Mer 7 Nov 2012 - 11:25



Merci énormément pour votre réponse éclair. ^^

C'est impeccable, ça marche - en clair : mille mercis ! Je passe le sujet en "Résolu". =)

Bonne journée à vous !
Livia73

Livia73
*

Féminin
Messages : 34
Inscrit(e) le : 14/03/2011

http://hananohokori.1fr1.net/forum
Livia73 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Souci champs profil

Message par Invité Mer 7 Nov 2012 - 11:27

Wink De rien Livia73 Very Happy .

a++
Anonymous

Invité
Invité


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