Catégories en onglets.

3 participants

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

Résolu Catégories en onglets.

Message par Caldinia Jeu 21 Juil 2011 - 10:34

Bonjour.
Dès Septembre prochain, mon forum va subir des grandes nouveautés.
La plus grosse sera qu'il va avoir une grande partie Rpg. Donc j'aimerais
couper le forum en deux, un côté avec le forum normal, ses catégories
qu'il a toujours eu ( donc graphisme, règles, LS, flood, manganimes...)
et un autre côté avec le Rp ( donc les différents lieux où Xp et également
les fiches personnages. )

Je suis en Phbb2 , j'ai déjà bougé un peu mon CSS, fait des test avec
du JV, mais j'ai ratée.
( Mon CSS n'est pas de base, mais les JV si. )


Voila mon CSS :
Code:
.defilement {
overflow: auto;
width: 300px;
height: 100px;
}

.interieur {
width: 300px;
height: 100px;
border: 2px #000000 solid;
}

.titre {
border: 2px #000000 solid;
}


a.infobulle {
  position: relative;
}

a.infobulle span {
  display: none; /* ceci masque l'infobulle */
}
a.infobulle:hover {
  background: none; /* correction d'un bug IE */
  z-index: 999; /* on définit une valeur pour l'ordre d'affichage */

}
a.infobulle:hover span {
  display: inline; /* ceci affiche l'infobulle */
  position: absolute;

  white-space: nowrap; /* on change la valeur de la propriété white-space pour qu'il n'y ait pas de retour à la ligne non-désiré */

  top: 5px; /* on positionne notre infobulle */
  left: 15px;

  background: #ebebeb; /* arrière-plan de l'infobulle */

  color: black; /* texte dans l'infobulle */
  padding: 3px;

  /* bordures de votre infobulle*/
border: 1px #000000 solid;
  border-left: 1px #000000 solid;
}


#submenu ul li a:hover {
background-color: #EE0030;
}bodybody
{
background-repeat: no-repeat;
}


CSS:


#onglets
{
    font : bold 11px Batang, arial, serif;
    list-style-type : none;
    padding-bottom : 24px; /* à modifier suivant la taille de la police ET de la hauteur de l'onglet dans #onglets li */
    border-bottom : 1px solid #9EA0A1;
    margin-left : 0;
}
#onglets li
{
    float : left;
    height : 21px; /* à modifier suivant la taille de la police pour centrer le texte dans l'onglet */
    background-color: #F4F9FD;
    margin : 2px 2px 0 2px !important;  /* Pour les navigateurs autre que IE */
    margin : 1px 2px 0 2px;  /* Pour IE  */
    border : 1px solid #9EA0A1;
}
#onglets li.active
{
    border-bottom: 1px solid #fff;
    background-color: #fff;
}
#onglets a
{
    display : block;
    color : #666;
    text-decoration : none;
    padding : 4px;
}
#onglets a:hover
{
    background : #fff;
}

CSS :

.onglet
{
        display:inline-block;
        margin-left:3px;
        margin-right:3px;
        padding:3px;
        border:1px solid black;
        cursor:pointer;
}
.onglet a
{
        color:#000000;
        text-decoration:none;
}
.onglet_n
{
        background:#bbbbbb;
        border-bottom:1px solid black;
}
.onglet_y
{
        background:#dddddd;
        border-bottom:0px solid black;
        padding-bottom:4px;
}
.contenu
{
        background-color:#dddddd;
        border:1px solid black;
        margin-top:-1px;
        padding:5px;
}
ul
{
        margin-top:0px;
        margin-bottom:0px;
        margin-left:-10px
}
h1
{
        margin:0px;
        padding:0px;
}
     

 .navig {
    position: absolute;
    top: 0px;
left: 0px;
    width: 100%;
    background-image: url("http://hapshack.com/images/pattern.png");
    border: 2px dotted #ff4242;
    border-dotted: 2px solid #ff4242a;
    border-dotted: 2px solid #ff4242;

height: 25px;
}

    a.mainmenu img{
    display: none;
    }
    a.mainmenu {
    margin: 5px;
    text-shadow: 1px 1px 1px #fa7878"
    font-family: Arial Narrow;
    font-size: 15px;
    }

.forumline {
  background-image: url("http://hapshack.com/images/pattern.png");
    border: 2px dotted #ff4242;
    border-dotted: 2px solid #ff4242a;
    border-dotted: 2px solid #ff4242;}


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

a {
text-decoration: none !important;
}

a:link {
text-decoration: none;
}

a:visited {
text-decoration: none;
}

/*qeel*/
.qeel {
border : 5px solid #B0D186;
background-color : #EEFFE0;
padding : 10px;
-moz-border-radius: 20px ;
-webkit-border-radius:20px;
-border-radius:20px;
-khtml-border-radius:20px;
}

/*onglets*/
.onglets {
width:150px;
padding : 5px;
margin : 20px;
border : 5px solid #E4FFA6;
background-color : #E3FCD8;
-moz-border-radius: 20px ;
-webkit-border-radius:20px;
-border-radius:20px;
-khtml-border-radius:20px;
}

/*partie ou apparaisent les stats*/
.stats{
padding : 5px;
border : 5px solid #E4FFA6;
background-color : #E3FCD8;
-moz-border-radius: 20px ;
-webkit-border-radius:20px;
-border-radius:20px;
-khtml-border-radius:20px;
}

/*ne pas effacer*/
.trans .row1 {
background-color : transparent;
}
/*ne pas effacer*/
#kaboum .row1 {
background-color : transparent;
}


JV:
Code:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <!-- BEGIN message_admin_titre -->
   <tr>
      <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
   </tr>
   <!-- END message_admin_titre -->
   <!-- BEGIN message_admin_txt -->
   <tr>
      <td class="row1" rowspan="3" align="center" valign="middle">
      <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
      </td>
   </tr>
   <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <!-- BEGIN switch_fb_connect_no -->
   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
         <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
               <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                     <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                     <span class="gensmall">{L_AUTO_LOGIN}</span> 
                  </td>
               </tr>

               <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
               </tr>
            </table>
         </td>
      </tr>
   </table>
   <!-- END switch_fb_connect_no -->

   <!-- BEGIN switch_fb_connect -->
   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
         <td valign="top" width="100%"  class="row1" align="center">
            <table width="100%">
               <tr>
                  <td width="55%" valign="middle" align="right">
                     <table class="right">
                        <tr>
                           <td><span class="genmed">{L_USERNAME}:</span> </td>
                           <td><input class="post" type="text" size="10" name="username"/> </td>
                           <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span> 
                           </td>
                        </tr>

                        <tr>
                           <td><span class="genmed">{L_PASSWORD}:</span> </td>
                           <td><input class="post" type="password" size="10" name="password"/> </td>
                           <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                     </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                     <span class="genmed fb_or">{switch_user_login_form_header.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" perms="{switch_user_login_form_header.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_header.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
               </tr>
            </table>
         </td>
      </tr>
   </table>
   <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td width="50%" valign="top">
         <!-- BEGIN switch_user_logged_in -->
         <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
         <!-- END switch_user_logged_in -->
         <!-- BEGIN switch_delete_cookies -->
         
<a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a>
         <!-- END switch_delete_cookies -->
         </span>
      </td>
      <td width="50%" align="right">
         <span class="gensmall">
            <a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a>

            <a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a>

            <a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
            <!-- BEGIN switch_on_index -->
               <!-- BEGIN switch_delete_cookies -->
               
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
               <!-- END switch_delete_cookies -->
            <!-- END switch_on_index -->
         </span>
      </td>
   </tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
   <!-- BEGIN switch_fb_connect_no -->
   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
         <td class="row1" align="center">
            <table border="0" cellspacing="0" cellpadding="0">
               <tr>
                  <td><span class="genmed">{L_USERNAME}:</span> </td>
                  <td><input class="post" type="text" size="10" name="username"/> </td>
                  <td>
                     <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                     <span class="gensmall">{L_AUTO_LOGIN}</span> 
                  </td>
               </tr>

               <tr>
                  <td><span class="genmed">{L_PASSWORD}:</span> </td>
                  <td><input class="post" type="password" size="10" name="password"/> </td>
                  <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
               </tr>
            </table>
         </td>
      </tr>
   </table>
   <!-- END switch_fb_connect_no -->

   <!-- BEGIN switch_fb_connect -->
   <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
      <tr>
         <td valign="top" width="100%"  class="row1" align="center">
            <table width="100%">
               <tr>
                  <td width="55%" valign="middle">
                     <table class="right">
                        <tr>
                           <td><span class="genmed">{L_USERNAME}:</span> </td>
                           <td><input class="post" type="text" size="10" name="username"/> </td>
                           <td>
                              <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
                              <span class="gensmall">{L_AUTO_LOGIN}</span> 
                           </td>
                        </tr>

                        <tr>
                           <td><span class="genmed">{L_PASSWORD}:</span> </td>
                           <td><input class="post" type="password" size="10" name="password"/> </td>
                           <td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
                        </tr>
                     </table>
                  </td>
                  <td width="10%" align="center" valign="middle">
                     <span class="genmed fb_or">{switch_user_login_form_footer.switch_fb_connect.L_OR}</span>
                  </td>
                  <td width="35%" class="align_gauche"><fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" v="2" perms="{switch_user_login_form_footer.switch_fb_connect.L_FB_PERMISSIONS}">{switch_user_login_form_footer.switch_fb_connect.L_FB_LOGIN_BUTTON}</fb:login-button></td>
               </tr>
            </table>
         </td>
      </tr>
   </table>
   <!-- END switch_fb_connect -->
</form>
<!-- END switch_user_login_form_footer -->

<!-- BEGIN disable_viewonline -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <td class="catHead" colspan="2" height="28">
      <!-- BEGIN switch_viewonline_link -->
      <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
      <!-- END switch_viewonline_link -->

      <!-- BEGIN switch_viewonline_nolink -->
      <span class="cattitle">{L_WHO_IS_ONLINE}</span>
      <!-- END switch_viewonline_nolink -->
      </td>
   </tr>
   <tr>
      <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
      <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}

      {TOTAL_USERS}

      {NEWEST_USER}</span></td>
   </tr>
   <tr>
      <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}

      {RECORD_USERS}

      

      {LOGGED_IN_USER_LIST}</span></td>
   </tr>
   {L_CONNECTED_MEMBERS}
   {L_WHOSBIRTHDAY_TODAY}
   {L_WHOSBIRTHDAY_WEEK}
   <tr>
      <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
   </tr>
   <!-- BEGIN switch_chatbox_activate -->
   <tr>
      <td class="row1">
         <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}

            <!-- BEGIN switch_chatbox_popup -->
            <div id="chatbox_popup"></div>
            <script type="text/javascript">
            //<![CDATA[
            insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
            //]]>
            </script>
            <!-- END switch_chatbox_popup -->
         </span>
      </td>
   </tr>
   <!-- END switch_chatbox_activate -->
</table>
<!-- END disable_viewonline -->
{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
   <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td>  </td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
   </tr>
</table>
<!-- END switch_legend -->

{AUTO_DST}

<!-- BEGIN switch_fb_index_login -->
<div id="fb-root"></div>
<script type="text/javascript">
//<![CDATA[
FB.init({
   appId: '{switch_fb_index_login.FACEBOOK_APP_ID}',
     status: true,
     cookie: true,
     xfbml: true
});
//]]>
</script>
<!-- END switch_fb_index_login -->
Avant tout également, j'aimerais le tester sur mon forum de test.
Le CSS est le même, et le JV n'a pas changé.

Voila mon forum de test si besoin :
Forum de test


Dernière édition par Caldinia le Sam 30 Juil 2011 - 10:44, édité 1 fois
Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Caldinia Ven 22 Juil 2011 - 11:09

Petit UP, personne n'a de solution ?
Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Threax Ven 22 Juil 2011 - 12:11

Bonjour,

JV c'est... Javascript ? Si c'est le cas, c'est plutôt JS. Wink
Avez-vous tenté de faire une recherche sur le forum ? Les catégories en onglet sont un sujet traité assez souvent...
Threax

Threax
Membre actif

Masculin
Messages : 17276
Inscrit(e) le : 27/08/2005

http://lesforumsde.forumactif.com
Threax a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Caldinia Ven 22 Juil 2011 - 12:13

Oui JS du coup. Je mélange un peu tout :rire:.
Et oui j'ai fais plusieurs recherches mais je cherches
un style d'onglet bien spécial :

Plusieurs catégories dans un onglet.

Du coup, malgré mes test je n'ai rien trouvée de tel...
Mais j’espère que ça existe au moins.
Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Caldinia Lun 25 Juil 2011 - 14:43

Up, s'il vous plait...
Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Caldinia Ven 29 Juil 2011 - 9:42

Up s'il vous plait !
D'ailleurs maintenant je veux juste des catégories en onglets tout court TT

Edit : Mon CSS maitenant

Code:
.groupes{
background-color: #transp;
height:10px;
padding-right: 10px;
padding-left: 10px;
padding-bottom: 2px;
font-size: 10px;
font-weight: georgia;
text-align: right;
text-decoration: 2;}

.forumline{
background-color: #000000;
-moz-border-radius: 0px ;
border: 2px none solid;
}

a.forumlink{
-moz-border-radius: 7px 7px 7px 7px;
background-color: #2a2a2a;
border-bottom: 3px double #3c3c3c;
color:#ffffff;
font-family: georgia;
font-size: 12px;
font-weight: lighter;
letter-spacing: 1px;
display:block;
text-align: center;
}

.thumbnail:hover span{
visibility: visible;
top: 15px;
left: 25px;
width: (100px);}
a

{font-family: georgia;
text-transform: uppercase;
text-decoration: none;
text-shadow: 1px 1px 1px #000000;
border-bottom: none;}

a:hover
{font-style: none;
font-family: georgia;
text-transform: uppercase;
border-left: none;
border-right: none;
border-bottom: none;
background-color: #fffff;}



body
{margin-top: 0px;
margin-bottom: 0px;}


body.chatbox
{background-image: url(http://s2.noelshack.com/uploads/images/16747214781033_i_back_catg.png);
background-color: transparent;}

.navig {
    position: absolute;
    top: 0px;
left: 0px;
    width: 100%;
    background-image: url("http://hapshack.com/images/pattern.png");
    border: 2px dotted #ff4242;
    border-dotted: 2px solid #ff4242a;
    border-dotted: 2px solid #ff4242;}


.defilement {
overflow: auto;
width: 300px;
height: 100px;
}

.interieur {
width: 300px;
height: 100px;
border: 2px #000000 solid;
}

.titre {
border: 2px #000000 solid;
}


a.infobulle {
  position: relative;
}

a.infobulle span {
  display: none; /* ceci masque l'infobulle */
}
a.infobulle:hover {
  background: none; /* correction d'un bug IE */
  z-index: 999; /* on définit une valeur pour l'ordre d'affichage */

}
a.infobulle:hover span {
  display: inline; /* ceci affiche l'infobulle */
  position: absolute;

  white-space: nowrap; /* on change la valeur de la propriété white-space pour qu'il n'y ait pas de retour à la ligne non-désiré */

  top: 5px; /* on positionne notre infobulle */
  left: 15px;

  background: #ebebeb; /* arrière-plan de l'infobulle */

  color: black; /* texte dans l'infobulle */
  padding: 3px;

  /* bordures de votre infobulle*/
border: 1px #000000 solid;
  border-left: 1px #000000 solid;
}
Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par tupac Ven 29 Juil 2011 - 13:49

Bonjour

Allez jeter un œil sur ce sujet.
tupac

tupac
Membre actif

Masculin
Messages : 2551
Inscrit(e) le : 13/10/2010

http://codactif.monalliance.com/
tupac a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories en onglets.

Message par Caldinia Sam 30 Juil 2011 - 10:44

Merci beaucoup.
De toute façon c'est bon tout est réglé.

Caldinia

Caldinia
Nouveau membre

Féminin
Messages : 6
Inscrit(e) le : 27/03/2011

http://graph-soul.forumactif.org/
Caldinia 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