Affichage du nombre de sujet et de message !
5 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Gérer l'apparence de son forum :: Archives des problèmes avec l'apparence du forum
Page 1 sur 1 • Partagez
Affichage du nombre de sujet et de message !
Coucou je voulais savoir qu'elle était le code pour que le nombre de message et de sujet s'affiche comme sur ce forum http://02141-cambridge.keuf.net/forum.htm merci d'avance
Re: Affichage du nombre de sujet et de message !
Merci mais en fait je voudrais le mettre en dessous comme sur le forum !
Re: Affichage du nombre de sujet et de message !
Bonjour,
Le tuto que vous donne Anzumi correspond à ce que vous demandez. La nuance est l'endroit où apparaît la modification.
De fait, si vous n'avez pas les connaissances requises pour modifier le code donné, il serait un peu trop simple qu'on le fasse pour vous...
Je vous invite à rechercher dans le code du tuto l'endroit où la modification apparaît, et à tenter de la mettre ailleurs.
Si vous n'y arrivez pas, nous vous aiderons à le faire, mais avant : cherchez.
Le tuto que vous donne Anzumi correspond à ce que vous demandez. La nuance est l'endroit où apparaît la modification.
De fait, si vous n'avez pas les connaissances requises pour modifier le code donné, il serait un peu trop simple qu'on le fasse pour vous...
Je vous invite à rechercher dans le code du tuto l'endroit où la modification apparaît, et à tenter de la mettre ailleurs.
Si vous n'y arrivez pas, nous vous aiderons à le faire, mais avant : cherchez.
Re: Affichage du nombre de sujet et de message !
Je n'ai pas de grande connaissance dans ce langage et j'ai déjà chercher avec mes 4 admin c'est pourquoi je vous le deamnder de me l'expliquer gentiment !
Re: Affichage du nombre de sujet et de message !
J'ai cherché même dans le guide du langage HTLM et j'ai vraiment pas trouvé !
Re: Affichage du nombre de sujet et de message !
Je vous rappelle que les Up sont autorisés toutes les 24h, merci d'utiliser la fonction
Alors, bon je vais vous aider
Ce code:
Vous devez le mettre avant :
Alors, bon je vais vous aider
Ce code:
- Code:
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td></tr></tbody></table>
Vous devez le mettre avant :
- Code:
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
Dernière édition par Anzumi le Dim 4 Avr 2010 - 20:24, édité 1 fois
Re: Affichage du nombre de sujet et de message !
Merci beaucoup désoler pour le up !
Re: Affichage du nombre de sujet et de message !
Heu petit problèmes ( même si c'est pas mon sujet ) j'ai voulu essayer le code pour voir l'effet et les description des sujet apparaisse 2 fois ( une fois au dessus et une fois en dessous du nom du forum )
c'est normal ? XD
c'est normal ? XD
Re: Affichage du nombre de sujet et de message !
Rappel: Un sujet par Topic
De plus, c'est normal, il faudrait peut être suivre les tuto
: ICI
> Vous vous êtes contenté de mettre le code, alors qu'il y a des parties à supprimer >>
Re: Affichage du nombre de sujet et de message !
Je n'arrive pas à mettre les mettre en dessous non plus :/
Pourtant, j'suis pas si mauvais en codes :O
De plus, je ne sais pas comment mettre comme sur ce forum (sujets & messages en gras et une | entre les deux)
Please help me
Pourtant, j'suis pas si mauvais en codes :O
De plus, je ne sais pas comment mettre comme sur ce forum (sujets & messages en gras et une | entre les deux)
Please help me
Re: Affichage du nombre de sujet et de message !
Adrien => Mettez le code de votre template dans ce topic
Re: Affichage du nombre de sujet et de message !
Voici le code de mon template;
- Spoiler:
- <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
<h{catrow.cathead.LEVEL} class="hierarchy">
<span class="cattitle">
<a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
</span>
</h{catrow.cathead.LEVEL}>
</td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
<!-- END inc -->
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td>
<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall">{catrow.forumrow.POSTS} messages dans {catrow.forumrow.TOPICS} sujets.</td></tr></tbody></table>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="gensmall">
<!-- BEGIN switch_moderators_links -->
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</span>
</td>
<!-- BEGIN forum_link_no -->
<td class="row3 over" align="center" valign="middle" height="50">
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
<!-- END forum_link_no -->
<!-- BEGIN forum_link -->
<td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
<!-- END forum_link -->
</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Re: Affichage du nombre de sujet et de message !
Je viens de voir que vous aviez fait votre propre modification :
Vous avez mis ceci:
Mettez celui ci en attendant:
J'ai bien compris que vous vouliez faire ca différemment, tout en gardant le même principe, mais le template n'a pas apprécié les modifications
Vous voudriez changer quoi ?
Vous avez mis ceci:
- Code:
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall">{catrow.forumrow.POSTS} messages dans {catrow.forumrow.TOPICS} sujets.</td></tr></tbody></table>
Mettez celui ci en attendant:
- Code:
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td></tr></tbody></table>
J'ai bien compris que vous vouliez faire ca différemment, tout en gardant le même principe, mais le template n'a pas apprécié les modifications
Vous voudriez changer quoi ?
Re: Affichage du nombre de sujet et de message !
- En réalité, j'aimerais avoir un style dans ce genre là ==> ICI
càd; ne pas avoir la phrase - "Contient x messages dans x sujets.". Avoir uniquement les "sujets : x" et "messages : x" - les deux séparés d'une barre verticale "|".
Et surtout, ne pas avoir les sujets et messages en haut. J'aimerais beaucoup qu'ils se retrouvent en bas des catégories (comme sur le forum en exemple).
Excusez moi si je n'ai pas été très clair
Re: Affichage du nombre de sujet et de message !
Alors,
{catrow.forumrow.POSTS} > permet d'afficher le nombre de messages
{catrow.forumrow.TOPICS} > permet d'afficher le nombre de sujets
Si vous rajoutez:
Avez ca, vous devriez pouvoir vous débrouiller ^^
Et pour les mettre en bas, hé bien, prenez le bon code et faites les modifications que vous vouliez faire >
PS: Le lien que je vous ai envoyé par MP, il y a deux bons tutos concernant votre demande.
Cordialement.
{catrow.forumrow.POSTS} > permet d'afficher le nombre de messages
{catrow.forumrow.TOPICS} > permet d'afficher le nombre de sujets
Si vous rajoutez:
- Code:
<b>
- Code:
</b>
Avez ca, vous devriez pouvoir vous débrouiller ^^
Et pour les mettre en bas, hé bien, prenez le bon code et faites les modifications que vous vouliez faire >
PS: Le lien que je vous ai envoyé par MP, il y a deux bons tutos concernant votre demande.
Cordialement.
Re: Affichage du nombre de sujet et de message !
- Alors voilà... J'ai réussi à mettre le tout en forme comme je le voulais mais, le problème c'est que je n'arrive toujours pas à le mettre en bas.
Re: Affichage du nombre de sujet et de message !
Copiez collez votre template à présent modifié ici, je vais faire l'essai sur mon forum test.
Cordialement.
Cordialement.
Re: Affichage du nombre de sujet et de message !
Le voici:
- Spoiler:
- <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
<h{catrow.cathead.LEVEL} class="hierarchy">
<span class="cattitle">
<a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
</span>
</h{catrow.cathead.LEVEL}>
</td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
<!-- END inc -->
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td>
<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall"><b>messages :</b> {catrow.forumrow.POSTS} | <b>sujets :</b> {catrow.forumrow.TOPICS}</td></tr></tbody></table>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="gensmall">
<!-- BEGIN switch_moderators_links -->
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</span>
</td>
<!-- BEGIN forum_link_no -->
<td class="row3 over" align="center" valign="middle" height="50">
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
<!-- END forum_link_no -->
<!-- BEGIN forum_link -->
<td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
<!-- END forum_link -->
</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Re: Affichage du nombre de sujet et de message !
J'ai modifié, dites moi si cela vous convient ..
- Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<!-- BEGIN catrow -->
<!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
<h{catrow.cathead.LEVEL} class="hierarchy">
<span class="cattitle">
<a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}">{catrow.cathead.CAT_TITLE}</a>
</span>
</h{catrow.cathead.LEVEL}>
</td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
<!-- END inc -->
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td>
<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}></td></tr></tbody></table>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="gensmall">
<!-- BEGIN switch_moderators_links -->
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
</span><br /><br />
<table width="100%"><tbody><tr><td style="padding-left: 40px; text-align: right;" class="gensmall"><b>{catrow.forumrow.POSTS} messages | {catrow.forumrow.TOPICS} sujets.</b></td></tr></tbody></table>
</td>
<!-- BEGIN forum_link_no -->
<td class="row3 over" align="center" valign="middle" height="50">
<span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
<!-- END forum_link_no -->
<!-- BEGIN forum_link -->
<td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
<!-- END forum_link -->
</tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
<!-- END inc -->
<td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Re: Affichage du nombre de sujet et de message !
Merciiii le code marche très bien
J'ai refais quelques modifs au niveau du texte et c'est parfais, mille merci !!
J'ai refais quelques modifs au niveau du texte et c'est parfais, mille merci !!
Sujets similaires
» Nombre de message et de sujet
» affichage différent de sujet et message
» Déplacé le nombre de sujet et de message
» problème d'affichage - bouton nouveau message/sujet
» Enlever "nombre de message dans tels sujet"
» affichage différent de sujet et message
» Déplacé le nombre de sujet et de message
» problème d'affichage - bouton nouveau message/sujet
» Enlever "nombre de message dans tels sujet"
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Gérer l'apparence de son forum :: Archives des problèmes avec l'apparence du forum
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum