AccueilDernières imagesRechercherS'enregistrerConnexion

Forum de graphisme, codage et game design proposant des tutoriels, astuces, libres services et commandes dans les domaines de l'infographie amateur, de l'intégration web (HTML et CSS essentiellement) ainsi que dans la conception de RPG sur forum.

Le deal à ne pas rater :
Pokémon EV06 : où acheter le Bundle Lot 6 Boosters Mascarade ...
Voir le deal

    Profil "moderne" avec effet hover

    Alumine
    Alumine
    FémininAge : 26Messages : 487

    Sam 8 Nov 2014 - 17:56

    Rappel du premier message :



    Profil "moderne" avec effet hover


    Voici un petit LS à la demande de Clarisse; l'avatar est de taille 200x320px et les infos apparaissent au hover. Il n'y a pas de place prévue pour une image de rang mais seulement pour un texte.
    Alors ça donne ça (images faites par Clarisse) (la deuxième image est au survol)
    Profil "moderne" avec effet hover - Page 32 14130310 Profil "moderne" avec effet hover - Page 32 14130311

    Template

    Pour commencer rendez-vous dans votre panneau d'admin > affichage > Templates > général et dans Viewtopic_body, c'est la partie de HTML qui concerne l'affichage des messages.
    Vers la ligne 139 si vous n'avez rien changé, trouvez ceci
    Code:
    <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
     <span class="name"><a name="{postrow.displayed.U_POST_ID}" style="position: relative; top: -30px; width: 1px;" id="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
     <span class="postdetails poster-profile">
     {postrow.displayed.POSTER_RANK}<br />
     {postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
     <!-- BEGIN profile_field -->
     {postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
     <!-- END profile_field -->
     {postrow.displayed.POSTER_RPG}
     </span><br />
     <img src="http://2img.net/i/fa/empty.gif" alt="" style="width:150px;height:1px" />
     </td>

    Et remplacez-le par ça :
    Code:
    <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
                      <div class="profilmembre"><div class="pseudo"><span class="name"><a name="{postrow.displayed.U_POST_ID}" style="position: relative; top: -30px; width: 1px;" id="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><div class="flecheprofil"></div></div>
     <span class="postdetails poster-profile">
     {postrow.displayed.POSTER_AVATAR}
                                      <div class="rang">{postrow.displayed.POSTER_RANK}</div>
     <div class="infoprofil"><!-- BEGIN profile_field -->
                                      {postrow.displayed.profile_field.LABEL} <span class="infoprofilrep">{postrow.displayed.profile_field.CONTENT}</span>{postrow.displayed.profile_field.SEPARATOR}
                                      <!-- END profile_field --></div>
     {postrow.displayed.POSTER_RPG}
                        </span></div>
     </td>


    Ensuite, validez et n'oubliez pas de publier votre template (=

    CSS
    La suite se passe dans couleurs>feuille de style CSS !
    Ajoutez ceci
    Code:
    /*Profil et affichage de lavatar par Alu pour Never utopia */
    .profilmembre {
      border: 1px solid #a19388;
      position:relative;
      margin-right:10px;/*à adapter pour que la flèche noire ne morde pas le texte (augmenter)*/
      background-color:#ABABAB;
    }

    .pseudo{
          padding:4px 0;
          width:200px;
          background-color:#1C1C1C;
          position:relative;
          text-align:center;
          color:#949046;
          font:Josefin Slab, Georgia;
          text-transform:uppercase;
    }

    .pseudo .name a{font-size:24px; font-weight:300;color:#737373 !important;}

    .flecheprofil{
      width:0px;
      height:0px;
      border:8px solid transparent;
      border-left:25px solid #1C1C1C;
      position:absolute;
      top:10px;
      left:200px;
    }

    .rang {
      width:136px;
      height:19px;
      background-color: #1C1C1C;
      font: 10px Josefin Slab, Georgia;
      line-height:95%;
      text-transform: uppercase;
      color:#636363;
      margin:-15px auto 5px auto;
      padding:2px;
      text-align:center;  
      position:relative;
      z-index:2;
      -moz-box-shadow: 0px 0px 8px 0px #656565;
      -webkit-box-shadow: 0px 0px 8px 0px #656565;
      -o-box-shadow: 0px 0px 8px 0px #656565;
      box-shadow: 0px 0px 8px 0px #656565;
      filter:progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=NaN, Strength=8);
    }
    .infoprofil{
      position:absolute;
      top:35px;
      left:0;
      background: rgba(0, 0, 0, 0.75);
      opacity:0;
      filter:alpha(opacity=0);
      height:320px;
      width:200px;
      text-align:center;
      font:13px sans-serif 500;
      text-transform:uppercase;
      color:#8A8A8A;
      -moz-transition: all 0.7s ease;
      -webkit-transition: all 0.7s ease;
      -o-transition: all 0.7s ease;
      transition: all 0.7s ease;
    }
    .infoprofil:hover{opacity:1; filter:alpha(opacity=100);}

    .infoprofil .label span {
      visibility:visible;
      text-decoration:underline;
      display:block;
      background-color:rgba(0, 0, 0, 0.65);
      color:#8A8A8A !important;
      padding:5px;
      margin: 5px 0 -5px 0;
    }
    .infoprofil .label{visibility:hidden;}
    .infoprofilrep {
      visibility:visible;
      display:block;
      background-color:rgba(0, 0, 0, 0.65);
      padding:3px;
      margin:-5px 0 -3px 0;
    }
    /*fin du profil ****************************************************/

    Puis validez, et c'est terminé ! Par contre il peut y avoir une petite modification à faire, pour que la petite flèche noire ne morde pas le texte du message, il faut éventuellement augmenter la marge de droite (margin-right) j'ai légendé l'endroit où le faire (=
    Voilà c'est tout ! Mettez un petit crédit à N-U s'il vous plaît ~

    Merci de laisser un message pour donner vos impressions, commentaires et/ou remerciements ^^
    Si vous avez des problèmes avec ce LS, venez poster ici.



    Alumine
    PhaerylGG
    PhaerylGG
    FémininAge : 28Messages : 13

    Mer 20 Juil 2016 - 21:28

    Superbe ! Merci !
    marie-noelle
    marie-noelle
    FémininAge : 66Messages : 112

    Ven 22 Juil 2016 - 2:39

    merci
    Talesof91
    Talesof91
    FémininAge : 33Messages : 91

    Dim 24 Juil 2016 - 21:22

    J'adore ! Merci Very Happy
    Scratpub
    Scratpub
    FémininAge : 39Messages : 145

    Lun 25 Juil 2016 - 3:33

    Merci
    Priss.
    Priss.
    FémininAge : 31Messages : 22

    Lun 1 Aoû 2016 - 19:15

    Merci du partage :)



    Profil "moderne" avec effet hover - Page 32 BElMac3
    Thessia
    Thessia
    FémininAge : 34Messages : 78

    Mar 2 Aoû 2016 - 23:06

    Merci c'est génial



    Ce n'est pas parce que tu ne le vois pas que ce n'est pas réel,
    Ce n'est pas par ce que tu n'y arrive pas que ce n'est pas possible.
    Maija.
    Maija.
    FémininAge : 31Messages : 6

    Ven 5 Aoû 2016 - 13:20

    Merci ! :love:
    Porcelain Detox
    Porcelain Detox
    MasculinAge : 29Messages : 91

    Ven 5 Aoû 2016 - 20:19

    Merci !
    avatar
    céleste callisto
    FémininAge : 32Messages : 55

    Sam 6 Aoû 2016 - 13:22

    merci
    tamedmind
    tamedmind
    FémininAge : 23Messages : 19

    Mar 9 Aoû 2016 - 0:55

    Merci du partage
    endless
    endless
    FémininAge : 26Messages : 12

    Mer 10 Aoû 2016 - 17:02

    super sympa ! merci
    Aaw.
    Aaw.
    FémininAge : 27Messages : 29

    Mer 10 Aoû 2016 - 19:10

    Merci beaucoup <3
    charlint
    charlint
    FémininAge : 24Messages : 30

    Mer 10 Aoû 2016 - 19:34

    Mercii !
    Post Mortem
    Post Mortem
    FémininAge : 25Messages : 12

    Jeu 11 Aoû 2016 - 3:17

    merci. :love:
    missp
    missp
    FémininAge : 33Messages : 26

    Lun 15 Aoû 2016 - 13:23

    merci
    Usolia Naviento
    Usolia Naviento
    FémininAge : 31Messages : 25

    Mer 17 Aoû 2016 - 19:02

    Bien envie d'y toucher Wink Merci!
    Naiyarth
    Naiyarth
    MasculinAge : 24Messages : 9

    Mar 23 Aoû 2016 - 2:47

    Merci !
    Sparryx
    Sparryx
    MasculinAge : 22Messages : 71

    Mar 23 Aoû 2016 - 14:12

    Merci
    fraumali
    fraumali
    FémininAge : 43Messages : 140

    Mar 23 Aoû 2016 - 14:16

    bonjour, merci du partage
    Violaine2F
    Violaine2F
    FémininAge : 25Messages : 13

    Mer 24 Aoû 2016 - 0:08

    Merci c'est très jolie.
    Miyakano
    Miyakano
    FémininAge : 30Messages : 10

    Sam 27 Aoû 2016 - 15:04

    Merci du partage !
    ShiShi_Chan
    ShiShi_Chan
    MasculinAge : 34Messages : 51

    Sam 27 Aoû 2016 - 16:31

    Très beau ! Merci !
    Honeey L.
    Honeey L.
    FémininAge : 31Messages : 80

    Dim 28 Aoû 2016 - 1:49

    Merci Very Happy
    chocapiix59
    chocapiix59
    FémininAge : 31Messages : 23

    Dim 28 Aoû 2016 - 15:40

    Merci du partage, j'adore ♥
    Meap
    Meap
    FémininAge : 25Messages : 10

    Mar 30 Aoû 2016 - 11:45

    Merci beaucoup pour le partage Very Happy



    Contenu sponsorisé


      La date/heure actuelle est Ven 19 Avr 2024 - 11:50