website logo
Auteur
avatar
Anonyme

Forum » » Pour débuter » » page : forum.html ??


Posté : 25 avr. 2010 à 11:23 icone du post

salut
je vais encore montrer mon incompétence, mais bon.

Que doit on configurer dans la page forum.html d'un theme dinamic?

je fais bien la mise en page coté images mais pour faire les bon lien je suis paumé:

mon prob: j'ai deux catégories de forum : dont les Index sont numérotés
2 pour la Catégorie A
3 pour la Catégorie B

Ces deux Catégories ont chacune 3 "forum"
pour laCat A index des forum 1,2,3
pour la cat B 0,1,2

J'ai beaux essayer excepté le 1er lien qui m'ouvre tout les forum, impossible d'ouvrir via ma seconde image le bon forum

que faut il définir dans ce code




<script language="!javascript!" src="lib/cookies.js"></script>
   <script language="!javascript!">
   if (!getCookie('forum_cat'))
      setCookie('forum_cat', 'cat1', 30);
   </script>
   <table border="1" width="100%"><tr>
    <td valign="top">
      <a href="forum.php#"
      !onclick!="document.getElementById('forum_cat1').style.display='block';
      document.getElementById('forum_cat2').style.display='none';
      document.getElementById('forum_cat3').style.display='none';
      groupe_text("2,3,4,5,6")
         document.getElementById('forum_cat9').style.display='none';
      !/!
      setCookie('forum_cat', 'cat1', 30);">theme_img(forum/Npds-A.gif)</a>
    </td>
    <td valign="top">
      <a href="forum.php#"
      !onclick!="document.getElementById('forum_cat2').style.display='block';
      document.getElementById('forum_cat1').style.display='none';
      document.getElementById('forum_cat3').style.display='none';
      groupe_text("2,3,4,5,6")
         document.getElementById('forum_cat9').style.display='none';
      !/!
      setCookie('forum_cat', 'cat2', 30);">theme_img(forum/B.gif)</a>
    </td>
    <td valign="top">
      <a href="forum.php#"
      !onclick!="document.getElementById('forum_cat3').style.display='block';
      document.getElementById('forum_cat1').style.display='none';
      document.getElementById('forum_cat2').style.display='none';
      groupe_text("2,3,4,5,6")
         document.getElementById('forum_cat9').style.display='none';
      !/!
      setCookie('forum_cat', 'cat3', 30);">theme_img(forum/forum0.gif)</a>
    </td>
    groupe_text("2,3,4,5,6")
       <td valign="top">
         <a href="forum.php#"
         !onclick!="document.getElementById('forum_cat9').style.display='block';
         document.getElementById('forum_cat1').style.display='none';
         document.getElementById('forum_cat2').style.display='none';
         document.getElementById('forum_cat3').style.display='none';
         setCookie('forum_cat', 'cat9', 30);">theme_img(forum/ong-team.gif)</a>
       </td>
    !/!
    <td width="60%"> 
    </td></tr>forum_subscribeON()
   </table>

   <div id="forum_cat1" style="display: none;">
   <div class="detnews">Tous les forum </div>
   <table width="100%" cellspacing="1" cellpadding="2" border="0">
   <tr>
   <td colspan="2" width="45%"> </td>
   forum_bouton_subscribe() 
   <td width="15%" class="HEADER" style="text-align: center;">[english]Type[/english][french]Type[/french]</td>
   <td width="10%" class="HEADER" style="text-align: center;">[english]Topics[/english][french]Sujets[/french]</td>
   <td width="5%" class="HEADER" style="text-align: center;">[english]NB[/english][french]NB[/french]</td>
   <td width="15%" class="HEADER" style="text-align: center;">[english]Last Posts[/english][french]Dernière contribution[/french]</td>
   </tr>
   forum_categorie("1,2,3,4") forum_message()
   </table>
   </div>

   <div id="forum_cat2" style="display: none;">
   <div class="detnews">Les forums relatifs aux ......................<br /></div>
   <table width="100%" cellspacing="1" cellpadding="2" border="0">
   <tr>
   <td colspan="2" width="45%"> </td>
   forum_bouton_subscribe() 
   <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Type[/english][french]Type[/french]</td>
   <td align="center" width="10%" class="HEADER" style="text-align: center;">[english]Topics[/english][french]Sujets[/french]</td>
   <td align="center" width="5%" class="HEADER" style="text-align: center;">[english]NB[/english][french]NB[/french]</td>
   <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Last Posts[/english][french]Dernière contribution[/french]</td>
   </tr>
   </table>
   </div>

   <div id="forum_cat3" style="display: none;">
   <div class="detnews">Les forums relatifs aux t.................... ...<br />En cours de mise en place</div>
   <table width="100%" cellspacing="1" cellpadding="2" border="0">
   <tr>
   <td colspan="2" width="45%"> </td>
   forum_bouton_subscribe() 
   <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Type[/english][french]Type[/french]</td>
   <td align="center" width="10%" class="HEADER" style="text-align: center;">[english]Topics[/english][french]Sujets[/french]</td>
   <td align="center" width="5%" class="HEADER" style="text-align: center;">[english]NB[/english][french]NB[/french]</td>
   <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Last Posts[/english][french]Dernière contribution[/french]</td>
   </tr>
   </table>
   </div>

   groupe_text("2,3,4,5,6")
      <div id="forum_cat9" style="display: none;">
      <div class="detnews">Les forums de la team</div>
      <table width="100%" cellspacing="1" cellpadding="2" border="0">
      <tr>
      <td colspan="2" width="45%"> </td>
      forum_bouton_subscribe()
      <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Type[/english][french]Type[/french]</td>
      <td align="center" width="10%" class="HEADER" style="text-align: center;">[english]Topics[/english][french]Sujets[/french]</td>
      <td align="center" width="5%" class="HEADER" style="text-align: center;">[english]NB[/english][french]NB[/french]</td>
      <td align="center" width="15%" class="HEADER" style="text-align: center;">[english]Last Posts[/english][french]Dernière contribution[/french]</td>
      </tr>
      forum_categorie(5) forum_message()
      </table>
      </div>
   !/!

   forum_subscribeOFF() 
   <table width="100%" cellspacing="0" cellpadding="4" border="0"><tr><td>
   forum_recherche()
   </td></tr></table>
   <br />
   forum_icones() 

   <script language="!javascript!">
   var cook=getCookie('forum_cat');
   if  (cook=='cat1') document.getElementById('forum_cat1').style.display='block';
   if  (cook=='cat2') document.getElementById('forum_cat2').style.display='block';
   if  (cook=='cat3') document.getElementById('forum_cat3').style.display='block';
   if  (cook=='cat9') document.getElementById('forum_cat9').style.display='block';
   </script>

<br /><br />
<p align="center">Prototype de page forum.php / forum.html pour Dune</p>


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=24834&forum=10