Mettre l'auteur sous le titre du sujet, problème avec code
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Mettre l'auteur sous le titre du sujet, problème avec code
Bonjour,
C'est encore moi ! Je suis en mode, je travaille sur mon forum donc j'ai beaucoup de questions à poser aujourd'hui !
Bon, trêve de blablatage, voici mon problème. J'ai suivi le sujet qui est ici:
https://forum.forumactif.com/t344889-mettre-l-auteur-en-face-du-titre-du-sujet
pour modifier l'emplacement de l'auteur, mais lorsque je suis pas à pas les étapes, il y a un problème avec le tableau:
Je pense qu'il doit y avoir une ligne à supprimer pour effacer une colonne mais comme je n'ai aucune idée de quelle ligne il s'agit, je n'ose pas trop bidouiller. Quelqu'un saurait m'aider ?
Merci d'avance
C'est encore moi ! Je suis en mode, je travaille sur mon forum donc j'ai beaucoup de questions à poser aujourd'hui !
Bon, trêve de blablatage, voici mon problème. J'ai suivi le sujet qui est ici:
https://forum.forumactif.com/t344889-mettre-l-auteur-en-face-du-titre-du-sujet
pour modifier l'emplacement de l'auteur, mais lorsque je suis pas à pas les étapes, il y a un problème avec le tableau:
- Spoiler:
Je pense qu'il doit y avoir une ligne à supprimer pour effacer une colonne mais comme je n'ai aucune idée de quelle ligne il s'agit, je n'ose pas trop bidouiller. Quelqu'un saurait m'aider ?
Merci d'avance
Dernière édition par Lexis le Mar 2 Avr 2013 - 16:22, édité 1 fois
Re: Mettre l'auteur sous le titre du sujet, problème avec code
Bonjour,
Vérifie que tu as bien supprimé les deux parties indiquées par Matriochka ici, attention il y en a bien deux à supprimer, pas une seule.
Vérifie que tu as bien supprimé les deux parties indiquées par Matriochka ici, attention il y en a bien deux à supprimer, pas une seule.
Arlem- Membre actif
- Messages : 2550
Inscrit(e) le : 30/06/2009
Re: Mettre l'auteur sous le titre du sujet, problème avec code
Merci de ta réponse si rapide *_*
Pour moi j'ai bien supprimé les deux lignes, je viens de recommencer pour la 5ème fois LOL
Normalement ça donne ça dans le template n'est ce pas ?
Pour moi j'ai bien supprimé les deux lignes, je viens de recommencer pour la 5ème fois LOL
- Code:
<!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
var all_checked = true;
for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
}
}
document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
}
}
}
</script>
<!-- END multi_selection -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
<th align="center" nowrap="nowrap" width="80"> {topics_list_box.row.L_REPLIES} </th>
<th align="center" nowrap="nowrap" width="50"> {topics_list_box.row.L_VIEWS} </th>
<th align="center" nowrap="nowrap" width="150"> {topics_list_box.row.L_LASTPOST} </th>
<!-- BEGIN multi_selection -->
<th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
<!-- END multi_selection -->
</tr>
<!-- BEGIN pagination -->
<tr>
<td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
</tr>
<!-- END pagination -->
<!-- END header_table --><!-- BEGIN header_row -->
<tr>
<td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
</tr>
<!-- END header_row -->
<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
<tr>
<!-- BEGIN single_selection -->
<td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
<!-- END single_selection -->
<td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
<!-- BEGIN icon -->
<td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
<!-- END icon -->
<td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
<div class="topictitle">
{topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
<h2 class="topic-title">
<a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a><br>
posté par {topics_list_box.row.TOPIC_AUTHOR}
</h2>
</div>
<!-- BEGIN switch_description -->
<span class="genmed">
<br />
{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
</span>
<!-- END switch_description -->
<span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>
<span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
</td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
<td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
<td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
<!-- END multi_selection -->
</tr>
<!-- END topic --><!-- BEGIN no_topics -->
<tr>
<td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
</tr>
<!-- END no_topics --><!-- BEGIN bottom -->
<tr>
<td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <span class="gensmall">{PAGINATION}</span></td>
<td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
</tr>
</table>
</td>
</tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->
Normalement ça donne ça dans le template n'est ce pas ?
Re: Mettre l'auteur sous le titre du sujet, problème avec code
Effectivement, je ne reproduisais pas le soucis au début mais en fait ça vient du fait que dans Général => Configuration (Messages & Emails), tu as sélectionné "Par un tableau" à "Séparer les annonces et posts-it des messages", et ça ne semble pas modifiable via le template topic_list_box étrangement...
Je vais continuer à chercher et je viendrais te dire si je trouve une solution viable, en attendant tu peux cocher "Par une ligne" dans la configuration pour corriger le problème.
Edit : Voilà une solution, suis les étapes données par Matriochka sans supprimer les deux parties indiquées (donc du coup place juste la variable de l'auteur où tu souhaites ), puis dans la gestion des codes Javascript, créé-en un nouveau, actif "Sur les sous-forum" uniquement, et mets ce code dedans :
Je vais continuer à chercher et je viendrais te dire si je trouve une solution viable, en attendant tu peux cocher "Par une ligne" dans la configuration pour corriger le problème.
Edit : Voilà une solution, suis les étapes données par Matriochka sans supprimer les deux parties indiquées (donc du coup place juste la variable de l'auteur où tu souhaites ), puis dans la gestion des codes Javascript, créé-en un nouveau, actif "Sur les sous-forum" uniquement, et mets ce code dedans :
- Code:
$(function() {
$('th:contains("Auteur"),td.row3').hide();
});
Arlem- Membre actif
- Messages : 2550
Inscrit(e) le : 30/06/2009
Re: Mettre l'auteur sous le titre du sujet, problème avec code
Ça marche du tonnerre !! Merci beaucoup de ton aide !
Ce que j'aimerai être capable de faire la même chose que toi *_*
Ce que j'aimerai être capable de faire la même chose que toi *_*
Sujets similaires
» Code pour mettre le titre des catégories en majuscule
» Code pour mettre une image en fond de titre de catégorie.
» Problème Code titre défilement
» Problème code titre catégorie majuscule
» problème pour mettre du html par du code javascript
» Code pour mettre une image en fond de titre de catégorie.
» Problème Code titre défilement
» Problème code titre catégorie majuscule
» problème pour mettre du html par du code javascript
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum