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.

-40%
Le deal à ne pas rater :
Tefal Ingenio Emotion – Batterie de cuisine 10 pièces (induction, ...
59.99 € 99.99 €
Voir le deal

    Catégories « Lavande » (corps catégorie + onglets + liens persos)

    Elysia
    Elysia
    FémininAge : 24Messages : 139

    Dim 19 Avr 2015 - 2:53

    Rappel du premier message :



    Catégories « Lavande »



    Informations



    Voici une mise en forme de catégories aux tons mauves, que je poste en libre service suite à la commande de MxPrime2.

    Cliquez ici pour visionner l'aperçu.

    Langages : HTML, CSS, Javascript.
    Version : phpBB2.
    Largeur totale : 852px.
    Tailles des images (redimensionnées) : image de fond du titre de la catégorie 800x80px (vous pouvez aussi mettre un pattern) | image description 75x90px | image nouveau-vieux-vérouillé 168x45px

    Explications :
    → les catégories sont en onglets grâce au tutoriel de vic_le_faucheur.
    → un corps catégorie, divisé en 3 images, entoure chaque catégorie.
    → la description contient : l'image de gauche, le texte de description du forum, ainsi que le bloc de liens.
    → les liens ne sont pas les sous-forums, qui ont été retirés selon le désir de MxPrime2. Ils sont remplacés par des liens personnalisables (vous pouvez donc faire un lien pour un sujet ou pour un sous-forum).
    → ne pas mettre plus de 4 liens dans le bloc.
    → le lien du dernier forum actif renvoie vers le dernier message posté.
    → les textes en dégradé sont produits grâce au CSS.

    Pré-requis :
    Vérifiez que dans votre Panneau d'Administration > Affichage > Page d'accueil > Structure et hiérarchie, vous soyez bien en mode "Séparer les catégories sur l'index : Moyen". Puis, sur la même page, plus en bas, vous pouvez modifier la longueur du titre du sujet affiché à 24 caractères.


    Codes



    Template index_box entier : Page d'accueil - affichage des catégories (Pan. d'admin > Affichage > Templates > Général, remplacer l'ancien index_box, enregistrez puis validez Catégories « Lavande » (corps catégorie + onglets + liens persos) - Page 7 Ajouter) :
    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>

    <div id="conteneur_onglets_cate">
      <div class="onglet_cate">Catégorie 1</div> •
      <div class="onglet_cate">Catégorie 2</div> •
      <div class="onglet_cate">Catégorie 3</div> •
      <div class="onglet_cate">Catégorie 4</div> •
      <div class="onglet_cate">Catégorie 5</div>
    </div>
      
    <div id="conteneur_cate">
      
    <!-- BEGIN catrow -->

    <!-- BEGIN tablehead -->
    <div class="categorie">
      
    <table border="0" cellpadding="0" cellspacing="0" cellmargin="0" style="width:auto; margin: auto;"><tr><td>
      
      <div class="cat_haut"></div><div class="cat_milieu">
      <table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0" cellmargin="0">
        
      <tr>
        <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 -->
    <div class="cat_milieu"><table class="forums" border-spacing="0" border="0" cellpadding="0" cellspacing="0" cellmargin="0" valign="middle"><tr><td>

      <tr class="forum_ligne1">
          <td border="0" cellpadding="0" cellspacing="0" cellmargin="0" colspan="2" nowrap="nowrap" width="100%" class="forumlink_block">
                <span class="forumlink">
                  <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
                </span>
                <span class="forum_stats">{catrow.forumrow.POSTS} messages | {catrow.forumrow.TOPICS} sujets</span>
          </td>
      </tr>
        
      <tr class="forum_ligne2">
          <!-- BEGIN inc -->
          <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
          <!-- END inc -->
          <td class="forum_description" valign="top">
            <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
          </td>
          <td class="forum_dernmess" align="center" valign="top">
            <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /><br />
            <div class="dernmess_contenu"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></div>
          </td>
      </tr>
        
      </td></tr></table></div>
    <!-- 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 -->
        <div class="cat_milieu"><div class="cat_marge_bas"></div>
        
        </div>
        </table>
      
        <div class="cat_bas"></div>
      
       <img src="{SPACER}" alt="" height="5" width="1" />
    <!-- END tablefoot -->
    </div>
      
    <!-- END catrow -->
    </div>

    Code à coller et à modifier dans la description d'un forum (Pan. d'admin > Général > Catégories et forums > Modifier Catégories « Lavande » (corps catégorie + onglets + liens persos) - Page 7 Editer) :
    Code:
    <table style="width: 100%; max-height:100px; margin-bottom: -12px;" cellpadding="0" cellspacing="0" border="0" border-spacing="0" valign="middle">
      <tbody>
          <tr>
                
            <td class="descr_img">
                <img alt="Image de description" src="http://nsm08.casimages.com/img/2015/04/16//15041606025519468513176454.png" />                    
            </td>
                                            
            <td class="descr_texte">
                <div class="descr_texte_contenu">
                  <div>
    <span class="d_texte_special">Lorem Ipsum</span>Aliquam quis nibh sed augue malesuada hendrerit. Maecenas ultrices scelerisque lectus nec molestie. Nulla suscipit, nibh sit amet viverra adipiscing, lacus eros dapibus magna, id mattis sapien tortor ac odio. Sed id libero porttitor, laoreet nisl eu, mattis nisi. Quisque lorem odio, accumsan et ipsum ac, vehicula commodo neque. Integer tempus nulla eget quam molestie, quis sodales diam rutrum. Vivamus dapibus lacus a magna tempor, id fringilla ligula ornare. Nunc consequat nibh orci, in pulvinar augue ascelerisque at. Duis volutpat pulvinar auctor. Vivamus nec augue mattis, feugiat turpis vitae, ultrices dui. Maecenas blandit vestibulum lorem, eget congue mi iaculis vel. Aliquam non molestie lacus. Curabitur sed enim diam. Morbi sed iaculis orci. Nunc et orci non arcu iaculis pellentesque.          
                  </div>
                </div>
            </td>

            <td class="descr_liens">
                <div><!-- ne pas mettre plus de 4 liens -->
                  <a href="URL DU LIEN">Lien 1</a><br />
                  <a href="URL DU LIEN">Lien 2</a><br />
                  <a href="URL DU LIEN">Lien 3</a><br />
                  <a href="URL DU LIEN">Lien 4</a><br />    
                </div>
            </td>

          </tr>
      </tbody>
    </table>

    CSS (Pan. d'amin > Affichage > Couleurs > Feuille de style CSS > collez puis enregistrez) :
    Code:
    /********************* DEBUT CATEGORIES PAR ELYSIA DE NEVER UTOPIA *********************/

    /* _____ Reglages de base _____ */

    a { text-decoration: none; }
    a:hover { text-decoration: none !important; }


    /* _____ Onglets _____ */

    #conteneur_onglets_cate
    {
      width: 840px;;
      height: 50px;
      line-height: 50px;
      margin: auto;
      margin-top: 20px;
      margin-bottom: 30px;
      overflow: visible;
      background-color: #edeff7;
      box-shadow: 0 5px 5px #9a9faf;
      display: none;
      text-align: center;
      color: #9a9faf;
    }
    #conteneur_onglets_cate div
    {
      display: inline-block;
      color: #8a85ac;
      text-shadow: 0px 0px 3px #fff;
      font-size: 18px;
      margin-left: 5px;
      margin-right: 5px;
      font-family: 'Times New Roman', serif;
      transition: all ease 1s;
    }
    #conteneur_onglets_cate div:hover
    {
      color: rgba(213,215,242, 0.5);
      text-shadow: 0px 3px 3px #d2d5e1, 0 0 0 #000, 0px 3px 3px #d2d5e1, 0 0 1px #7d849c;
      transition: all ease 1s;
    }


    /* _____ Fonds categories en images _____ */

    .cat_haut
    {
      background: url('http://nsm08.casimages.com/img/2015/04/15//15041510472119468513174440.png') top center no-repeat;
      width: 852px;
      height: 20px;
      margin: auto; /*Permet de centrer la partie du corps*/
    }
    .cat_milieu
    {
      background: url('http://nsm08.casimages.com/img/2015/04/15//15041510494419468513174442.png') center repeat-y;
      width: 800px;
      margin: auto;
      padding: 0 26px 0 26px;
    }

    .cat_milieu .forumline {
      border: 0 solid;
    }

    .cat_bas
    {
      background: url('http://nsm08.casimages.com/img/2015/04/15//15041510472019468513174439.png') bottom center no-repeat;
      width: 852px;
      height: 29px;
      margin: auto;
    }


    /* _____ Mise en forme titre de la catégorie _____ */

    .secondarytitle
    {
      width: 800px;
      height 80px;
      line-height: 80px;
      background : url('http://nsm08.casimages.com/img/2015/04/18//15041802332319468513180672.png') repeat; /* image fond titre categorie */
      border-bottom: 9px solid #fff;
    }
    .secondarytitle h2
    {
      color: rgba(213,215,242, 0.5);
      font-size: 40px;
      text-transform: uppercase;
      font-weight: normal;
      font-family: 'Times New Roman', serif;
      text-shadow: 1px 4px 5px #d2d5e1, 0 0 0 #000, 1px 4px 6px #d2d5e1, 0 0 1px #7d849c;
    }
    /* reglages pour selection */
    ::-moz-selection { background: #5af; color: #fff; text-shadow: none; }
    ::selection { background: #5af; color: #fff; text-shadow: none; }


    /* _____ Mise en forme titre du forum _____ */

    .forums
    {
      width: 800px;
      padding: 0 10px 0 10px;
      background: #fff;
    }
    .forumlink_block
    {
      height: 25px;
      line-height: 25px;
      background: #edeff8;
      border-top: 1px solid #fff;
      border-bottom: 1px solid #fff;
    }
    .forumlink a
    {
      font-size: 20px;
      color: rgba(213,215,242, 0.5);
      font-weight: normal;
      font-family: 'Times New Roman', serif;
      text-shadow: 0px 3px 3px #d2d5e1, 0 0 0 #000, 0px 3px 3px #d2d5e1, 0 0 1px #7d849c;
      display: inline-block;
      position: relative;
      left: 90px;
      top: 10px;
    }

    .forum_stats {
      font-size: 11px;
      float: right;
      margin: 5px 28px -5px 0;
      color: #b8bdd3;
      font-style: italic;
    }


    /* _____ Mise en forme forum _____ */

    .forum_ligne2
    {
      background: #f7f7f9;
      max-height: 100px;
    }

    /* Description (image + textes + liens) */

    .forum_description /* conteneur */
    {
      margin: 0;
      padding: 0;
      width: 80%;
      padding: 5px;
      height: 90px;
      overflow: hidden;
    }

    .descr_img img /* image perso */
    {
      width: 75px;
      height: 90px;
    }

    .descr_texte /* colonne texte */
    {
      padding-left: 5px;
    }
    .descr_texte .descr_texte_contenu /* conteneur texte */
    {
      padding: 2px;
      width: 410px;
      background: #fff;
      margin: 0;
    }
    .descr_texte .descr_texte_contenu div /* texte */
    {
      padding: 5px;
      border: solid 1px #ced2de;
      height: 74px;
      overflow: auto;
      font-size: 16px;
      color: #b3b3b3;
      text-align: justify;
    }
    .d_texte_special /* texte special du debut */
    {
      font-size: 18px;
      font-weight: bold;
    }
    .d_texte_special::after /* mettre point apres texte special */
    {
      content: " . ";
      font-size: 20px;
      font-weight: 900;
    }

    .descr_liens /* colonne liens persos */
    {
      padding-left: 5px;
    }
    .descr_liens div /* conteneur liens persos */
    {
      background: #fff;
      width: 98px;
      height: 90px;
      text-align: center;
      line-height: 23px;
    }
    .descr_liens div a /* liens persos */
    {
      display: inline-block;
      height: 25%;
      font-size: 16px;
      color: #b3b3b3;
    }
    .descr_liens div a::before /* mettre point avant lien perso */
    {
      content: ". ";
      font-weight: 700;
    }


    /* Dernier message du forum */

    .forum_dernmess {
      margin: 0;
      padding: 5px 5px 0 0;
      width: 20%;
      height: 90px;
    }

    .forum_dernmess img {
      width: 168px;
      height: 45px;
    }


    .dernmess_contenu
    {
      width: 100%;
      height: 40px;
      background: #fff;
      padding-top: 5px;
    }
    .dernmess_contenu img
    {
      display: none;
    }
    .dernmess_contenu .gensmall, .dernmess_contenu .gensmall a
    {
      line-height: 0.9em;
      font-size: 13px;
      color: #b3b3b3;
    }
    .dernmess_contenu .gensmall a
    {
      color: #838cb2;
    }


    /* _____ Marge interieure bas categories _____ */

    .cat_marge_bas
    {
      width: 800px;
      height: 10px;
      margin: auto;
      background: #fff;
    }

    /********************* FIN CATEGORIES PAR ELYSIA DE NEVER UTOPIA *********************/

    Javascript (Pan. d'admin > Modules > Gestion des codes javascript > Activez. Puis créez un nouveau, cochez Placement : Sur l'Index et collez) :
    Code:
    $('document').ready(function()
          {
          if($('.categorie').size() > 1)
            {
              $('#conteneur_onglets_cate').css( 'display' , 'block' );
              $('#conteneur_onglets_cate .onglet_cate').click(function()
              {
                change_categorie( $('.onglet_cate', '#conteneur_onglets_cate').index( this ) )
              });
            
             $('.onglet_cate:eq(0)').click();
        }
          });

          function change_categorie( index )
          {
              if( $('.categorie:eq(' + index + ')').size() != 0 )
              {
                $('#conteneur_cate').css( 'min-height' , $('.categorie:eq(' + index + ')').outerHeight() );

              
               $('.categorie').css( 'display' , 'none' );
                $('.categorie:eq(' + index + ')').fadeIn( 500 );
              
               $('.onglet_cate.actif').removeClass('actif');
                $('.onglet_cate:eq('+ index +')').addClass('actif');
              }
              else alert('Vous ne pouvez pas accéder à cette catégorie.');
          }

    $(function(){
        $('.last-post-icon').each(function(){
            var link = $(this).attr('href');
            $(this).closest('span').find('a').eq(0).attr('href', link);
        });
    });


    Le crédit est obligatoire. Vous pouvez créditer "catégories par Elysia de Never Utopia" ou bien seulement "catégories provenant de Never Utopia".


    Un petit merci ou commentaire est toujours le bienvenu ^^
    Si vous avez des problèmes avec ce LS ou des questions, venez poster ici.



    mental disorder
    mental disorder
    FémininAge : 29Messages : 3

    Mar 21 Mar 2017 - 21:53

    merci
    Mariana Greyson
    Mariana Greyson
    FémininAge : 25Messages : 78

    Lun 27 Mar 2017 - 12:46

    thx
    Souky Mitsu
    Souky Mitsu
    FémininAge : 33Messages : 124

    Lun 27 Mar 2017 - 21:27

    J'adore ! Merci du partage Very Happy
    Anonymous
    Invité

    Mar 11 Avr 2017 - 19:09

    Merci :)
    Leyakath
    Leyakath
    FémininAge : 31Messages : 44

    Mer 12 Avr 2017 - 16:09

    Merci pour le partage ! :)
    NekoMiaouw
    NekoMiaouw
    FémininAge : 27Messages : 148

    Jeu 13 Avr 2017 - 17:19

    Merci beaucoup



    Catégories « Lavande » (corps catégorie + onglets + liens persos) - Page 7 388245alisign
    luxury67
    luxury67
    FémininAge : 31Messages : 20

    Jeu 20 Avr 2017 - 20:02

    merci beaucoup c'est sublime !
    Moonlight.
    Moonlight.
    FémininAge : 29Messages : 6

    Mar 25 Avr 2017 - 18:44

    waw magnifique! merci à toi du partage ♥
    Wildness
    Wildness
    MasculinAge : 31Messages : 16

    Dim 30 Avr 2017 - 18:04

    Merci
    ludoloveisa
    ludoloveisa
    MasculinAge : 36Messages : 63

    Mer 3 Mai 2017 - 0:01

    Merci pour le partage
    Celuna
    Celuna
    FémininAge : 33Messages : 133

    Jeu 4 Mai 2017 - 14:16

    Merci pour le partage
    CathyCréation
    CathyCréation
    FémininAge : 44Messages : 207

    Mar 16 Mai 2017 - 21:57

    Merci bcp
    Ehlana
    Ehlana
    FémininAge : 35Messages : 43

    Sam 1 Juil 2017 - 18:51

    merci
    Gieve
    Gieve
    FémininAge : 34Messages : 123

    Sam 1 Juil 2017 - 21:04

    Merci du partage c'est magnifique **
    Philo
    Philo
    FémininAge : 26Messages : 64

    Sam 1 Juil 2017 - 23:43

    merci :)



    Catégories « Lavande » (corps catégorie + onglets + liens persos) - Page 7 581489161225033315760163 Merci mon petit lutin ! Wink
    PrincesseÔ
    PrincesseÔ
    FémininAge : 26Messages : 220

    Ven 14 Juil 2017 - 10:57

    merci !
    Anonymous
    Invité

    Sam 15 Juil 2017 - 23:58

    Mici beaucoup, très joli
    Lutèce
    Lutèce
    FémininAge : 27Messages : 26

    Dim 16 Juil 2017 - 17:17

    Merci
    Yamoto
    Yamoto
    FémininAge : 22Messages : 29

    Ven 21 Juil 2017 - 13:23

    C'est très beau merci
    Lamia
    Lamia
    FémininAge : 28Messages : 154

    Lun 24 Juil 2017 - 12:01

    J'aime énormément le style de ces catégories ! Merci pour le partage !
    swgzl
    swgzl
    FémininAge : 28Messages : 12

    Mer 26 Juil 2017 - 15:51

    Merci beaucoup !
    Melle Lena
    Melle Lena
    FémininAge : 49Messages : 308

    Ven 28 Juil 2017 - 8:07

    Merci :pompom:
    Emylhie
    Emylhie
    FémininAge : 23Messages : 1

    Ven 28 Juil 2017 - 13:48

    Merci !
    GabyPSbz
    GabyPSbz
    FémininAge : 24Messages : 10

    Mer 23 Aoû 2017 - 23:44

    Merci beaucoup :)
    Alehandra
    Alehandra
    FémininAge : 29Messages : 43

    Sam 2 Sep 2017 - 16:22

    merci pour le partage :love:
    Contenu sponsorisé


      La date/heure actuelle est Sam 27 Avr 2024 - 6:01