It is currently Wed 28 Sep 2016 - 05:27 - créer un forum

[Tuto] Cacher/Montrer les catégories

Skip to content

Post new topic Reply to topic Goto page: <  1, 2, 3, 4, 518, 19, 20  >

[Tuto] Cacher/Montrer les catégories
Author Message
kostyks





PostPosted: Thu 22 May 2008 - 22:10    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

PublicitéSupprimer les publicités ?
Previous post review:

Okay

Merci à toi.
Author Message
GoldFish


Offline
Guest




PostPosted: Sat 24 May 2008 - 00:34    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonsoir,

Le tuto fonctionne bien j'ai seulement perdu en route les mots sujets et messages



Code: Sélectionner - Agrandir
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="http://img10.xooimage.com/files/d/1/7/softblue-2e01af.css" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
   if ( {PRIVATE_MESSAGE_NEW_FLAG} )
   {
      window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
   }
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">

<a name="top"></a>
<TABLE BORDER="0" WIDTH="98%" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
      <TR>
        <TD>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
      <TR>
        <TD><IMG
          SRC="http://img7.xooimage.com/files/b/o/border_1-35860.gif"
          WIDTH="20" HEIGHT="20"></TD>
        <TD
         BACKGROUND="http://img5.xooimage.com/files/b/o/border_2-35861.gif"
         WIDTH="100%"></TD>
        <TD><IMG
          SRC="http://img10.xooimage.com/files/b/o/border_3-35862.gif"
          WIDTH="20" HEIGHT="20"></TD>
      </TR>
    </TABLE>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
      <TR>
        <TD
         BACKGROUND="http://img5.xooimage.com/files/b/o/border_4-35863.gif"><IMG
          SRC="http://img5.xooimage.com/files/b/o/border_4-35863.gif"
          WIDTH="20" HEIGHT="2"></TD>
        <TD WIDTH="100%" BGCOLOR="#CFDFEE" colspan="2">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
      <tr>
      <td class="bodyline"><div class="forumlinemain"><table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
                                     <tr>
<th class="thCornerL"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<th height="25" nowrap="nowrap" align="left"><a href="{U_FAQ}" class="mainmenu"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a></th>
<th height="25" nowrap="nowrap" align="right">{SITENAME}&nbsp;</th>
</tr>
</table>
</td>
</tr>
<tr><td class="logo"><a href="{U_INDEX}" border="0"><img src="http://img7.xooimage.com/files/l/o/logo_phpbb-35864.gif" border="0" alt="{L_INDEX}" /></a></td>
</tr>
                                     <tr><td class="catLeft" colspan="2" height="28" align="right"><span class="menu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="http://img7.xooimage.com/files/i/c/icon_mini_profile-35865.gif" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="http://img10.xooimage.com/files/i/c/icon_mini_message-35866.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="http://img8.xooimage.com/files/i/c/icon_mini_login-35867.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
  </tr>
</table></div>
           </td>
      </tr>


<!-- BEGIN switch_user_logged_out -->
<tr>
      <td class="bodyline"><div class="forumlinemain"><table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
                                                                          <tr><td class="catLeft" colspan="2" height="28">&nbsp;<span class="menu"><a href="{U_REGISTER}" class="mainmenu"><img src="http://img6.xooimage.com/files/i/c/icon_mini_register-35868.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span>&nbsp;</td>
  </tr>
                                 </table></div>
            </td>
      </tr>
<!-- END switch_user_logged_out -->
<tr>
      <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td>&nbsp;</td></tr></table>


Code: Sélectionner - Agrandir
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <td align="left" valign="bottom"><span class="gensmall">
   <!-- BEGIN switch_user_logged_in -->
   {LAST_VISIT_DATE}<br />
   <!-- END switch_user_logged_in -->
   {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
   <td align="right" valign="bottom" class="gensmall">
      <!-- BEGIN switch_user_logged_in -->
      <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
      <!-- END switch_user_logged_in -->
      <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>
<div class="forumlinemain">
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <!-- BEGIN catrow -->
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap" align="left">&nbsp;&curren;&nbsp;<a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN forumrow -->
  <tr>
   <td class="row1" align="center" valign="middle" height="50" width="10%"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row2" width="90%" height="50"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="" hspace="3" /><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
     </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
 </tbody>
  <!-- END catrow -->
</table>
</div>
<br />
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<div class="forumlinemain">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span> </td>
   </tr>
  </table></div>
</form>
<!-- END switch_user_logged_out -->
<div class="forumlinemain">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><table width="100%">
<tr>
<td width="50%" align="left"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
<td width="50%" align="right"><span class="cattitle"><a href="{U_MARK_READ}" class="cattitle">{L_MARK_FORUMS_READ}</a></span></td>
</tr>
</table></td>
  </tr>
  <tr>
   <td class="row1" align="left" colspan="2"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</span></td>
</tr>
<tr>
   <td class="catHead" colspan="3" height="28"><span class="cattitle">Board Statistics - Forum Legend</span></td>
  </tr>
  <tr>
   <td class="row2" align="left"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span></td>
<td class="row1" align="right"><table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
   <td width="20" align="center"><img src="http://img6.xooimage.com/files/f/o/folder_new_big-3584a.gif" alt="{L_NEW_POSTS}"/></td>
   <td><span class="gensmall">{L_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="http://img4.xooimage.com/files/f/o/folder_big-35849.gif" alt="{L_NO_NEW_POSTS}" /></td>
   <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="http://img7.xooimage.com/files/f/o/folder_locked_big-3584b.gif" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
</td>
</tr>
</table>
</div>
<br clear="all" />


Merci

EDIT: je pense avoir trouvé d'où ça viens, enfin à peu près, car du coup je ne sais pas quoi modifier(tout le reste du tuto est fait)

Dans mon thème (softblue)template index_body.tpl je devrais changer

Code: Sélectionner - Agrandir
<!-- BEGIN catrow -->
  <tr>
 <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
 <td class="rowpic" colspan="3" align="right">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->


par

Code: Sélectionner - Agrandir
<!-- BEGIN catrow -->

 <tbody id="cat_{catrow.CAT_ID}_f_h" style="display: none;">
  <tr>
    <td class="catLeft" colspan="5" height="28">
    <img style="padding-right: 5px; float: right; cursor: pointer;" src="http://img10.xooimage.com/files/a/c/c/maximise-176fb0.gif" onclick="javascript:ShowHide('cat_{catrow.CAT_ID}_f','cat_{catrow.CAT_ID}_f_h','cat_{catrow.CAT_ID}_f');" alt="Show">
    <span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
  </tr>
 </tbody>
 
 <tbody id="cat_{catrow.CAT_ID}_f">
<script type="text/javascript">
<!--
tmp = 'cat_{catrow.CAT_ID}_f';
if(GetCookie(tmp) == '2')
{
   ShowHide('cat_{catrow.CAT_ID}_f', 'cat_{catrow.CAT_ID}_f_h', 'cat_{catrow.CAT_ID}_f');
}
//-->
</script>
  <tr>
    <td class="catLeft" colspan="5" height="28">
    <img style="padding-right: 5px; float: right; cursor: pointer;" src="http://img4.xooimage.com/files/a/0/8/minimise-176fb7.gif" onclick="javascript:ShowHide('cat_{catrow.CAT_ID}_f','cat_{catrow.CAT_ID}_f_h','cat_{catrow.CAT_ID}_f');" alt="Hide">
    <span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
  </tr>

  <!-- BEGIN forumrow -->



mais moi j'ai ça Laughing

Code: Sélectionner - Agrandir
<!-- BEGIN catrow -->
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap" align="left">&nbsp;&curren;&nbsp;<a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN forumrow -->


Une petite idée?


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Sat 24 May 2008 - 09:58    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

bonjour


dans ton thème de test fais les modifs et remplaces ton index body par ça pour voir

 
Code: Sélectionner - Agrandir

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
          <tr>
           <td align="left" valign="bottom"><span class="gensmall">
           <!-- BEGIN switch_user_logged_in -->
           {LAST_VISIT_DATE}<br />
           <!-- END switch_user_logged_in -->
           {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
           <td align="right" valign="bottom" class="gensmall">
              <!-- BEGIN switch_user_logged_in -->
              <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
              <!-- END switch_user_logged_in -->
              <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
          </tr>
        </table>
         <!-- BEGIN catrow -->
        <table width="100%" cellspacing="1" border="0" class="tablebg"> 
         
         
         <tbody id="cat_{catrow.CAT_ID}_f_h" style="display: none;">
        <table width="100%" border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td class="catLeft" height="28" colspan="2"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
              <td width="100" align="center" class="catLeft"><span class="forumlink">{L_TOPICS}</span></td>
        <td width="100" align="center" class="catLeft"><span class="forumlink">{L_POSTS}</span></td>
        <td width="150" align="center" class="catLeft"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><span class="forumlink">{L_LASTPOST}</span></td>
              <td><img style="padding-right: 5px; float: right; cursor: pointer;" src="http://img10.xooimage.com/files/a/c/c/maximise-176fb0.gif" onclick="javascript:ShowHide('cat_{catrow.CAT_ID}_f','cat_{catrow.CAT_ID}_f_h','cat_{catrow.CAT_ID}_f');" alt="Show"></td>
            </tr>
          </table></td>
              </tr>
             </tbody>
             
             <tbody id="cat_{catrow.CAT_ID}_f">
            <script type="text/javascript">
            <!--
            tmp = 'cat_{catrow.CAT_ID}_f';
            if(GetCookie(tmp) == '2')
            {
               ShowHide('cat_{catrow.CAT_ID}_f', 'cat_{catrow.CAT_ID}_f_h', 'cat_{catrow.CAT_ID}_f');
            }
            //-->
            </script>
              <!-- BEGIN forumrow --><tr>
           <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
           <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
             </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
            </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
           <td width="100" height="50" align="center" valign="middle" class="row2"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
           <td width="100" height="50" align="center" valign="middle" class="row2"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
           <td width="150" height="50" align="center" valign="middle" nowrap="nowrap" class="row2"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
          </tr>
          <!-- END forumrow -->
         </tbody>
          <!-- END catrow -->
    </table>
 
        <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
          <tr>
           <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
           <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
          </tr>
        </table>
        <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
          <tr>
           <td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
          </tr>
          <tr>
           <td class="row1" align="center" valign="middle" rowspan="2"><img src="http://img6.xooimage.com/files/6/9/2/qui-est-en-ligne-374081.gif" alt="{L_WHO_IS_ONLINE}" /></td>
           <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
           </td>
          </tr>
          <tr>
           <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
          </tr>
        </table>
        <table width="100%" cellpadding="1" cellspacing="1" border="0">
          <tr>
           <td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
          </tr>
        </table>
        <!-- BEGIN switch_user_logged_out -->
        <form method="post" action="{S_LOGIN_ACTION}">
          <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
           <tr>
             <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
           </tr>
           <tr>
             <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
              <input class="post" type="text" name="username" size="10" />
              &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
              <input class="post" type="password" name="password" size="10" maxlength="32" />
              &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
              <input class="text" type="checkbox" name="autologin" />
              &nbsp;&nbsp;&nbsp;
              <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
              </span> </td>
           </tr>
          </table>
        </form>
        <!-- END switch_user_logged_out -->
        <br clear="all" />
        <table cellspacing="3" border="0" align="center" cellpadding="0">
          <tr>
           <td width="20" align="center"><img src="http://img6.xooimage.com/files/0/5/8/nouveau-message-374097.gif" alt="{L_NEW_POSTS}"/></td>
           <td><span class="gensmall">{L_NEW_POSTS}</span></td>
           <td>&nbsp;&nbsp;</td>
           <td width="20" align="center"><img src="http://img1.xooimage.com/files/e/2/f/pas-de-nouveau-message-37408c.gif" alt="{L_NO_NEW_POSTS}" /></td>
           <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
           <td>&nbsp;&nbsp;</td>
           <td width="20" align="center"><img src="http://img9.xooimage.com/files/7/8/b/verrouill--374090.gif" alt="{L_FORUM_LOCKED}" /></td>
           <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
          </tr>
        </table>  

_______________________


Forum
Author Message
GoldFish


Offline
Guest




PostPosted: Sat 24 May 2008 - 10:06    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour themalin,

Ca me fait un décalage et ça modifie la couleur de la police (ça mets en blanc)

Tu peux voir ICI

C'est un forum qui ne me sert qu'a faire des tests avant de tout basculer sur mon "vrai" forum, donc la modif est faite en thème normal Razz


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Sat 24 May 2008 - 10:08    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

dans le code ici


 
Code: Sélectionner - Agrandir
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
remplaces par


 
Code: Sélectionner - Agrandir
<td class="row1" align="center" valign="middle" height="50" width="60"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 

_______________________


Forum
Author Message
GoldFish


Offline
Guest




PostPosted: Sat 24 May 2008 - 10:15    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Ca fonctionne, reste juste l'écriture qui maintenant est en blanc

Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Sat 24 May 2008 - 10:18    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

tu parles de là ou tu as sujets et autre???
_______________________


Forum
Author Message
GoldFish


Offline
Guest




PostPosted: Sat 24 May 2008 - 10:20    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Oui normalement c'est noir, en blanc ce n'est pas assez visible avec les autres couleurs/images de mon thème

EDIT

Par rapport à mon template original, qu'est ce que je dois modifier, car je ne voudrais pas perdre les modifs déjà faite Embarassed

Code: Sélectionner - Agrandir
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <td align="left" valign="bottom"><span class="gensmall">
   <!-- BEGIN switch_user_logged_in -->
   {LAST_VISIT_DATE}<br />
   <!-- END switch_user_logged_in -->
   {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
   <td align="right" valign="bottom" class="gensmall">
      <!-- BEGIN switch_user_logged_in -->
      <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
      <!-- END switch_user_logged_in -->
      <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>
<div class="forumlinemain">
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <!-- BEGIN catrow -->
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap" align="left">&nbsp;&curren;&nbsp;<a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN forumrow -->
  <tr>
   <td class="row1" align="center" valign="middle" height="50" width="10%"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row2" width="90%" height="50"><img src="http://img10.xooimage.com/files/i/c/icon_mini_faq-3585a.gif" border="0" alt="" hspace="3" /><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
     </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
 </tbody>
  <!-- END catrow -->
</table>
</div>
<br />
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<div class="forumlinemain">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
   </tr>
   <tr>
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}
      <input class="text" type="checkbox" name="autologin" />
      &nbsp;&nbsp;&nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span> </td>
   </tr>
  </table></div>
</form>
<!-- END switch_user_logged_out -->
<div class="forumlinemain">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catHead" colspan="2" height="28"><table width="100%">
<tr>
<td width="50%" align="left"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
<td width="50%" align="right"><span class="cattitle"><a href="{U_MARK_READ}" class="cattitle">{L_MARK_FORUMS_READ}</a></span></td>
</tr>
</table></td>
  </tr>
  <tr>
   <td class="row1" align="left" colspan="2"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</span></td>
</tr>
<tr>
   <td class="catHead" colspan="3" height="28"><span class="cattitle">Board Statistics - Forum Legend</span></td>
  </tr>
  <tr>
   <td class="row2" align="left"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span></td>
<td class="row1" align="right"><table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
   <td width="20" align="center"><img src="http://img6.xooimage.com/files/f/o/folder_new_big-3584a.gif" alt="{L_NEW_POSTS}"/></td>
   <td><span class="gensmall">{L_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="http://img4.xooimage.com/files/f/o/folder_big-35849.gif" alt="{L_NO_NEW_POSTS}" /></td>
   <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="http://img7.xooimage.com/files/f/o/folder_locked_big-3584b.gif" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
</td>
</tr>
</table>
</div>
<br clear="all" />


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Sat 24 May 2008 - 10:27    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

ici

 
Code: Sélectionner - Agrandir

<td class="catLeft" height="28" colspan="2"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
              <td width="100" align="center" class="catLeft"><span class="forumlink">{L_TOPICS}</span></td>
        <td width="100" align="center" class="catLeft"><span class="forumlink">{L_POSTS}</span></td> 
        <td width="150" align="center" class="catLeft"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>   


il suffit de remplacer

{L_TOPICS}

par

 
Code: Sélectionner - Agrandir
<font color=black>{L_TOPICS}</font>



tu fais de même avec les autres codes


_______________________


Forum
Author Message
Yskander
Modérateur


Offline
Modérateur

Joined: 26 Jan 2008
Posts: 1,558
Point(s): 1,654
Moyenne: 1.06
Masculin

PostPosted: Sun 22 Jun 2008 - 04:50    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Un peu de mal à l'adapter au début
mais sinon tuto GENIAL
Très pratique
Merci Altaïr
_______________________
Pour les mp injurieux >> Ezéchiel 25 verset 17


Forum
Author Message
Cyberium


Offline
Guest




PostPosted: Wed 16 Jul 2008 - 23:14    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Comment se fait-il que ma première catégorie est de largeur normal mais les suivantes sont beaucoup plus larges ?( http://myriam.xooit.fr/ )Sur le thème de test, tout fonctionné.
Merci pour les aides


Author Message
Cyberium


Offline
Guest




PostPosted: Wed 16 Jul 2008 - 23:20    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Problème résolu. Ne demandez pas comment, je ne peux vous dire ^^. En tout cas très bon tuto ! Cool

Author Message
Nejitounn
Membre


Offline
Membre

Joined: 09 Jul 2008
Posts: 88
Niveau:
Point(s): 88
Moyenne: 1.00
Linux Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Poissons (20fev-20mar) 狗 Chien

PostPosted: Wed 30 Jul 2008 - 21:57    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour!
moi je ne comprends pas j'ai l'impression de ne pas avoir le même index body que vous parce que le mien mais des 96% à la place de 100 et c'est pas la même chose, le voici:


 
 
Code: Sélectionner - Agrandir
 <table width="96%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
    <td align="left" valign="bottom"><span class="gensmall">
    <!-- BEGIN switch_user_logged_in -->
    {LAST_VISIT_DATE}<br />
    <!-- END switch_user_logged_in -->
    {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
    <td align="right" valign="bottom" class="gensmall">
        <!-- BEGIN switch_user_logged_in -->
        <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
        <!-- END switch_user_logged_in -->
        <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>

<!-- BEGIN catrow -->
<table width="96%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
    <td colspan="5" class="catForum" align="center" colspan="2" height="22"><span class="cattitle">{L_FORUM}&nbsp;&nbsp;&nbsp;</a></span></td>
  </tr>
<tr>
<th colspan="2" class="thCornerL" align="left" height="25" nowrap="nowrap">&nbsp;<span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></th>
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50" onMouseOver="this.style.backgroundColor='#D9D9D9'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor='#E6E6E6' onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></span><br />
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span><br />
<span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>

<table width="96%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top"><img src="http://img6.xooimage.com/files/t/a/table_shadow-92f68.gif"></td>
  </tr>
</table>

<!-- END catrow -->

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr>
     <td align="left">
     <!-- BEGIN switch_user_logged_in -->
         <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
     <!-- END switch_user_logged_in -->
     </td>
    <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="96%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
    <td class="catForum" align="center" colspan="2" height="28"><span class="whosonline"><a href="{U_VIEWONLINE}" class="whosonline">{L_WHO_IS_ONLINE}&nbsp;&nbsp;&nbsp;</a></span></td>
  </tr>
  <tr>
    <td class="row1" align="center" valign="middle" rowspan="2"><img src="http://img10.xooimage.com/files/w/h/whosonline-92f6a.gif" alt="{L_WHO_IS_ONLINE}" /></td>
    <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
    </td>
  </tr>
  <tr>
    <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; <br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="96%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top"><img src="http://img6.xooimage.com/files/t/a/table_shadow-92f68.gif"></td>
  </tr>
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr>
    <td align="right" width="50%"><span class="gensmall"></span></td>
  </tr>
  <tr>
    <td align="center">&nbsp; </td>
    <td align="right" width="50%">
      <!-- BEGIN switch_user_logged_out -->
      <table border="0" cellpadding="2" cellspacing="0">
        <form method="post" action="{S_LOGIN_ACTION}">
          <tr>
            <td nowrap align="left">
<span class="gensmall">Log in with username and password:</span><br />
              <input class="post" type="text" name="username" size="12">
              <input class="post" type="password" name="password" size="10" maxlength="32">
        <!-- BEGIN switch_allow_autologin -->
              <span class="gensmall"><b>Stay logged in?</b></span>
              <input class="text" type="checkbox" name="autologin" value="ON">
        <!-- END switch_allow_autologin -->
              <input type="submit"  name="login" value="{L_LOGIN}">
              <br />
            </td>
          </tr>
        </form>
      </table>
      <!-- END switch_user_logged_out -->
    </td>
  </tr>
</table>

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
    <td width="20" align="center"><img src="http://img2.xooimage.com/files/5/c/d/folder_new-33866.gif" alt="{L_NEW_POSTS}"/></td>
    <td><span class="gensmall">{L_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="http://img2.xooimage.com/files/1/e/1/folder-33865.gif" alt="{L_NO_NEW_POSTS}" /></td>
    <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="http://img6.xooimage.com/files/9/d/b/folder_lock-33869.gif" alt="{L_FORUM_LOCKED}" /></td>
    <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>



merci de m'aider, je suis désespéré Crying or Very sad
_______________________


Forum
Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Thu 31 Jul 2008 - 10:14    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

bonjour

le pourcentage que tu as ne change rien

sinon tu as bien la partie ici


 
Code: Sélectionner - Agrandir
<!-- BEGIN catrow --> 
<table width="96%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
    <td colspan="5" class="catForum" align="center" colspan="2" height="22"><span class="cattitle">{L_FORUM}&nbsp;&nbsp;&nbsp;</a></span></td>
  </tr>
<tr> 
<th colspan="2" class="thCornerL" align="left" height="25" nowrap="nowrap">&nbsp;<span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></th>
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th> 
<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th> 
<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th> 
</tr> 
<!-- BEGIN forumrow -->   
en fait c'est un peu différent car tu as les catégories séparé sur l'index mais c'est la même modif
_______________________


Forum
Author Message
Nejitounn
Membre


Offline
Membre

Joined: 09 Jul 2008
Posts: 88
Niveau:
Point(s): 88
Moyenne: 1.00
Linux Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Poissons (20fev-20mar) 狗 Chien

PostPosted: Thu 31 Jul 2008 - 19:58    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

alors il faut juste que j'enlève cette partie pour ce qui est de la page index_body?
_______________________


Forum
Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Thu 31 Jul 2008 - 20:00    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

non tu dois faire la modification comme indiqué mais sur cette partie
_______________________


Forum
Author Message
Contenu Sponsorisé





PostPosted: Today at 05:27    Post subject: [Tuto] Cacher/Montrer les catégories

Display posts from previous:   
Reply to topic Page 4 of 20 Goto page: <  1, 2, 3, 4, 518, 19, 20  >




Portal | Index | Administration Panel | Create a forum | Free support forum | Free forums directory | Report a violation | Conditions générales d'utilisation
Propulsé par p h p B B © 2016 p h p B B Group |
 
© 2003-2013 Xooit.com - Contact - Mentions légales - CGU - Charte - CNIL : 1381401