Posté : 25-04-2010 11:23
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"></scr ipt>
<script language="!javascript!">
if (!getCookie('forum_cat'))
setCookie('forum_cat', 'cat1', 30);
</script>
<table border="1" width="100%"><tr>
< br /> <td valign="top">
<a href="forum.php#"
!onclick!="document.getElementById('forum _cat1').style.display='block';
document.getElementById('forum_cat2').sty le.display='none';
document.getElementById('forum_cat3').sty le.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').sty le.display='none';
document.getElementById('forum_cat3').sty le.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').sty le.display='none';
document.getElementById('forum_cat2').sty le.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.get ElementById('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',& nbsp;'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&nb sp;</div>
<table width="100%" cellspacing="1" cellp adding="2" border="0">
<tr>
<td colspan="2" width="45%"> </td>
forum_bouton_subscribe()
<td width="15%" class="HEADER" style="tex t-align: center;">[english]Type[/english][french]Type[/french]</td&g t;
<td width="10%" class="HEADER" style="tex t-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="tex t-align: center;">[english]Last Posts[/english][french]Dernière&nb sp;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 relati fs aux ......................<br /></div>
<table width="100%" cellspacing="1" cellp adding="2" border="0">
<tr>
<td colspan="2" width="45%"> </td>
forum_bouton_subscribe()
<td align="center" width="15%" class="HEA DER" style="text-align: center;">[english]Type[/english][french]Ty pe[/french]</td>
<td align="center" width="10%" class="HEA DER" style="text-align: center;">[english]Topics[/english][french] Sujets[/french]</td>
<td align="center" width="5%" class="HEAD ER" style="text-align: center;">[english]NB[/english][french]NB[/f rench]</td>
<td align="center" width="15%" class="HEA DER" 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 relati fs aux t.................... ...<br />En cours&n bsp;de mise en place</div>
<table width="100%" cellspacing="1" cellp adding="2" border="0">
<tr>
<td colspan="2" width="45%"> </td>
forum_bouton_subscribe()
<td align="center" width="15%" class="HEA DER" style="text-align: center;">[english]Type[/english][french]Ty pe[/french]</td>
<td align="center" width="10%" class="HEA DER" style="text-align: center;">[english]Topics[/english][french] Sujets[/french]</td>
<td align="center" width="5%" class="HEAD ER" style="text-align: center;">[english]NB[/english][french]NB[/f rench]</td>
<td align="center" width="15%" class="HEA DER" 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%" cellspac ing="1" cellpadding="2" border="0">
<tr>
<td colspan="2" width="45%"& gt; </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[/eng lish][french]NB[/french]</td>
<td align="center" width="15 %" class="HEADER" style="text-align: center;">[english]Last&n bsp;Posts[/english][french]Dernière contribution[/french]</td>
</tr>
forum_categorie(5) forum_message()
< br /> </table>
</div>
!/!
forum_subscribeOFF()
<table width="100%" cellspacing="0" cellp adding="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>
|