| | [Question] Modifier l'affichage de la case "dernier message" | |
|
| Auteur | Message |
|---|
 | |
 | |
| | ozmagoray 

Voir le dossier scolaire Etudiante Nombre de messages: 610 Age: 40 $ops: 4317 Points: 5 Date d'inscription: 24/04/2011 Distinctions: Déléguée de Mars 2012
| | |
 | Sujet: Re: [Question] Modifier l'affichage de la case "dernier message" Jeu 8 Déc - 14:31 | |
| coucou, je n'y arrive pas , j'ai suivi ce tuto: http://www.school-of-pub.net/t5293-modification-de-l-affichage-des-colonnes-sur-l-index or moi j'ai : | Code: | <div class="infos_stats"><span class="gensmall">{catrow.forumrow.TOPICS} sujets - {catrow.forumrow.POSTS} messages</span></div>
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> <!-- BEGIN switch_ficons --> </td></tr></table> <!-- END switch_ficons --> </td> <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
|
à la place de :
| Code: | <span class="gensmall">{catrow.forumrow.LAST_POST}</span> <span class="gensmall"> {catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </span> |
j'ai donc les "moderator" au milieu, je ne sais pas où et comment insérer ce code:
| Code: | <table class="case_stats" cellpadding="0" cellspacing="0"> <tr> <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td> </tr> <tr> <td class="stats_forum"><p> {catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </p></td> </tr> </table> |
|
|
 | |
 | |
 | |
| | ozmagoray 

Voir le dossier scolaire Etudiante Nombre de messages: 610 Age: 40 $ops: 4317 Points: 5 Date d'inscription: 24/04/2011 Distinctions: Déléguée de Mars 2012
| | |
 | Sujet: Re: [Question] Modifier l'affichage de la case "dernier message" Ven 9 Déc - 15:56 | |
| coucou | Code: | <table align="center" width="92%" 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"> <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br/> <!-- BEGIN switch_user_logged_in --> <a href="{U_SEARCH_NEW}" class="gensmall"><font color=#339999>Voir les nouveaux messages</a><br />
<!-- END switch_user_logged_in --> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br /> <!-- BEGIN switch_user_logged_in --> <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span> <br/>
<!-- END switch_user_logged_in --> </tr> </table> <!-- BEGIN catrow --> <table width="100%" border="0"> <tr> <th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th> <th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </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"> </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"> <!-- BEGIN switch_ficons --> <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"><tr><td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td><td> <!-- END switch_ficons --> <h1 class="titre"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></h1> <div class="description_forum">{catrow.forumrow.FORUM_DESC}</div><span class="genmed"> <!-- BEGIN switch_has_subforums -->
<!-- END switch_has_subforums --> <!-- BEGIN subforumrow --> <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> <!-- END subforumrow -->
<div class="infos_stats"><span class="gensmall">{catrow.forumrow.TOPICS} sujets - {catrow.forumrow.POSTS} messages</span></div>
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> <!-- BEGIN switch_ficons --> </td></tr></table> <!-- END switch_ficons --> </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> <!-- END catrow -->
<table align="center" width="92%" cellspacing="0" border="0" align="center" cellpadding="2"> <tr> <td align="left"> </td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table>
<table align="center" width="92%" 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://img9.xooimage.com/files/e/5/5/ki2-2c37783.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} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td> </tr> <tr> <td class="catBottom" colspan="5" style="-moz-border-radius-bottomleft: 12px;-moz-border-radius-bottomright: 12px"></td> </tr> </table>
<table align="center" width="92%" 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" /> {L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" /> <!-- BEGIN switch_allow_autologin -->
{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <!-- END switch_allow_autologin -->
<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://img9.xooimage.com/files/a/d/6/new-2c37a29.png" alt="{L_NEW_POSTS}"/></td> <td><span class="gensmall">{L_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="http://img9.xooimage.com/files/c/d/1/nonew-2c37a36.png" alt="{L_NO_NEW_POSTS}" /></td> <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="http://img7.xooimage.com/files/3/8/c/lock-2c37a20.png" alt="{L_FORUM_LOCKED}" /></td> <td><span class="gensmall">{L_FORUM_LOCKED}</span></td> </tr> </table> |
|
|
 | |
 | Sujet: Re: [Question] Modifier l'affichage de la case "dernier message" Ven 9 Déc - 17:36 | |
| Alors alors  Dans ton code, on va avoir : -> dans la case du milieu : description + modérateur | Code: | <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"> <tr> <td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td> <td> <!-- END switch_ficons --> <h1 class="titre"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></h1> <div class="description_forum">{catrow.forumrow.FORUM_DESC}</div> <span class="genmed"> <!-- BEGIN switch_has_subforums -->
<!-- END switch_has_subforums --> <!-- BEGIN subforumrow --> <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> <!-- END subforumrow --> </span> <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> <!-- BEGIN switch_ficons --> </td> </tr> </table> |
-> dans la case du dernier message : les stats + dernier message.
| Code: | <table class="case_stats" cellpadding="0" cellspacing="0"> <tr> <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td> </tr> <tr> <td class="stats_forum"><p> {catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </p></td> </tr> </table> |
Et si on assemble le tout pour la ligne contenant tout ça (image d'état du forum + description + derniers messages)
| Code: | <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"> <!-- BEGIN switch_ficons --> <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"> <tr> <td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td> <td> <!-- END switch_ficons --> <h1 class="titre"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></h1> <div class="description_forum">{catrow.forumrow.FORUM_DESC}</div> <span class="genmed"> <!-- BEGIN switch_has_subforums -->
<!-- END switch_has_subforums --> <!-- BEGIN subforumrow --> <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> <!-- END subforumrow --> </span> <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> <!-- BEGIN switch_ficons --> </td> </tr> </table> <!-- END switch_ficons --> </td> <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <table class="case_stats" cellpadding="0" cellspacing="0"> <tr> <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td> </tr> <tr> <td class="stats_forum"><p> {catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </p></td> </tr> </table> </td> </tr> |
Voilà donc ton template corrigé
| Code: | <table align="center" width="92%" 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"> <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br/> <!-- BEGIN switch_user_logged_in --> <a href="{U_SEARCH_NEW}" class="gensmall"><font color=#339999>Voir les nouveaux messages</a><br />
<!-- END switch_user_logged_in --> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br /> <!-- BEGIN switch_user_logged_in --> <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span> <br/>
<!-- END switch_user_logged_in --> </tr> </table> <!-- BEGIN catrow --> <table width="100%" border="0"> <tr> <th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th> <th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </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"> </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"> <!-- BEGIN switch_ficons --> <table style="padding:0;margin:0;" cellspacing="0" cellpadding="0"> <tr> <td style="width:{FICONSW}px;padding:3px">{catrow.forumrow.FORUM_ICON}</td> <td> <!-- END switch_ficons --> <h1 class="titre"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></h1> <div class="description_forum">{catrow.forumrow.FORUM_DESC}</div> <span class="genmed"> <!-- BEGIN switch_has_subforums -->
<!-- END switch_has_subforums --> <!-- BEGIN subforumrow --> <img src="{catrow.forumrow.subforumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.subforumrow.L_FORUM_FOLDER_ALT}" /><b><a href="{catrow.forumrow.subforumrow.U_VIEWFORUM}" class="postlink">{catrow.forumrow.subforumrow.FORUM_NAME}</a></b> <!-- END subforumrow --> </span> <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span> <!-- BEGIN switch_ficons --> </td> </tr> </table> <!-- END switch_ficons --> </td> <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <table class="case_stats" cellpadding="0" cellspacing="0"> <tr> <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td> </tr> <tr> <td class="stats_forum"><p> {catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </p></td> </tr> </table> </td> </tr> <!-- END forumrow --> </table> <!-- END catrow -->
<table align="center" width="92%" cellspacing="0" border="0" align="center" cellpadding="2"> <tr> <td align="left"> </td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table>
<table align="center" width="92%" 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://img9.xooimage.com/files/e/5/5/ki2-2c37783.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} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td> </tr> <tr> <td class="catBottom" colspan="5" style="-moz-border-radius-bottomleft: 12px;-moz-border-radius-bottomright: 12px"></td> </tr> </table>
<table align="center" width="92%" 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" /> {L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" /> <!-- BEGIN switch_allow_autologin -->
{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <!-- END switch_allow_autologin -->
<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://img9.xooimage.com/files/a/d/6/new-2c37a29.png" alt="{L_NEW_POSTS}"/></td> <td><span class="gensmall">{L_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="http://img9.xooimage.com/files/c/d/1/nonew-2c37a36.png" alt="{L_NO_NEW_POSTS}" /></td> <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="http://img7.xooimage.com/files/3/8/c/lock-2c37a20.png" alt="{L_FORUM_LOCKED}" /></td> <td><span class="gensmall">{L_FORUM_LOCKED}</span></td> </tr> </table> |
|
|
 | |
| | ozmagoray 

Voir le dossier scolaire Etudiante Nombre de messages: 610 Age: 40 $ops: 4317 Points: 5 Date d'inscription: 24/04/2011 Distinctions: Déléguée de Mars 2012
| | |
 | |
 | |
 | |
 | |
| | ozmagoray 

Voir le dossier scolaire Etudiante Nombre de messages: 610 Age: 40 $ops: 4317 Points: 5 Date d'inscription: 24/04/2011 Distinctions: Déléguée de Mars 2012
| | |
 | |
 | |
| | [Question] Modifier l'affichage de la case "dernier message" | |
|