It is currently Sun 25 Sep 2016 - 09:08 - créer un forum

[Tuto] Cacher/Montrer les catégories

Skip to content

Post new topic Reply to topic Goto page: <  1, 2, 313, 14, 1518, 19, 20  >

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





PostPosted: Thu 7 Jan 2010 - 22:56    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

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

Bonsoir a tous,

Je n'arrive pas a modifier le "qui est en ligne"  afin de cacher cette catégorie, je ne trouve pas le bon paramétrage dans mon index body.
 
Quelqu'un peut-il m'aider ???
 
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>

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
    <th colspan="2" class="thCornerL" width="100%" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
    <th width="70" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
    <th width="70" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
    <th width="200" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- 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 -->
  <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">
        <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="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
    <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
    <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr>
     <!-- BEGIN switch_user_logged_in -->
     <td class="gensmall" align="left"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>
     <!-- END switch_user_logged_in -->
    <td class="gensmall" align="right">{S_TIMEZONE}</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://img4.xooimage.com/files/w/h/whosonline-36eb8.gif" width="46" height="25" 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}<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}
        <br /><img src="http://img10.xooimage.com/files/i/c/icon_legend-36b1e.gif" width="16" height="13" alt="" class="absbottom" />&nbsp;[ <b>{L_WHOSONLINE_ADMIN}</b> ]&nbsp;[ <b>{L_WHOSONLINE_MOD}</b> ]
    </span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
  <tr>
    <td class="gensmall" valign="top">{L_ONLINE_EXPLAIN}</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">
        <label for="username">{L_USERNAME}: </label>
        <input class="post" id="username" name="username" type="text" size="10" />
        <label for="mdp">{L_PASSWORD}: </label>
        <input class="post" id="mdp" maxlength="32" name="password" type="password" size="10" />
        <!-- BEGIN switch_allow_autologin -->
        <label for="autologin">{L_AUTO_LOGIN}</label>
        <input class="text" id="autologin" name="autologin" type="checkbox" />
        <!-- END switch_allow_autologin -->
        <input class="mainoption" name="login" type="submit" value="{L_LOGIN}" />
      </span></td>
    </tr>
  </table>
</form>
<!-- END switch_user_logged_out -->

<br class="nav" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr>
    <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_new_big-36ec2.gif" width="46" height="25" alt="{L_NEW_POSTS}"/></td>
    <td><span class="gensmall">{L_NEW_POSTS}</span></td>
    <td width="20" align="center"><img src="http://img9.xooimage.com/files/f/o/folder_big-36ec1.gif" width="46" height="25" alt="{L_NO_NEW_POSTS}" /></td>
    <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
    <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_locked_big-36ec3.gif" width="46" height="25" alt="{L_FORUM_LOCKED}" /></td>
    <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table> 

Merci par avance.
Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Fri 8 Jan 2010 - 09:10    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour,
Je viens de te modifier ton index_body.tpl.
Après une sauvegarde supprime celui que tu as et remplace le par celui-ci :
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>

    <table width="100%" cellspacing="1" border="0" class="tablebg">
      <tr>
     <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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>


    <table width="100%" cellspacing="1" border="0" class="tablebg">
      <tr>
     <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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 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 -->

      <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">
            <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="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
        <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
        <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
      </tr>

    <table width="100%" cellspacing="1" border="0" class="tablebg">
      <tr>
     <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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 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 -->

      <!-- END forumrow -->
     </tbody>
      <!-- END catrow -->
    </table>


    <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
      <tr>
         <!-- BEGIN switch_user_logged_in -->
         <td class="gensmall" align="left"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>
         <!-- END switch_user_logged_in -->
        <td class="gensmall" align="right">{S_TIMEZONE}</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://img4.xooimage.com/files/w/h/whosonline-36eb8.gif" width="46" height="25" 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}<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}
            <br /><img src="http://img10.xooimage.com/files/i/c/icon_legend-36b1e.gif" width="16" height="13" alt="" class="absbottom" />&nbsp;[ <b>{L_WHOSONLINE_ADMIN}</b> ]&nbsp;[ <b>{L_WHOSONLINE_MOD}</b> ]
        </span></td>
      </tr>
    </table>

    <table width="100%" cellpadding="1" cellspacing="1" border="0">
      <tr>
        <td class="gensmall" valign="top">{L_ONLINE_EXPLAIN}</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">
            <label for="username">{L_USERNAME}: </label>
            <input class="post" id="username" name="username" type="text" size="10" />
            <label for="mdp">{L_PASSWORD}: </label>
            <input class="post" id="mdp" maxlength="32" name="password" type="password" size="10" />
            <!-- BEGIN switch_allow_autologin -->
            <label for="autologin">{L_AUTO_LOGIN}</label>
            <input class="text" id="autologin" name="autologin" type="checkbox" />
            <!-- END switch_allow_autologin -->
            <input class="mainoption" name="login" type="submit" value="{L_LOGIN}" />
          </span></td>
        </tr>
      </table>
    </form>
    <!-- END switch_user_logged_out -->

    <br class="nav" />
    <table cellspacing="3" border="0" align="center" cellpadding="0">
      <tr>
        <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_new_big-36ec2.gif" width="46" height="25" alt="{L_NEW_POSTS}"/></td>
        <td><span class="gensmall">{L_NEW_POSTS}</span></td>
        <td width="20" align="center"><img src="http://img9.xooimage.com/files/f/o/folder_big-36ec1.gif" width="46" height="25" alt="{L_NO_NEW_POSTS}" /></td>
        <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
        <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_locked_big-36ec3.gif" width="46" height="25" alt="{L_FORUM_LOCKED}" /></td>
        <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
      </tr>
    </table>


Tu dois faire les autres changement dans ton overall_header.tpl
Cherche:
Code: Sélectionner - Agrandir
 </head>


Ajoute juste avant :
Code: Sélectionner - Agrandir
<script type="text/javascript">
    var PreloadFlag = false;
    var expDays = 90;
    var exp = new Date();
    var tmp = '';
    var tmp_counter = 0;
    var tmp_open = 0;

    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

    function SetCookie(name, value)
    {
       var argv = SetCookie.arguments;
       var argc = SetCookie.arguments.length;
       var expires = (argc > 2) ? argv[2] : null;
       var path = (argc > 3) ? argv[3] : null;
       var domain = (argc > 4) ? argv[4] : null;
       var secure = (argc > 5) ? argv[5] : false;
       document.cookie = name + "=" + escape(value) +
          ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
          ((path == null) ? "" : ("; path=" + path)) +
          ((domain == null) ? "" : ("; domain=" + domain)) +
          ((secure == true) ? "; secure" : "");
    }

    function getCookieVal(offset)
    {
       var endstr = document.cookie.indexOf(";",offset);
       if (endstr == -1)
       {
          endstr = document.cookie.length;
       }
       return unescape(document.cookie.substring(offset, endstr));
    }

    function GetCookie(name)
    {
       var arg = name + "=";
       var alen = arg.length;
       var clen = document.cookie.length;
       var i = 0;
       while (i < clen)
       {
          var j = i + alen;
          if (document.cookie.substring(i, j) == arg)
          {
             return getCookieVal(j);
          }
          i = document.cookie.indexOf(" ", i) + 1;
          if (i == 0)
          {
             break;
          }
       }
       return null;
    }

    function ShowHide(id1, id2, id3)
    {
       var res = expMenu(id1);
       if (id2 != '')
       {
          expMenu(id2);
       }
       if (id3 != '')
       {
          SetCookie(id3, res, exp);
       }
    }

    function expMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return 1;
          }
          else
          {
             itm.style.display = "none";
             return 2;
          }
       }
       else
       {
          itm.visibility = "show";
          return 1;
       }
    }
    </script>

Sauvegarde et ferme.
_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
tathan10


Offline
Guest




PostPosted: Fri 8 Jan 2010 - 14:30    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Merci de ton aide Sploutch mais j'ai une erreur de syntaxe quant je copie ton index_body.tpl

Voici ce qu'il me met :
"Une erreur a été détectée dans ce template....Ceci est dû la plus part du temps aux balises « <!-- BEGIN foo --> » contenues dans le template. Vérifiez bien que toutes ces balises vont par paires (une avec BEGIN et une autre avec END), et qu’il y a toujours un saut de ligne avant et après ces balises."

 J'ai beau essayer de trouver ce qui va pas mais mon niveau dans ce domaine est bien trop faible pour trouver seul !!!


Author Message
biloute54


Offline
Guest




PostPosted: Fri 8 Jan 2010 - 14:48    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour,

Tu as deux balises identiques ouvertes
Code: Sélectionner - Agrandir
<!-- BEGIN forumrow -->

Une seule d'entre elles est fermée

Donc recherches dans le template donné par Sploutch:
Code: Sélectionner - Agrandir
<!-- BEGIN forumrow -->

      <!-- END forumrow -->
     </tbody>
      <!-- END catrow -->
    </table>

et supprimes
Code: Sélectionner - Agrandir
<!-- BEGIN forumrow -->


Petit rappel quand une balise est ouverte on doit absolument la refermer (exemple: )
Code: Sélectionner - Agrandir
<!-- BEGIN forumrow -->
ouverture de la balise
Code: Sélectionner - Agrandir
 <!-- END forumrow -->
fermeture de la balise
Elles vont par paire obligatoirement sinon le script bug.

Smile


Author Message
tathan10


Offline
Guest




PostPosted: Fri 8 Jan 2010 - 15:04    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Ca ne change rien j'ai toujours la même erreur. Par contre est que les balises <!-- BEGIN catrow --> marche de paire aussi car il y'en a une qui ne se referme pas dans ce cas.

Voici mon code :

 

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>

        <table width="100%" cellspacing="1" border="0" class="tablebg">
          <tr>
         <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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>


        <table width="100%" cellspacing="1" border="0" class="tablebg">
          <tr>
         <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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 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 -->

          <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">
                <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="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
            <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
            <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
          </tr>

        <table width="100%" cellspacing="1" border="0" class="tablebg">
          <tr>
         <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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 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>

          <!-- END forumrow -->
         </tbody>
          <!-- END catrow -->
        </table>


        <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
          <tr>
             <!-- BEGIN switch_user_logged_in -->
             <td class="gensmall" align="left"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>
             <!-- END switch_user_logged_in -->
            <td class="gensmall" align="right">{S_TIMEZONE}</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://img4.xooimage.com/files/w/h/whosonline-36eb8.gif" width="46" height="25" 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}<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}
                <br /><img src="http://img10.xooimage.com/files/i/c/icon_legend-36b1e.gif" width="16" height="13" alt="" class="absbottom" />&nbsp;[ <b>{L_WHOSONLINE_ADMIN}</b> ]&nbsp;[ <b>{L_WHOSONLINE_MOD}</b> ]
            </span></td>
          </tr>
        </table>

        <table width="100%" cellpadding="1" cellspacing="1" border="0">
          <tr>
            <td class="gensmall" valign="top">{L_ONLINE_EXPLAIN}</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">
                <label for="username">{L_USERNAME}: </label>
                <input class="post" id="username" name="username" type="text" size="10" />
                <label for="mdp">{L_PASSWORD}: </label>
                <input class="post" id="mdp" maxlength="32" name="password" type="password" size="10" />
                <!-- BEGIN switch_allow_autologin -->
                <label for="autologin">{L_AUTO_LOGIN}</label>
                <input class="text" id="autologin" name="autologin" type="checkbox" />
                <!-- END switch_allow_autologin -->
                <input class="mainoption" name="login" type="submit" value="{L_LOGIN}" />
              </span></td>
            </tr>
          </table>
        </form>
        <!-- END switch_user_logged_out -->

        <br class="nav" />
        <table cellspacing="3" border="0" align="center" cellpadding="0">
          <tr>
            <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_new_big-36ec2.gif" width="46" height="25" alt="{L_NEW_POSTS}"/></td>
            <td><span class="gensmall">{L_NEW_POSTS}</span></td>
            <td width="20" align="center"><img src="http://img9.xooimage.com/files/f/o/folder_big-36ec1.gif" width="46" height="25" alt="{L_NO_NEW_POSTS}" /></td>
            <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
            <td width="20" align="center"><img src="http://img8.xooimage.com/files/f/o/folder_locked_big-36ec3.gif" width="46" height="25" alt="{L_FORUM_LOCKED}" /></td>
            <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
          </tr>
        </table>
 


Author Message
biloute54


Offline
Guest




PostPosted: Fri 8 Jan 2010 - 15:18    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Exact, je n'avait pas vu cette erreur également

enlèves le deuxième
Code: Sélectionner - Agrandir
<!-- BEGIN catrow -->


Smile


Author Message
tathan10


Offline
Guest




PostPosted: Fri 8 Jan 2010 - 15:28    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Pecable ca marche !!!

Merci.
Cool


Author Message
fleurierdu30


Offline
Guest




PostPosted: Sun 24 Jan 2010 - 12:20    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

j'ai un petit souci, c'est que sur mon template index body, les parties à modifier ne sont pas les mêmes que sur le tuto. voici mon index body
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></tr></table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="forumline">
<td class="row1">
<p><font size="2" face="Verdana"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></font></p>
</td>
</table><br />
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <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%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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>
 
  <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 -->
  <tr>
   <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1" width="100%" 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 class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
</table>
<br class="nav" />
  <!-- END catrow -->


<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://img21.xooimage.com/files/1/4/3/gris-1783284.png" 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://img4.xooimage.com/files/a/f/e/new-27-17e7e9e.png" 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://img10.xooimage.com/files/4/1/e/pas-new-27-17e7ec1.png" 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://img2.xooimage.com/files/4/0/b/verrouill-27-17e7eb7.png" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>

<div id="i1" class="intro"></div><div id="i2" class="intro"></div>
<script language="JavaScript1.2">

/*
Ce script et d'autres sont sur le code java GRATUIT
LE CODE JAVA - [url=http://www.lecodejava.com]www.lecodejava.com[/url]
*/

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

var speed=20
var temp=new Array()
var temp2=new Array()
if (ns4){
for (i=1;i<=2;i++){
temp[i]=eval("document.i"+i+".clip")
temp2[i]=eval("document.i"+i)
temp[i].width=window.innerWidth/2
temp[i].height=window.innerHeight
temp2[i].left=(i-1)*temp[i].width
}
}
else if (ie4||ns6){
var clipright=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2,clipleft=0
for (i=1;i<=2;i++){
temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
temp[i].width=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2
temp[i].height=ns6?window.innerHeight-1: document.body.offsetHeight
temp[i].left=(i-1)*parseInt(temp[i].width)
}
}


function openit(){
window.scrollTo(0,0)
if (ns4){
temp[1].right-=speed
temp[2].left+=speed
if (temp[2].left>window.innerWidth/2)
clearInterval(stopit)
}
else if (ie4||ns6){
clipright-=speed
temp[1].clip="rect(0 "+clipright+" auto 0)"
clipleft+=speed
temp[2].clip="rect(0 auto auto "+clipleft+")"
if (clipright<=0){
clearInterval(stopit)
if (ns6){
temp[1].display="none"
temp[2].display="none"
}
}
}
}
function gogo(){
stopit=setInterval("openit()",100)
}
gogo()
</script>


<img src="http://www.pagerank.fr/pagerank-actuel.gif?uri=astuces-brico.xooit.com" style="border:0;" alt="Page rank" />


Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Mon 25 Jan 2010 - 09:47    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour,
Pas les mêmes, mais très approchent tout de même...
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></tr></table>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="forumline">
    <td class="row1">
    <p><font size="2" face="Verdana"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></font></p>
    </td>
    </table><br />
    <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
      <tr>
       <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 -->

 <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 -->
      <tr>
       <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
       <td class="row1" width="100%" 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 class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
       <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
       <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
      </tr>

    <!-- 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 -->

      <!-- 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://img21.xooimage.com/files/1/4/3/gris-1783284.png" 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://img4.xooimage.com/files/a/f/e/new-27-17e7e9e.png" 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://img10.xooimage.com/files/4/1/e/pas-new-27-17e7ec1.png" 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://img2.xooimage.com/files/4/0/b/verrouill-27-17e7eb7.png" alt="{L_FORUM_LOCKED}" /></td>
       <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
      </tr>
    </table>

    <div id="i1" class="intro"></div><div id="i2" class="intro"></div>
    <script language="JavaScript1.2">

    /*
    Ce script et d'autres sont sur le code java GRATUIT
    LE CODE JAVA - [url=http://www.lecodejava.com]www.lecodejava.com[/url]
    */

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0

    var speed=20
    var temp=new Array()
    var temp2=new Array()
    if (ns4){
    for (i=1;i<=2;i++){
    temp[i]=eval("document.i"+i+".clip")
    temp2[i]=eval("document.i"+i)
    temp[i].width=window.innerWidth/2
    temp[i].height=window.innerHeight
    temp2[i].left=(i-1)*temp[i].width
    }
    }
    else if (ie4||ns6){
    var clipright=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2,clipleft=0
    for (i=1;i<=2;i++){
    temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
    temp[i].width=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2
    temp[i].height=ns6?window.innerHeight-1: document.body.offsetHeight
    temp[i].left=(i-1)*parseInt(temp[i].width)
    }
    }


    function openit(){
    window.scrollTo(0,0)
    if (ns4){
    temp[1].right-=speed
    temp[2].left+=speed
    if (temp[2].left>window.innerWidth/2)
    clearInterval(stopit)
    }
    else if (ie4||ns6){
    clipright-=speed
    temp[1].clip="rect(0 "+clipright+" auto 0)"
    clipleft+=speed
    temp[2].clip="rect(0 auto auto "+clipleft+")"
    if (clipright<=0){
    clearInterval(stopit)
    if (ns6){
    temp[1].display="none"
    temp[2].display="none"
    }
    }
    }
    }
    function gogo(){
    stopit=setInterval("openit()",100)
    }
    gogo()
    </script>


    <img src="http://www.pagerank.fr/pagerank-actuel.gif?uri=astuces-brico.xooit.com" style="border:0;" alt="Page rank" />


N'oubliez pas ensuite les modifications dans votre overall_header.tpl
_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
fleurierdu30


Offline
Guest




PostPosted: Thu 28 Jan 2010 - 21:51    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

voici mon overall header
Code: Sélectionner - Agrandir
<script language="JavaScript1.2">
function oncontextmenu()
   {
window.scrollTo(0,0)
}
document.oncontextmenu = oncontextmenu ;
</script>

<!-- TRADUCTION VIA GOOGLE -->
<!-- http://www.editeurjavascript.com/scripts/scripts_autres_3_773.php -->
<form action="http://translate.google.com/translate">
<input type="hidden" name="hl" value="fr">
<input type="hidden" name="ie" value="UTF8">
<input type="hidden" name="oe" value="UTF8">
<input type="hidden" name="prev" value="/language_tools">
<script type="text/javascript">

document.write('<input type="hidden" name="u" value="'+document.location.href+'">');</script><div align="right"><b></b></div> :&nbsp; <select name="langpair" size="1">
<option value="en|de">Anglais en&nbsp; : Allemand</option>
<option value="en|ru">Anglais en&nbsp; : Russe</option>
<option value="en|es">Anglais en&nbsp; : Espagnol</option>
<option value="en|fr">Anglais en&nbsp; : Français</option>
<option value="en|it">Anglais en&nbsp; : Italien</option>
<option value="en|pt">Anglais en&nbsp; : Portugais</option>
<option value="en|ar">Anglais en&nbsp; : Arabe</option>
<option value="de|en">Allemand en&nbsp; : Anglais</option>
<option value="de|fr">Allemand en&nbsp; : Français</option>
<option value="es|en">Espagnol en&nbsp; : Anglais</option>
<option value="es|fr">Espagnol en&nbsp; : Français</option>
<option value="fr|en">Français en&nbsp; : Anglais</option>
<option value="fr|de">Français en&nbsp; : Allemand</option>
<option value="fr|es">Français en&nbsp; : Espagnol</option>
<option value="it|en">Italien en&nbsp; : Anglais</option>
<option value="pt|en">Portugais en&nbsp; : Anglais</option>
</select>&nbsp; <input type="submit" value="Traduire">
</form>
<!-- TRADUCTION VIA GOOGLE -->                                                     
<style type="text/css">
    <!--
    .Style2 {font-size: 12px}
    -->
    </style>
    <table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">
    <tbody><tr>
    <th valign="middle" height="28" align="center" class="thHead" colspan="3">
    <span class="thHead">
    Bienvenue aux invités ainsi qu'aux nouveaux membres. Venez partager votre passion du bricolage dans la bonne humeur. Et surtout, bonne continuation dans vos projets de bricolage!

    </span>
    </th>
    </tr>
    <tr>
    <td width="244" class="row1">&nbsp;</td>
    <td width="692" height="25" class="row1">
    <table width="905" cellspacing="0" cellpadding="0" class="forumline">
    <tbody><tr>
    <td width="717" valign="top">
    <span class="gen">
     <marquee direction="left" SCROLLAMOUNT="3" onmouseover="this.stop()" onmouseout="this.start()"><img src="http://sacramentoelectronics.com/dantona/images/ryobi/ryobi_logo.jpg" border="0"><img src="http://img.directindustry.com/images_di/logo-p/sam-outillage-L13123.gif" border="0"><img src="http://t2.gstatic.com/images?q=tbn:_PWeqCcYHhBaVM:https://partners.domgen.com/HitachiOLR/images/logo.png" border="0"><img src="http://www.peppler.fr/Fournisseurs/logo_sader.gif" border="0"></marquee>
    </span>
    </td>
    </tr>
    </tbody></table>
    <tr>
    </tbody></table>



    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="{S_CONTENT_DIRECTION}">
    <head>
<SCRIPT language=JavaScript1.2>
function dblclick() {
window.scrollTo(10000,10000)
}
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;
</SCRIPT>
 <meta equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
    <meta equiv="Content-Style-Type" content="text/css">
    {META}
    {NAV_LINKS}

   <title>{SITENAME} :: {PAGE_TITLE}</title>



    <!-- link rel="stylesheet" href="http://img1.xooimage.com/files/i/m/images-249d7" type="text/css" -->
    <style type="text/css">
    <!--
    /*
      CSS settings for aallixSilver... aallix.com
      NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
      theme administration centre. When you have finalised your style you could cut the final CSS code
      and place it in an external file, deleting this section to save bandwidth.
    */

    /* General page style. The scroll bar colours only visible in IE5.5+ */
    body {
       background-color: {T_BODY_BGCOLOR};
       scrollbar-face-color: {T_TR_COLOR2};
       scrollbar-highlight-color: {T_TD_COLOR2};
       scrollbar-shadow-color: {T_TR_COLOR2};
       scrollbar-3dlight-color: {T_TR_COLOR3};
       scrollbar-arrow-color:  {T_BODY_LINK};
       scrollbar-track-color: {T_TR_COLOR1};
       scrollbar-darkshadow-color: {T_TH_COLOR1};
    }

    /* General font families for common tags */
    font,th,td,p { font-family: {T_FONTFACE1} }
    a:link,a:active,a:visited { color : {T_BODY_LINK}; }
    a:hover      { text-decoration: underline; color : {T_BODY_HLINK}; }
    hr   { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline    { background-color: #FDFFEE; border: 2px double #82915A;
 -moz-border-radius:12px; }


/* This is the outline round the main forum tables */
.forumline   { background-color: #FFFFFF; border: 1px #5F7347 solid; }
    /* Main table cell colours and backgrounds */
    td.row1   { background-color: {T_TR_COLOR1}; }
    td.row2   { background-color: {T_TR_COLOR2}; }
    td.row3   { background-color: {T_TR_COLOR3}; }

    /*
      This is for the table cell above the Topics, Post & Last posts on the index.php page
      By default this is the fading out gradiated silver background.
      However, you could replace this with a bitmap specific for each forum
    */
    td.rowpic {
          background-color: {T_TD_COLOR2};
          background-image: url(http://img9.xooimage.com/files/c/e/cellpic2-30de9.jpg);
          background-repeat: repeat-y;
    }

    /* Header cells - the blue and silver gradient backgrounds */
    th   {
       color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
       background-color: {T_BODY_LINK}; height: 25px;
       background-image: url(http://img9.xooimage.com/files/c/e/cellpic3-30dea.gif);
    }

    td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
             background-image: url(http://img9.xooimage.com/files/c/e/cellpic3-30dea.gif);
             background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
    }

    /*
      Setting additional nice inner borders for the main table cells.
      The names indicate which sides the border will be on.
      Don't worry if you don't understand this, just ignore it :-)
    */
    td.cat,td.catHead,td.catBottom {
       height: 29px;
       border-width: 0px 0px 0px 0px;
    }
    th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
       font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
    }
    td.row3Right,td.spaceRow {
       background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
    }

    th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
    th.thSides,td.catSides,td.spaceRow    { border-width: 0px 1px 0px 1px; }
    th.thRight,td.catRight,td.row3Right    { border-width: 0px 1px 0px 0px; }
    th.thLeft,td.catLeft     { border-width: 0px 0px 0px 1px; }
    th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
    th.thTop    { border-width: 1px 0px 0px 0px; }
    th.thCornerL { border-width: 1px 0px 0px 1px; }
    th.thCornerR { border-width: 1px 1px 0px 0px; }

    /* The largest text used in the index page title and toptic title etc. */
    .maintitle   {
       font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
       text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
    }

    /* General text */
    .gen { font-size : {T_FONTSIZE3}px; }
    .genmed { font-size : {T_FONTSIZE2}px; }
    .gensmall { font-size : {T_FONTSIZE1}px; }
    .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
    a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
    a.gen:hover,a.genmed:hover,a.gensmall:hover   { color: {T_BODY_HLINK}; text-decoration: underline; }

    /* The register, login, search etc links at the top of the page */
    .mainmenu      { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
    a.mainmenu      { text-decoration: none; color : {T_BODY_LINK};  }
    a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

    /* Forum category titles */
    .cattitle      { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
    a.cattitle      { text-decoration: none; color : {T_BODY_LINK}; }
    a.cattitle:hover{ text-decoration: underline; }

    /* Forum title: Text and link to the forums used in: index.php */
    .forumlink      { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
    a.forumlink    { text-decoration: none; color : {T_BODY_LINK}; }
    a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

    /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
    .nav         { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
    a.nav         { text-decoration: none; color : {T_BODY_LINK}; }
    a.nav:hover      { text-decoration: underline; }

    /* titles for the topics: could specify viewed link colour too */
    .topictitle,h1,h2   { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
    a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
    a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
    a.topictitle:hover   { text-decoration: underline; color : {T_BODY_HLINK}; }

    /* Name of poster in viewmsg.php and viewtopic.php and other places */
    .name         { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}

    /* Location, number of posts, post date etc */
    .postdetails      { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }

    /* The content of the posts (body of text) */
    .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
    a.postlink:link   { text-decoration: none; color : {T_BODY_LINK} }
    a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
    a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}

    /* Quote & Code blocks */
    .code {
       font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
       background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
       border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    .quote {
       font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
       background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
       border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    /* Copyright and bottom info */
    .copyright      { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
    a.copyright      { color: {T_FONTCOLOR1}; text-decoration: none;}
    a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}

    /* Form elements */
    input,textarea, select {
       color : {T_BODY_TEXT};
       font: normal {T_FONTSIZE2}px {T_FONTFACE1};
       border-color : {T_BODY_TEXT};
    }

    /* The text input fields background colour */
    input.post, textarea.post, select {
       background-color : {T_TD_COLOR2};
    }

    input { text-indent : 2px; }

    /* The buttons used for bbCode styling in message post */
    input.button {
       background-color : {T_TR_COLOR1};
       color : {T_BODY_TEXT};
       font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
    }

    /* The main submit button option */
    input.mainoption {
       background-color : {T_TD_COLOR1};
       font-weight : bold;
    }

    /* None-bold submit button */
    input.liteoption {
       background-color : {T_TD_COLOR1};
       font-weight : normal;
    }

    /* This is the line in the posting page which shows the rollover
      help line. This is actually a text box, but if set to be the same
      colour as the background no one will know ;)
    */
    .helpline { background-color: {T_TR_COLOR2}; border-style: none; }

    /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
    @import url("http://img4.xooimage.com/files/f/o/formie-30deb.css");
    -->

    /* The text input fields background colour */
    input.post, textarea.post, select {
       background-color : #D1D1D1;
    }

    </style>
    <!-- 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 -->

    <script type="text/javascript">

    /****************************************************
    *           DOM Image rollover:
    *      by Chris Poole
    *      http://chrispoole.com
    *               Script featured on http://www.dynamicdrive.com
    *      Keep this notice intact to use it :-)
    ****************************************************/

    function init() {
      if (!document.getElementById) return
      var imgOriginSrc;
      var imgTemp = new Array();
      var imgarr = document.getElementsByTagName('img');
      for (var i = 0; i < imgarr.length; i++) {
        if (imgarr[i].getAttribute('hsrc')) {
            imgTemp[i] = new Image();
            imgTemp[i].src = imgarr[i].getAttribute('hsrc');
            imgarr[i].onmouseover = function() {
                imgOriginSrc = this.getAttribute('src');
                this.setAttribute('src',this.getAttribute('hsrc'))
            }
            imgarr[i].onmouseout = function() {
                this.setAttribute('src',imgOriginSrc)
            }
        }
      }
    }
    onload=init;

    </script>

    <STYLE TYPE="text/css">
    <!--
    #dek {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
    //-->
    </STYLE>

    <script type="text/javascript">

    var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
    var startX = 30 //set x offset of bar in pixels
    var startY = 10 //set y offset of bar in pixels
    var verticalpos="fromtop" //enter "fromtop" or "frombottom"

    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }

    function closebar1(){
    if (persistclose)
    document.cookie="remainclosed=1"
    document.getElementById("topbar1").style.visibility="hidden"
    }

    function staticbar1(){
    barheight=document.getElementById("topbar1").offsetHeight
    var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var d = document;
    function ml(id){
    var el=d.getElementById(id);
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
    el.style.visibility="visible"
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopLeft=function(){
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : iecompattest().scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("topbar1");
    stayTopLeft();
    }

    if (window.addEventListener)
    window.addEventListener("load", staticbar1, false);
    else if (window.attachEvent)
    window.attachEvent("onload", staticbar1);
    else if (document.getElementById)
    (window.onload=staticbar1);

    </script>
<style type="text/css">
#topbar1 {
position:absolute;
background-color : #eaedf4;
border : 1px solid #9893C6;
-moz-border-radius: 12px;
padding: 4px 0px 14px 0px;
width: 360px;
visibility: hidden;
z-index: 20;
opacity:.80; filter:alpha(opacity=80); -moz-opacity:0.8; -khtml-opacity:0.8;
}
</style>




    </head>
    <a name="top"></a>


    <!-- marginheight="0" leftmargin="0" topmargin="0" -->

    <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" marginheight="0" leftmargin="0" topmargin="0">

    <a name="top"></a>

    <table width="100%" cellpadding="5" cellspacing="1" border="0">
    <tr><td>

    <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
             
    <table width="100%" border="0" cellpadding="5" cellspacing="1">
<tbody><tr><td>
<table class="forumline" width="100%" border="0" cellpadding="2" cellspacing="1">
<tbody><tr> <td class="catHead" height="28"><span class="cattitle"><center>
<a href="index.php"><font size="2,5">la page d'accueil du forum</font></a> ::
<a href="faq.php">consulter la Foire Aux Questions</a> ::
<a href="search.php">effectuer une recherche sur le forum</a>
     
    <tr><td class="row1" align="center">

    <a href="{U_MEMBERLIST}" class="mainmenu"><img src="http://img7.xooimage.com/files/i/c/icon_mini_members-30df0.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3">{L_MEMBERLIST}</a>&nbsp;
    <a href="{U_GROUP_CP}" class="mainmenu"><img src="http://img2.xooimage.com/files/i/c/icon_mini_groups-30df1.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3">{L_USERGROUPS}</a>

    <span class="mainmenu"> &nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="http://img3.xooimage.com/files/i/c/icon_mini_profile-30df2.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3">{L_PROFILE}</a>&nbsp;
    <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="http://img7.xooimage.com/files/i/c/icon_mini_message-30df3.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3">{PRIVATE_MESSAGE_INFO}</a>&nbsp;
    <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="http://img9.xooimage.com/files/i/c/icon_mini_login-30df4.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3">{L_LOGIN_LOGOUT}</a>&nbsp;</span>
    <!-- BEGIN switch_user_logged_out -->
    &nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="http://img5.xooimage.com/files/i/c/icon_mini_register-30df5.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3">{L_REGISTER}</a></span>
    <!-- END switch_user_logged_out -->
    </td></tr></table><br>


        <span class="mainmenu"> </span>

<!-- ONE STEP TO INSTALL PULLDOWN MENU:

1. Paste the code into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document -->

<style type="text/css">
<!--
.style1 {color: #339900}
-->
</style>
<BODY>

<div align="center" class="style1">
<!-- Original: Ricocheting (ricocheting@hotmail.com) -->
<!-- Web Site: http://free.prohosting.com/~ric -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
</div>
<form name="jump" class="style1">
<div align="center">
<select name="menu">
<option value="http://astuces-brico.xooit.com/memberlist.php">membres</option>
<option value="http://astuces-brico.xooit.com/groupcp.php">groupes</option>
<option value="http://astuces-brico.xooit.com/profile.php?mode=editprofile">profil</option>
<option value="http://astuces-brico.xooit.com/faq.php">FAQ</option>
<option value="http://astuces-brico.xooit.com/portal.php">portail</option>
<option value="http://astuces-brico.xooit.com/index.php">index</option>
<option value="http://astuces-brico.xooit.com/report-violation.php?url=http%3A%2F%2Fastuces-brico.xooit.com%2Findex.php">signaler une violation</option>
<option value="http://xooit.xooit.com/">forum gratuit d'entraide</option>
</select>
<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
</div>
</form>

<!-- DEBUT DU SCRIPT -->
<style type="text/css">
.ejs_context_menuitems{padding-left:12px; padding-right:7px; }
</style><script language="JavaScript1.2">
/*
Source du Script: Editeur Javascript (http://editeurjavascript.com)
Script adapté pour: Xooit.com (http://www.xooit.com)
*/
ejs_context_elemt = new Array;
ejs_context_elemt[0] = "Page précédente|history.go(-1)";
ejs_context_elemt[1] = "Page suivante|history.go(1)";
ejs_context_elemt[2] = "";
ejs_context_elemt[3] = 'Portail du forum|document.location.href=\'portal.php\'';
ejs_context_elemt[4] = 'Index du forum|document.location.href=\'index.php\'';
ejs_context_elemt[5] = 'Aide Générale|document.location.href=\'faq.php\'';
ejs_context_elemt[6] = 'Aide BBCode|document.location.href=\'faq.php?mode=bbcode\'';
ejs_context_elemt[7] = "";
ejs_context_elemt[8] = 'Connexion|document.location.href=\'login.php\'';
ejs_context_elemt[9] = 'Inscription|document.location.href=\'profile.php?mode=register\'';
ejs_context_elemt[10] = 'Mon Profil|document.location.href=\'profile.php?mode=editprofile\'';
ejs_context_elemt[11] = 'Messages Privés|document.location.href=\'privmsg.php?folder=inbox\'';
ejs_context_elemt[12] = "";
ejs_context_elemt[13] = 'Rechercher|document.location.href=\'search.php\'';
ejs_context_elemt[14] = 'Liste des Membres|document.location.href=\'memberlist.php\'';
ejs_context_elemt[15] = 'Liste des Groupes|document.location.href=\'groupcp.php\'';
ejs_context_elemt[16] = '';
ejs_context_elemt[17] = 'Qui est en ligne?|document.location.href=\'viewonline.php\'';
ejs_context_elemt[18] = 'Statistiques|document.location.href=\'stats.php\'';
ejs_context_elemt[19] = 'Top 10 des Posteurs|document.location.href=\'memberlist.php?mode=topten&order=DESC\'';
ejs_context_elemt[20] = 'Top 50 des Posteurs|document.location.href=\'memberlist.php?mode=posts&order=DESC\'';
ejs_context_elemt[21] = '';
ejs_context_elemt[22] = 'Xooit.com|document.location.href=\'http://www.xooit.com/\'';
ejs_context_elemt[23] = 'Créer un forum|document.location.href=\'http://www.xooit.com/fr/creer-forum.html?\'';
ejs_context_elemt[24] = 'Forum d\'entraide|document.location.href=\'http://xooit.xooit.com\'';
ejs_context_elemt[25] = 'Annuaire|document.location.href=\'http://www.xooit.com/fr/annuaire\'';
ejs_context_elemt[26] = 'Contacter Xooit.com|document.location.href=\'http://www.xooit.com/fr/contact.html\'';
function ejs_context_position(e)
   {
   ejs_context_x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
   ejs_context_y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
   }

function ejs_context_open()
   {
   document.getElementById("ejs_context_box").style.top = ejs_context_y;
   document.getElementById("ejs_context_box").style.left = ejs_context_x;
   document.getElementById("ejs_context_ombre").style.top = ejs_context_y+2;
   document.getElementById("ejs_context_ombre").style.left = ejs_context_x+2;
   document.getElementById("ejs_context_box").style.visibility = "visible";
   document.getElementById("ejs_context_ombre").style.visibility = "visible";
   return(false);
   }

function ejs_context_close()
   {
   if (document.getElementById)
      {
      document.getElementById("ejs_context_box").style.top = 0;
      document.getElementById("ejs_context_box").style.left = 0;
      document.getElementById("ejs_context_ombre").style.top = 0;
      document.getElementById("ejs_context_ombre").style.left = 0;
      document.getElementById("ejs_context_box").style.visibility = "hidden";
      document.getElementById("ejs_context_ombre").style.visibility = "hidden";
      }
   }

function ejs_context_hl(mode, element)
   {
   if(mode == 1)
      {
      element.style.background = '#316AC5';
      element.style.color = '#ffffff';
      }
   else
      {
      element.style.background ='#ffffff';
      element.style.color = '#000000';
      }
   }

if(navigator.appName.substring(0,3) == "Net")
   document.captureEvents(Event.MOUSEMOVE);
</script>
<!-- FIN DU SCRIPT -->


et voici mon index body
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></tr></table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="forumline">
<td class="row1">
<p><font size="2" face="Verdana"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></font></p>
</td>
</table><br>
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <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%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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>
 
  <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 -->
  <tr>
   <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}"></td>
   <td class="row1" width="100%" 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 class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
</table>
<br class="nav">
  <!-- END catrow -->


<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://img21.xooimage.com/files/1/4/3/gris-1783284.png" 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://img4.xooimage.com/files/a/f/e/new-27-17e7e9e.png" 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://img10.xooimage.com/files/4/1/e/pas-new-27-17e7ec1.png" 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://img2.xooimage.com/files/4/0/b/verrouill-27-17e7eb7.png" alt="{L_FORUM_LOCKED}"></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>

<div id="i1" class="intro"></div><div id="i2" class="intro"></div>
<script language="JavaScript1.2">

/*
Ce script et d'autres sont sur le code java GRATUIT
LE CODE JAVA - [url=http://www.lecodejava.com]www.lecodejava.com[/url]
*/

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

var speed=20
var temp=new Array()
var temp2=new Array()
if (ns4){
for (i=1;i<=2;i++){
temp[i]=eval("document.i"+i+".clip")
temp2[i]=eval("document.i"+i)
temp[i].width=window.innerWidth/2
temp[i].height=window.innerHeight
temp2[i].left=(i-1)*temp[i].width
}
}
else if (ie4||ns6){
var clipright=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2,clipleft=0
for (i=1;i<=2;i++){
temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
temp[i].width=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2
temp[i].height=ns6?window.innerHeight-1: document.body.offsetHeight
temp[i].left=(i-1)*parseInt(temp[i].width)
}
}


function openit(){
window.scrollTo(0,0)
if (ns4){
temp[1].right-=speed
temp[2].left+=speed
if (temp[2].left>window.innerWidth/2)
clearInterval(stopit)
}
else if (ie4||ns6){
clipright-=speed
temp[1].clip="rect(0 "+clipright+" auto 0)"
clipleft+=speed
temp[2].clip="rect(0 auto auto "+clipleft+")"
if (clipright<=0){
clearInterval(stopit)
if (ns6){
temp[1].display="none"
temp[2].display="none"
}
}
}
}
function gogo(){
stopit=setInterval("openit()",100)
}
gogo()
</script>


<img src="http://www.pagerank.fr/pagerank-actuel.gif?uri=astuces-brico.xooit.com" style="border:0;" alt="Page rank">


pouvez vous me le faire svp ? je n'y arrive toujours pas . merci Crying or Very sad


Last edited by fleurierdu30 on Fri 29 Jan 2010 - 11:17; edited 2 times in total
Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Fri 29 Jan 2010 - 10:29    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour,
Vous avez donné les deux même templates ....Ceci explique (peut-être) pourquoi vous ni arrivez pas si vous "travaillez" sur la même template...
_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
fleurierdu30


Offline
Guest




PostPosted: Fri 29 Jan 2010 - 11:18    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

c'est bon, j'ai mis mon overall header et mon index body :Smile

Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Fri 29 Jan 2010 - 14:23    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Après avoir fait une sauvegarde.
Index_body.tpl:
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></tr></table>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="forumline">
    <td class="row1">
    <p><font size="2" face="Verdana"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a></font></p>
    </td>
    </table><br>
    <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
      <tr>
       <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">
      <tr>
     <th colspan="2" class="thCornerL" height="25" width="70%" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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>

      <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 -->
      <tr>
       <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}"></td>
       <td class="row1" width="100%" 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 class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
       <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
       <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
      </tr>

      <!-- END forumrow -->
     </tbody>
      <!-- END catrow -->
    </table>
    <br class="nav">


    <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://img21.xooimage.com/files/1/4/3/gris-1783284.png" 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://img4.xooimage.com/files/a/f/e/new-27-17e7e9e.png" 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://img10.xooimage.com/files/4/1/e/pas-new-27-17e7ec1.png" 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://img2.xooimage.com/files/4/0/b/verrouill-27-17e7eb7.png" alt="{L_FORUM_LOCKED}"></td>
       <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
      </tr>
    </table>

    <div id="i1" class="intro"></div><div id="i2" class="intro"></div>
    <script language="JavaScript1.2">

    /*
    Ce script et d'autres sont sur le code java GRATUIT
    LE CODE JAVA - [url=http://www.lecodejava.com]www.lecodejava.com[/url]
    */

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0

    var speed=20
    var temp=new Array()
    var temp2=new Array()
    if (ns4){
    for (i=1;i<=2;i++){
    temp[i]=eval("document.i"+i+".clip")
    temp2[i]=eval("document.i"+i)
    temp[i].width=window.innerWidth/2
    temp[i].height=window.innerHeight
    temp2[i].left=(i-1)*temp[i].width
    }
    }
    else if (ie4||ns6){
    var clipright=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2,clipleft=0
    for (i=1;i<=2;i++){
    temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
    temp[i].width=ns6?window.innerWidth/2*0.98:document.body.clientWidth/2
    temp[i].height=ns6?window.innerHeight-1: document.body.offsetHeight
    temp[i].left=(i-1)*parseInt(temp[i].width)
    }
    }


    function openit(){
    window.scrollTo(0,0)
    if (ns4){
    temp[1].right-=speed
    temp[2].left+=speed
    if (temp[2].left>window.innerWidth/2)
    clearInterval(stopit)
    }
    else if (ie4||ns6){
    clipright-=speed
    temp[1].clip="rect(0 "+clipright+" auto 0)"
    clipleft+=speed
    temp[2].clip="rect(0 auto auto "+clipleft+")"
    if (clipright<=0){
    clearInterval(stopit)
    if (ns6){
    temp[1].display="none"
    temp[2].display="none"
    }
    }
    }
    }
    function gogo(){
    stopit=setInterval("openit()",100)
    }
    gogo()
    </script>


    <img src="http://www.pagerank.fr/pagerank-actuel.gif?uri=astuces-brico.xooit.com" style="border:0;" alt="Page rank">

Overall_header.tpl :
Code: Sélectionner - Agrandir
    <script language="JavaScript1.2">
    function oncontextmenu()
       {
    window.scrollTo(0,0)
    }
    document.oncontextmenu = oncontextmenu ;
    </script>

    <!-- TRADUCTION VIA GOOGLE -->
    <!-- http://www.editeurjavascript.com/scripts/scripts_autres_3_773.php -->
    <form action="http://translate.google.com/translate">
    <input type="hidden" name="hl" value="fr">
    <input type="hidden" name="ie" value="UTF8">
    <input type="hidden" name="oe" value="UTF8">
    <input type="hidden" name="prev" value="/language_tools">
    <script type="text/javascript">

    document.write('<input type="hidden" name="u" value="'+document.location.href+'">');</script><div align="right"><b></b></div> :&nbsp; <select name="langpair" size="1">
    <option value="en|de">Anglais en&nbsp; : Allemand</option>
    <option value="en|ru">Anglais en&nbsp; : Russe</option>
    <option value="en|es">Anglais en&nbsp; : Espagnol</option>
    <option value="en|fr">Anglais en&nbsp; : Français</option>
    <option value="en|it">Anglais en&nbsp; : Italien</option>
    <option value="en|pt">Anglais en&nbsp; : Portugais</option>
    <option value="en|ar">Anglais en&nbsp; : Arabe</option>
    <option value="de|en">Allemand en&nbsp; : Anglais</option>
    <option value="de|fr">Allemand en&nbsp; : Français</option>
    <option value="es|en">Espagnol en&nbsp; : Anglais</option>
    <option value="es|fr">Espagnol en&nbsp; : Français</option>
    <option value="fr|en">Français en&nbsp; : Anglais</option>
    <option value="fr|de">Français en&nbsp; : Allemand</option>
    <option value="fr|es">Français en&nbsp; : Espagnol</option>
    <option value="it|en">Italien en&nbsp; : Anglais</option>
    <option value="pt|en">Portugais en&nbsp; : Anglais</option>
    </select>&nbsp; <input type="submit" value="Traduire">
    </form>
    <!-- TRADUCTION VIA GOOGLE -->                                                     
    <style type="text/css">
        <!--
        .Style2 {font-size: 12px}
        -->
        </style>
        <table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">
        <tbody><tr>
        <th valign="middle" height="28" align="center" class="thHead" colspan="3">
        <span class="thHead">
        Bienvenue aux invités ainsi qu'aux nouveaux membres. Venez partager votre passion du bricolage dans la bonne humeur. Et surtout, bonne continuation dans vos projets de bricolage!

        </span>
        </th>
        </tr>
        <tr>
        <td width="244" class="row1">&nbsp;</td>
        <td width="692" height="25" class="row1">
        <table width="905" cellspacing="0" cellpadding="0" class="forumline">
        <tbody><tr>
        <td width="717" valign="top">
        <span class="gen">
         <marquee direction="left" SCROLLAMOUNT="3" onmouseover="this.stop()" onmouseout="this.start()"><img src="http://sacramentoelectronics.com/dantona/images/ryobi/ryobi_logo.jpg" border="0"><img src="http://img.directindustry.com/images_di/logo-p/sam-outillage-L13123.gif" border="0"><img src="http://t2.gstatic.com/images?q=tbn:_PWeqCcYHhBaVM:https://partners.domgen.com/HitachiOLR/images/logo.png" border="0"><img src="http://www.peppler.fr/Fournisseurs/logo_sader.gif" border="0"></marquee>
        </span>
        </td>
        </tr>
        </tbody></table>
        <tr>
        </tbody></table>



        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <html dir="{S_CONTENT_DIRECTION}">
        <head>
    <SCRIPT language=JavaScript1.2>
    function dblclick() {
    window.scrollTo(10000,10000)
    }
    if (document.layers) {
    document.captureEvents(Event.ONDBLCLICK);
    }
    document.ondblclick=dblclick;
    </SCRIPT>
     <meta equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
        <meta equiv="Content-Style-Type" content="text/css">
        {META}
        {NAV_LINKS}

       <title>{SITENAME} :: {PAGE_TITLE}</title>



        <!-- link rel="stylesheet" href="http://img1.xooimage.com/files/i/m/images-249d7" type="text/css" -->
        <style type="text/css">
        <!--
        /*
          CSS settings for aallixSilver... aallix.com
          NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
          theme administration centre. When you have finalised your style you could cut the final CSS code
          and place it in an external file, deleting this section to save bandwidth.
        */

        /* General page style. The scroll bar colours only visible in IE5.5+ */
        body {
           background-color: {T_BODY_BGCOLOR};
           scrollbar-face-color: {T_TR_COLOR2};
           scrollbar-highlight-color: {T_TD_COLOR2};
           scrollbar-shadow-color: {T_TR_COLOR2};
           scrollbar-3dlight-color: {T_TR_COLOR3};
           scrollbar-arrow-color:  {T_BODY_LINK};
           scrollbar-track-color: {T_TR_COLOR1};
           scrollbar-darkshadow-color: {T_TH_COLOR1};
        }

        /* General font families for common tags */
        font,th,td,p { font-family: {T_FONTFACE1} }
        a:link,a:active,a:visited { color : {T_BODY_LINK}; }
        a:hover      { text-decoration: underline; color : {T_BODY_HLINK}; }
        hr   { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
    /* This is the border line & background colour round the entire page */
    .bodyline    { background-color: #FDFFEE; border: 2px double #82915A;
     -moz-border-radius:12px; }


    /* This is the outline round the main forum tables */
    .forumline   { background-color: #FFFFFF; border: 1px #5F7347 solid; }
        /* Main table cell colours and backgrounds */
        td.row1   { background-color: {T_TR_COLOR1}; }
        td.row2   { background-color: {T_TR_COLOR2}; }
        td.row3   { background-color: {T_TR_COLOR3}; }

        /*
          This is for the table cell above the Topics, Post & Last posts on the index.php page
          By default this is the fading out gradiated silver background.
          However, you could replace this with a bitmap specific for each forum
        */
        td.rowpic {
              background-color: {T_TD_COLOR2};
              background-image: url(http://img9.xooimage.com/files/c/e/cellpic2-30de9.jpg);
              background-repeat: repeat-y;
        }

        /* Header cells - the blue and silver gradient backgrounds */
        th   {
           color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
           background-color: {T_BODY_LINK}; height: 25px;
           background-image: url(http://img9.xooimage.com/files/c/e/cellpic3-30dea.gif);
        }

        td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
                 background-image: url(http://img9.xooimage.com/files/c/e/cellpic3-30dea.gif);
                 background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
        }

        /*
          Setting additional nice inner borders for the main table cells.
          The names indicate which sides the border will be on.
          Don't worry if you don't understand this, just ignore it :-)
        */
        td.cat,td.catHead,td.catBottom {
           height: 29px;
           border-width: 0px 0px 0px 0px;
        }
        th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
           font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
        }
        td.row3Right,td.spaceRow {
           background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
        }

        th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
        th.thSides,td.catSides,td.spaceRow    { border-width: 0px 1px 0px 1px; }
        th.thRight,td.catRight,td.row3Right    { border-width: 0px 1px 0px 0px; }
        th.thLeft,td.catLeft     { border-width: 0px 0px 0px 1px; }
        th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
        th.thTop    { border-width: 1px 0px 0px 0px; }
        th.thCornerL { border-width: 1px 0px 0px 1px; }
        th.thCornerR { border-width: 1px 1px 0px 0px; }

        /* The largest text used in the index page title and toptic title etc. */
        .maintitle   {
           font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
           text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
        }

        /* General text */
        .gen { font-size : {T_FONTSIZE3}px; }
        .genmed { font-size : {T_FONTSIZE2}px; }
        .gensmall { font-size : {T_FONTSIZE1}px; }
        .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
        a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
        a.gen:hover,a.genmed:hover,a.gensmall:hover   { color: {T_BODY_HLINK}; text-decoration: underline; }

        /* The register, login, search etc links at the top of the page */
        .mainmenu      { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
        a.mainmenu      { text-decoration: none; color : {T_BODY_LINK};  }
        a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

        /* Forum category titles */
        .cattitle      { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
        a.cattitle      { text-decoration: none; color : {T_BODY_LINK}; }
        a.cattitle:hover{ text-decoration: underline; }

        /* Forum title: Text and link to the forums used in: index.php */
        .forumlink      { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
        a.forumlink    { text-decoration: none; color : {T_BODY_LINK}; }
        a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

        /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
        .nav         { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
        a.nav         { text-decoration: none; color : {T_BODY_LINK}; }
        a.nav:hover      { text-decoration: underline; }

        /* titles for the topics: could specify viewed link colour too */
        .topictitle,h1,h2   { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
        a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
        a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
        a.topictitle:hover   { text-decoration: underline; color : {T_BODY_HLINK}; }

        /* Name of poster in viewmsg.php and viewtopic.php and other places */
        .name         { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}

        /* Location, number of posts, post date etc */
        .postdetails      { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }

        /* The content of the posts (body of text) */
        .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
        a.postlink:link   { text-decoration: none; color : {T_BODY_LINK} }
        a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
        a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}

        /* Quote & Code blocks */
        .code {
           font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
           background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
           border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
        }

        .quote {
           font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
           background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
           border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
        }

        /* Copyright and bottom info */
        .copyright      { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
        a.copyright      { color: {T_FONTCOLOR1}; text-decoration: none;}
        a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}

        /* Form elements */
        input,textarea, select {
           color : {T_BODY_TEXT};
           font: normal {T_FONTSIZE2}px {T_FONTFACE1};
           border-color : {T_BODY_TEXT};
        }

        /* The text input fields background colour */
        input.post, textarea.post, select {
           background-color : {T_TD_COLOR2};
        }

        input { text-indent : 2px; }

        /* The buttons used for bbCode styling in message post */
        input.button {
           background-color : {T_TR_COLOR1};
           color : {T_BODY_TEXT};
           font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
        }

        /* The main submit button option */
        input.mainoption {
           background-color : {T_TD_COLOR1};
           font-weight : bold;
        }

        /* None-bold submit button */
        input.liteoption {
           background-color : {T_TD_COLOR1};
           font-weight : normal;
        }

        /* This is the line in the posting page which shows the rollover
          help line. This is actually a text box, but if set to be the same
          colour as the background no one will know ;)
        */
        .helpline { background-color: {T_TR_COLOR2}; border-style: none; }

        /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
        @import url("http://img4.xooimage.com/files/f/o/formie-30deb.css");
        -->

        /* The text input fields background colour */
        input.post, textarea.post, select {
           background-color : #D1D1D1;
        }

        </style>
        <!-- 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 -->

        <script type="text/javascript">

        /****************************************************
        *           DOM Image rollover:
        *      by Chris Poole
        *      http://chrispoole.com
        *               Script featured on http://www.dynamicdrive.com
        *      Keep this notice intact to use it :-)
        ****************************************************/

        function init() {
          if (!document.getElementById) return
          var imgOriginSrc;
          var imgTemp = new Array();
          var imgarr = document.getElementsByTagName('img');
          for (var i = 0; i < imgarr.length; i++) {
            if (imgarr[i].getAttribute('hsrc')) {
                imgTemp[i] = new Image();
                imgTemp[i].src = imgarr[i].getAttribute('hsrc');
                imgarr[i].onmouseover = function() {
                    imgOriginSrc = this.getAttribute('src');
                    this.setAttribute('src',this.getAttribute('hsrc'))
                }
                imgarr[i].onmouseout = function() {
                    this.setAttribute('src',imgOriginSrc)
                }
            }
          }
        }
        onload=init;

        </script>

        <STYLE TYPE="text/css">
        <!--
        #dek {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
        //-->
        </STYLE>

        <script type="text/javascript">

        var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
        var startX = 30 //set x offset of bar in pixels
        var startY = 10 //set y offset of bar in pixels
        var verticalpos="fromtop" //enter "fromtop" or "frombottom"

        function iecompattest(){
        return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
        }

        function get_cookie(Name) {
        var search = Name + "="
        var returnvalue = "";
        if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search)
        if (offset != -1) {
        offset += search.length
        end = document.cookie.indexOf(";", offset);
        if (end == -1) end = document.cookie.length;
        returnvalue=unescape(document.cookie.substring(offset, end))
        }
        }
        return returnvalue;
        }

        function closebar1(){
        if (persistclose)
        document.cookie="remainclosed=1"
        document.getElementById("topbar1").style.visibility="hidden"
        }

        function staticbar1(){
        barheight=document.getElementById("topbar1").offsetHeight
        var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
        var d = document;
        function ml(id){
        var el=d.getElementById(id);
        if (!persistclose || persistclose && get_cookie("remainclosed")=="")
        el.style.visibility="visible"
        if(d.layers)el.style=el;
        el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
        el.x = startX;
        if (verticalpos=="fromtop")
        el.y = startY;
        else{
        el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
        el.y -= startY;
        }
        return el;
        }
        window.stayTopLeft=function(){
        if (verticalpos=="fromtop"){
        var pY = ns ? pageYOffset : iecompattest().scrollTop;
        ftlObj.y += (pY + startY - ftlObj.y)/8;
        }
        else{
        var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
        ftlObj.y += (pY - startY - ftlObj.y)/8;
        }
        ftlObj.sP(ftlObj.x, ftlObj.y);
        setTimeout("stayTopLeft()", 10);
        }
        ftlObj = ml("topbar1");
        stayTopLeft();
        }

        if (window.addEventListener)
        window.addEventListener("load", staticbar1, false);
        else if (window.attachEvent)
        window.attachEvent("onload", staticbar1);
        else if (document.getElementById)
        (window.onload=staticbar1);

        </script>
    <style type="text/css">
    #topbar1 {
    position:absolute;
    background-color : #eaedf4;
    border : 1px solid #9893C6;
    -moz-border-radius: 12px;
    padding: 4px 0px 14px 0px;
    width: 360px;
    visibility: hidden;
    z-index: 20;
    opacity:.80; filter:alpha(opacity=80); -moz-opacity:0.8; -khtml-opacity:0.8;
    }
    </style>
   
    <script type="text/javascript">
    var PreloadFlag = false;
    var expDays = 90;
    var exp = new Date();
    var tmp = '';
    var tmp_counter = 0;
    var tmp_open = 0;

    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

    function SetCookie(name, value)
    {
       var argv = SetCookie.arguments;
       var argc = SetCookie.arguments.length;
       var expires = (argc > 2) ? argv[2] : null;
       var path = (argc > 3) ? argv[3] : null;
       var domain = (argc > 4) ? argv[4] : null;
       var secure = (argc > 5) ? argv[5] : false;
       document.cookie = name + "=" + escape(value) +
          ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
          ((path == null) ? "" : ("; path=" + path)) +
          ((domain == null) ? "" : ("; domain=" + domain)) +
          ((secure == true) ? "; secure" : "");
    }

    function getCookieVal(offset)
    {
       var endstr = document.cookie.indexOf(";",offset);
       if (endstr == -1)
       {
          endstr = document.cookie.length;
       }
       return unescape(document.cookie.substring(offset, endstr));
    }

    function GetCookie(name)
    {
       var arg = name + "=";
       var alen = arg.length;
       var clen = document.cookie.length;
       var i = 0;
       while (i < clen)
       {
          var j = i + alen;
          if (document.cookie.substring(i, j) == arg)
          {
             return getCookieVal(j);
          }
          i = document.cookie.indexOf(" ", i) + 1;
          if (i == 0)
          {
             break;
          }
       }
       return null;
    }

    function ShowHide(id1, id2, id3)
    {
       var res = expMenu(id1);
       if (id2 != '')
       {
          expMenu(id2);
       }
       if (id3 != '')
       {
          SetCookie(id3, res, exp);
       }
    }

    function expMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return 1;
          }
          else
          {
             itm.style.display = "none";
             return 2;
          }
       }
       else
       {
          itm.visibility = "show";
          return 1;
       }
    }
    </script>

        </head>
        <a name="top"></a>


        <!-- marginheight="0" leftmargin="0" topmargin="0" -->

        <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" marginheight="0" leftmargin="0" topmargin="0">

        <a name="top"></a>

        <table width="100%" cellpadding="5" cellspacing="1" border="0">
        <tr><td>

        <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
                 
        <table width="100%" border="0" cellpadding="5" cellspacing="1">
    <tbody><tr><td>
    <table class="forumline" width="100%" border="0" cellpadding="2" cellspacing="1">
    <tbody><tr> <td class="catHead" height="28"><span class="cattitle"><center>
    <a href="index.php"><font size="2,5">la page d'accueil du forum</font></a> ::
    <a href="faq.php">consulter la Foire Aux Questions</a> ::
    <a href="search.php">effectuer une recherche sur le forum</a>
         
        <tr><td class="row1" align="center">

        <a href="{U_MEMBERLIST}" class="mainmenu"><img src="http://img7.xooimage.com/files/i/c/icon_mini_members-30df0.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3">{L_MEMBERLIST}</a>&nbsp;
        <a href="{U_GROUP_CP}" class="mainmenu"><img src="http://img2.xooimage.com/files/i/c/icon_mini_groups-30df1.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3">{L_USERGROUPS}</a>

        <span class="mainmenu"> &nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="http://img3.xooimage.com/files/i/c/icon_mini_profile-30df2.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3">{L_PROFILE}</a>&nbsp;
        <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="http://img7.xooimage.com/files/i/c/icon_mini_message-30df3.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3">{PRIVATE_MESSAGE_INFO}</a>&nbsp;
        <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="http://img9.xooimage.com/files/i/c/icon_mini_login-30df4.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3">{L_LOGIN_LOGOUT}</a>&nbsp;</span>
        <!-- BEGIN switch_user_logged_out -->
        &nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="http://img5.xooimage.com/files/i/c/icon_mini_register-30df5.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3">{L_REGISTER}</a></span>
        <!-- END switch_user_logged_out -->
        </td></tr></table><br>


            <span class="mainmenu"> </span>

    <!-- ONE STEP TO INSTALL PULLDOWN MENU:

    1. Paste the code into the BODY of your HTML document -->

    <!-- STEP ONE: Copy this code into the BODY of your HTML document -->

    <style type="text/css">
    <!--
    .style1 {color: #339900}
    -->
    </style>
    <BODY>

    <div align="center" class="style1">
    <!-- Original: Ricocheting (ricocheting@hotmail.com) -->
    <!-- Web Site: http://free.prohosting.com/~ric -->

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    </div>
    <form name="jump" class="style1">
    <div align="center">
    <select name="menu">
    <option value="http://astuces-brico.xooit.com/memberlist.php">membres</option>
    <option value="http://astuces-brico.xooit.com/groupcp.php">groupes</option>
    <option value="http://astuces-brico.xooit.com/profile.php?mode=editprofile">profil</option>
    <option value="http://astuces-brico.xooit.com/faq.php">FAQ</option>
    <option value="http://astuces-brico.xooit.com/portal.php">portail</option>
    <option value="http://astuces-brico.xooit.com/index.php">index</option>
    <option value="http://astuces-brico.xooit.com/report-violation.php?url=http%3A%2F%2Fastuces-brico.xooit.com%2Findex.php">signaler une violation</option>
    <option value="http://xooit.xooit.com/">forum gratuit d'entraide</option>
    </select>
    <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    </div>
    </form>

    <!-- DEBUT DU SCRIPT -->
    <style type="text/css">
    .ejs_context_menuitems{padding-left:12px; padding-right:7px; }
    </style><script language="JavaScript1.2">
    /*
    Source du Script: Editeur Javascript (http://editeurjavascript.com)
    Script adapté pour: Xooit.com (http://www.xooit.com)
    */
    ejs_context_elemt = new Array;
    ejs_context_elemt[0] = "Page précédente|history.go(-1)";
    ejs_context_elemt[1] = "Page suivante|history.go(1)";
    ejs_context_elemt[2] = "";
    ejs_context_elemt[3] = 'Portail du forum|document.location.href=\'portal.php\'';
    ejs_context_elemt[4] = 'Index du forum|document.location.href=\'index.php\'';
    ejs_context_elemt[5] = 'Aide Générale|document.location.href=\'faq.php\'';
    ejs_context_elemt[6] = 'Aide BBCode|document.location.href=\'faq.php?mode=bbcode\'';
    ejs_context_elemt[7] = "";
    ejs_context_elemt[8] = 'Connexion|document.location.href=\'login.php\'';
    ejs_context_elemt[9] = 'Inscription|document.location.href=\'profile.php?mode=register\'';
    ejs_context_elemt[10] = 'Mon Profil|document.location.href=\'profile.php?mode=editprofile\'';
    ejs_context_elemt[11] = 'Messages Privés|document.location.href=\'privmsg.php?folder=inbox\'';
    ejs_context_elemt[12] = "";
    ejs_context_elemt[13] = 'Rechercher|document.location.href=\'search.php\'';
    ejs_context_elemt[14] = 'Liste des Membres|document.location.href=\'memberlist.php\'';
    ejs_context_elemt[15] = 'Liste des Groupes|document.location.href=\'groupcp.php\'';
    ejs_context_elemt[16] = '';
    ejs_context_elemt[17] = 'Qui est en ligne?|document.location.href=\'viewonline.php\'';
    ejs_context_elemt[18] = 'Statistiques|document.location.href=\'stats.php\'';
    ejs_context_elemt[19] = 'Top 10 des Posteurs|document.location.href=\'memberlist.php?mode=topten&order=DESC\'';
    ejs_context_elemt[20] = 'Top 50 des Posteurs|document.location.href=\'memberlist.php?mode=posts&order=DESC\'';
    ejs_context_elemt[21] = '';
    ejs_context_elemt[22] = 'Xooit.com|document.location.href=\'http://www.xooit.com/\'';
    ejs_context_elemt[23] = 'Créer un forum|document.location.href=\'http://www.xooit.com/fr/creer-forum.html?\'';
    ejs_context_elemt[24] = 'Forum d\'entraide|document.location.href=\'http://xooit.xooit.com\'';
    ejs_context_elemt[25] = 'Annuaire|document.location.href=\'http://www.xooit.com/fr/annuaire\'';
    ejs_context_elemt[26] = 'Contacter Xooit.com|document.location.href=\'http://www.xooit.com/fr/contact.html\'';
    function ejs_context_position(e)
       {
       ejs_context_x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
       ejs_context_y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
       }

    function ejs_context_open()
       {
       document.getElementById("ejs_context_box").style.top = ejs_context_y;
       document.getElementById("ejs_context_box").style.left = ejs_context_x;
       document.getElementById("ejs_context_ombre").style.top = ejs_context_y+2;
       document.getElementById("ejs_context_ombre").style.left = ejs_context_x+2;
       document.getElementById("ejs_context_box").style.visibility = "visible";
       document.getElementById("ejs_context_ombre").style.visibility = "visible";
       return(false);
       }

    function ejs_context_close()
       {
       if (document.getElementById)
          {
          document.getElementById("ejs_context_box").style.top = 0;
          document.getElementById("ejs_context_box").style.left = 0;
          document.getElementById("ejs_context_ombre").style.top = 0;
          document.getElementById("ejs_context_ombre").style.left = 0;
          document.getElementById("ejs_context_box").style.visibility = "hidden";
          document.getElementById("ejs_context_ombre").style.visibility = "hidden";
          }
       }

    function ejs_context_hl(mode, element)
       {
       if(mode == 1)
          {
          element.style.background = '#316AC5';
          element.style.color = '#ffffff';
          }
       else
          {
          element.style.background ='#ffffff';
          element.style.color = '#000000';
          }
       }

    if(navigator.appName.substring(0,3) == "Net")
       document.captureEvents(Event.MOUSEMOVE);
    </script>
    <!-- FIN DU SCRIPT -->

_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
fleurierdu30


Offline
Guest




PostPosted: Fri 29 Jan 2010 - 15:48    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

merci beaucoup

Author Message
Eldred


Offline
Guest




PostPosted: Wed 10 Mar 2010 - 15:36    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonsoir,
Je n'arrive pas à procéder au changement dans les templates concernées.

Les voici :

Index_body.tpl :
Code: Sélectionner - Agrandir


<link href="dgfwarcraft.css" rel="stylesheet" type="text/css">
<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="1" class="forumline">
<tr>
<th colspan="2"><span class="cattitle"><!--<a href="{catrow.U_VIEWCAT}" class="cattitle">-->{catrow.CAT_DESC}<!--</a>--></span>
<th>{L_TOPICS}</th>
<th>{L_POSTS}</th>
<th>{L_LASTPOST}</th>
</tr>

<!-- BEGIN forumrow -->
<tr>
  <td class="row1" height="45"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" /*images parchemin*/ alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}"/></td>
  <td class="row1" width="100%" height="50">
 <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"><tr>
<td><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
                  </span></td></tr>
<!-- BEGIN switch_ficons -->
        <tr><td style="width:{FICONSW}px;padding:0px">{catrow.forumrow.FORUM_ICON}</td></tr><tr><td>
         <!-- END switch_ficons -->
 <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
                <!-- BEGIN switch_ficons -->
          </td></tr>
          <!-- END switch_ficons --></table></td>
  
  <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td> /*nombre de sujets dans sous forum*/
  <td class="row2" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td> /*nombre de messages dans sous forum*/
  <td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> /*derniers posts dans sous forum*/
</tr>
<!-- END forumrow -->
<tr>
<td class="cat" colspan="5">&nbsp;</td>
</tr>
</table><br /><br />

<!-- END catrow -->


<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></th>
</tr>
<tr>
<td class="row1" rowspan="3"><img src="http://img6.xooimage.com/files/5/0/0/old_icons_70-48641c.png">
</td>
<td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ <strong>{L_WHOSONLINE_ADMIN}</strong> 
] &nbsp; [ <strong>{L_WHOSONLINE_MOD}</strong> ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
<tr>
<td class="cat" colspan="2">&nbsp;</td>
</tr>
</table>

<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="forumline">
<tr>
  <th colspan="2" class="maintitle"></th>
  </tr>
<tr>
<td valign="bottom" class="row1">
<!-- BEGIN switch_user_logged_in -->
&nbsp; &bull; {LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
&nbsp; &bull; {CURRENT_TIME}<br />
&nbsp; &bull; <a href="{U_INDEX}" class="nav">{L_INDEX}</a><br></td>
<td align="right" valign="bottom" class="row1">
<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED} &bull; &nbsp;</a><br />
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW} &bull; &nbsp;</a><br />
<a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</strong></a> &bull; &nbsp;
<!-- END switch_user_logged_in -->
<br>
</td>
</tr>
<tr>
<td class="cat" colspan="2">&nbsp;</td>
</tr>
</table>
<br />

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

Overall_header.tpl :


 
Code: Sélectionner - Agrandir

<?xml version="1.0" encoding="{S_CONTENT_ENCODING}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 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" />
<link href="dgfwarcraft.css" rel="stylesheet" type="text/css" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="http://img8.xooimage.com/files/8/a/2/dgfwarcraft-181858b.css" type="text/css" />
<!-- BEGIN switch_enable_pm_popup -->
<script 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 -->

<style>
html,body{margin:0;padding:0;}
#bg,#bg table,#bg td{width:100%;height:100%}
#bg div{position:absolute;width:100%;height:100%;top:100%;left:-50%}
#bg td{vertical-align:middle;text-align:center}
#bg img{min-height:50%;min-width:50%;margin:auto}
#main{position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;margin:0;padding:0;}
div#bg {
  z-index: -3;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  _position: absolute;
  top: expression(body.scrollTop + 0 + "px");
}
</style>
</head>

<div id="bg">
<div>
<table cellpadding="0" cellspacing="0"><tr><td>
<img alt="" src="http://img47.xooimage.com/files/4/1/4/body-bg-wow-1805da2.jpg">
</td></tr></table>
</div>
</div>

<div id="main"> 

<body style="margin:0px">
<table align="center" width="900" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="2">
            <img src="http://img6.xooimage.com/files/4/5/0/cinq-18186c0.gif" width="210" height="244" alt=""></td>
        <td background="http://img8.xooimage.com/files/2/3/1/deux-182013b.gif" width="100%" height="244" align="center" valign="bottom">
        <span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></span><span class="mainmenu">&nbsp;  &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>&nbsp; 
                        <!-- BEGIN switch_user_logged_out -->
                        &nbsp;<a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></span>&nbsp;
                        <!-- END switch_user_logged_out -->
        <span class="mainmenu">&nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu">Messages priv&eacute;</a>&nbsp; &nbsp;<a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu">D&eacute;/connexion</a>&nbsp;</span>                
                        <br /><br />
            </td>
        <td colspan="2">
            <img src="http://img6.xooimage.com/files/c/9/6/oh-yeauuh--1818458.gif" width="224" height="244" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="http://img6.xooimage.com/files/6/6/b/six-1818692.gif" width="65" height="30" alt=""></td>
        <td background="http://img4.xooimage.com/files/c/a/cadrehc-3256f.gif" width="100%" height="30" colspan="3">
        </td>
        <td>
            <img src="http://img6.xooimage.com/files/7/9/0/sept-1818720.gif" width="74" height="30" alt=""></td>
    </tr>
    <tr>
        <td background="http://img10.xooimage.com/files/3/b/8/quatre-1818631.gif" width="65" height="100%">
            </td>
        <td background="http://img6.xooimage.com/files/f/o/fontforum-32572.gif" colspan="3" valign="top">
    <br />        
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td align="right">
                <form action="{U_SEARCH}?mode=results" method="post" target="_top">
                Recherche rapide :<br /><input type="text" class="post" name="search_keywords" size="14" />&nbsp;<input type="submit" class="mainoption" name="login" value="Ok" /><br />
                </form>
            </td>
       </tr>
    </table>
    <br />
<iframe name="google_ads_frame" style="z-index:20;" src="" width="0" height="0" scrolling="no" frameborder="0" allowtransparency="true"></iframe> 

Merci d'avance,
Eldred


Author Message
chakrared


Offline
Guest




PostPosted: Mon 15 Mar 2010 - 03:24    Post subject: [Tuto] Cacher/Montrer les catégories Reply with quote

Bonjour/Bonsoir, 
sa me serai beaucoup utile cela.mais malheureusement je me perd très facilement dans les temple d'on je connais rien. 


Voici les temple que vous demandez. 



index_body.tpl 
Code: Sélectionner - Agrandir
[/b]
[b]<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>


<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr> 
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</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 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 -->
  <tr> 
   <td class="row1" align="center" valign="middle" height="60"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="58" height="50" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1" width="100%" 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 class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>


<table width="100%" 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="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://img2.xooimage.com/files/a/1/3/whosonline-fofo-18bc4ac.png" 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" />
      <!-- BEGIN switch_allow_autologin -->
      &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
      <input class="text" type="checkbox" name="autologin" />
      <!-- END switch_allow_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/d/d/folder_new_big-fofo-18bbeb0.png" 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://img8.xooimage.com/files/c/6/7/folder_big-fofo-18bb779.png" 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://img8.xooimage.com/files/3/4/0/folder_locked_big-fofo-18bbbd3.png" alt="{L_FORUM_LOCKED}" /></td>
   <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>



overall_header.tpl 


Code: Sélectionner - Agrandir
[/b]
[b]<!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>
<script language="javascript" src="http://img2.xooimage.com/files/8/0/c/script-304cde.js">
</script>
<style type="text/css">
<!--
/*
  WorkStation_fusion Theme for phpBB version 2+
  Created by larme d'ange
  http://lda-creation.conceptbb.com


  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


/* General page style. The scroll bar colours only visible in IE5.5+ */
body { 
   
   background-image: url(http://img2.xooimage.com/files/f/9/d/background-fofo.png_big..-18dfc33.2);
   background-attachment: fixed; 
   background-repeat: no-repeat; 
   background-position: top right;
   background-color: {T_BODY_BGCOLOR}; 
   scrollbar-face-color: #111111;
   scrollbar-highlight-color: #666666;
   scrollbar-shadow-color: #444444;
   scrollbar-3dlight-color: #333333;
   scrollbar-arrow-color:  #ff9900;
   scrollbar-track-color: #202020;
   scrollbar-darkshadow-color: #222222;
}


/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover      { text-decoration: none; color : {T_BODY_HLINK}; }
hr   { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}


/* This is the border line & background colour round the entire page */
.bodyline   { background-color: ""; border: 0px {T_TH_COLOR1} solid; }


/* This is the outline round the main forum tables */
.forumline   { background-color: {T_TH_COLOR3}; border: 2px {T_TH_COLOR2} solid; }


/* Main table cell colours and backgrounds */
td.row1   { background-color: {T_TR_COLOR1}; }
td.row2   { background-color: {T_TR_COLOR2}; }
td.row3   { background-color: {T_TR_COLOR3}; }


/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
      background-color: {T_TR_COLOR3};
      background-image: url(http://img8.xooimage.com/files/4/8/4/back_catd-fofo-18b968a.png);
      background-repeat: repeat-y;
}


/* Header cells - the blue and silver gradient backgrounds */
th   {
   color: {T_TH_COLOR1}; font-size: {T_FONTSIZE2}px; font-weight : bold; 
   background-color: {T_BODY_LINK}; height: 25px;
   background-image: url(http://img8.xooimage.com/files/0/e/0/back_title-fofo-18b9f6b.png);
}


td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
         background-image: url(http://img6.xooimage.com/files/8/4/3/back_catg-fofo-18b9b2c.png);
         background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}


/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
   height: 29px;
   border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
   font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 25px;
}
td.row3Right,td.spaceRow {
   background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}


th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow    { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right    { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft     { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop    { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle   {
   font-weight: bold; font-size: 18px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
   text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}


/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover   { color: {T_BODY_HLINK}; text-decoration: none; }


/* Optionnal text */
.class1 { font-size : {T_FONTSIZE2}px; color : {T_TR_COLOR1}; }
.class2 { font-size : {T_FONTSIZE1}px; color : {T_TR_COLOR1}; }
.class3   { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_TR_COLOR1}; }


/* The register, login, search etc links at the top of the page */
.mainmenu      { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu      { text-decoration: none; color : {T_BODY_LINK};  }
a.mainmenu:hover{ text-decoration: none; color : {T_BODY_HLINK}; }


/* Forum category titles */
.cattitle      { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_TR_COLOR1}}
a.cattitle      { text-decoration: none; color : {T_TR_COLOR1}; }
a.cattitle:hover{ text-decoration: none; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink      { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink    { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: none; color : {T_BODY_HLINK}; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav         { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav         { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover      { text-decoration: none; }


/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2   { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover   { text-decoration: none; color : {T_BODY_HLINK}; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name         { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}


/* Location, number of posts, post date etc */
.postdetails      { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }


/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link   { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: none; color : {T_BODY_HLINK}}


/* Quote & Code blocks */
.code { 
   font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
   background-color: {T_TD_COLOR1}; border: {T_TH_COLOR1}; border-style: solid;
   border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


.quote {
   font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
   background-color: {T_TD_COLOR1}; border: {T_TH_COLOR1}; border-style: solid;
   border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright      { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright      { color: {T_FONTCOLOR3}; text-decoration: none;}
a.copyright:hover { color: {T_FONTCOLOR2}; text-decoration: none;}


/* Form elements */
input,textarea, select {
    border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px;
   color : {T_FONTCOLOR3};
   font: normal {T_FONTSIZE2}px {T_FONTFACE1};
   border-color : {T_FONTCOLOR1};
}


/* The text input fields background colour */
input.post, textarea.post, select {
   background-color : {T_TH_COLOR3};
}


input { text-indent : 2px;
       background-color : {T_TD_COLOR1}; }


/* The buttons used for bbCode styling in message post */
input.button {
   background-color : {T_TR_COLOR2};
   color : {T_BODY_TEXT};
   font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}


/* The main submit button option */
input.mainoption {
   background-color : {T_TD_COLOR1};
   font-weight : bold;
}


/* None-bold submit button */
input.liteoption {
   background-color : {T_TD_COLOR1};
   font-weight : normal;
}


/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("http://img10.xooimage.com/files/f/o/formie-30d7c.css"); 
-->
</style>
<!-- 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 bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">


<a name="top"></a>


<table width="80%" cellspacing="0" cellpadding="10" border="0" align="center"> 
   <tr> 
      <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr> 
            <td align="center" width="100%" valign="middle"><a href="{U_INDEX}"><img src="http://img4.xooimage.com/files/1/6/b/logo-fofo-finish_2-18bab17.png" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
            </tr><tr>
            <td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
            <table cellspacing="0" cellpadding="2" border="0">
               <tr> 
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                  <!-- BEGIN switch_user_logged_in -->
                             <a href="{U_INDEX}" class="mainmenu"><img src="http://img2.xooimage.com/files/6/9/f/icon_mini_index-fofo-18bc263.png" width="137" height="102" border="0" alt="{L_INDEX}" hspace="0" /></a><a href="{U_FAQ}" class="mainmenu"><img src="http://img4.xooimage.com/files/a/d/4/iconminifaqzt1-fofo-18bc154.png" width="31" height="102" border="0" alt="{L_FAQ}" hspace="0" /></a><a href="{U_SEARCH}" class="mainmenu"><img src="http://img6.xooimage.com/files/1/5/c/iconminisearchfy3-fofo-18bc343.png" width="90" height="102" border="0" alt="{L_SEARCH}" hspace="0" /></a><a href="{U_MEMBERLIST}" class="mainmenu"><img src="http://img8.xooimage.com/files/c/a/3/iconminimemberstt...-18bc2a6-18bc61a.png" width="65" height="102" border="0" alt="{L_MEMBERLIST}" hspace="0" /></a><a href="{U_GROUP_CP}" class="mainmenu"><img src="http://img10.xooimage.com/files/5/f/a/iconminigroupsan8-fofo-18bc17a.png" width="61" height="102" border="0" alt="{L_USERGROUPS}" hspace="0" /></a><a href="{U_PROFILE}" class="mainmenu"><img src="http://img10.xooimage.com/files/b/1/0/iconminiprofilemi2-fofo-18bc2b1.png" width="43" height="102" border="0" alt="{L_PROFILE}" hspace="0" /></a><a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="{PRIVMSG_IMG}" height="102" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="0" /></a><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="http://img8.xooimage.com/files/5/6/a/iconminilogoutoh5-fofo-18bc290.png" width="102" height="102" border="0" alt="{L_LOGIN_LOGOUT}" hspace="0" /></a> 
                  <!-- END switch_user_logged_in -->
                  <!-- BEGIN switch_user_logged_out -->
                       <a href="{U_INDEX}" class="mainmenu"><img src="http://img2.xooimage.com/files/6/9/f/icon_mini_index-fofo-18bc263.png" width="137" height="102" border="0" alt="{L_INDEX}" hspace="0" /></a><a href="{U_FAQ}" class="mainmenu"><img src="http://img4.xooimage.com/files/a/d/4/iconminifaqzt1-fofo-18bc154.png" width="31" height="102" border="0" alt="{L_FAQ}" hspace="0" /></a><a href="{U_SEARCH}" class="mainmenu"><img src="http://img6.xooimage.com/files/1/5/c/iconminisearchfy3-fofo-18bc343.png" width="90" height="102" border="0" alt="{L_SEARCH}" hspace="0" /></a><a href="{U_REGISTER}" class="mainmenu"><img src="http://img4.xooimage.com/files/b/7/1/iconminiregisterel9-fofo-18bc2c9.png" width="100" height="102" border="0" alt="{L_REGISTER}" hspace="0" /></a><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="http://img6.xooimage.com/files/b/7/c/iconminiloginrf2-fofo-18bc26f.png" width="103" height="102" border="0" alt="{L_LOGIN_LOGOUT}" hspace="0" /></a> 
                  <!-- END switch_user_logged_out -->
                  </span></td>
               </tr>
            </table></td>
         </tr>
      </table>


      <br />





Merci d'avance pour votre aide.




Author Message
Contenu Sponsorisé





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

Display posts from previous:   
Reply to topic Page 14 of 20 Goto page: <  1, 2, 313, 14, 1518, 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