Bonjour, j'ai un problème avec la modification de mon forum en rapport avec la template forumbit_depth1_cat:
Voilà donc dans la petite section Dernier message, j'aimerais que sa sois marquer Jamais (Vue qu'il y a aucun message) et aussi de marquer le dernier message quand il y en a un. comme tout les forums.
Merci de votre aide!
Essai sur le thème par défaut pour voir si ça marche.
Si oui le problème vient de ce thème en particulier et il te faudra modifier ce template
(n'ayant pas accès au panel du forum je ne peux pas plus t'aider, il faudra que tu donne les identifiants d'un compte avec accès aux admins)
Je sais que cela vien du thème. je fais de grosse modification dessu!
Est-ce que tu veux que je t'envoi le code complet de cette template? pour que tu puissent m'aider?
Voici le contenu original de ce template :
forumbit_depth1_cat a écrit :<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
Donc la table a 5 colonnes dont les deux premières sont regroupées pour chaque forum.
La variable utilisée pour afficher "aucun message" est dans le fichier "inc/languages/french/global.lang.php" :
Code PHP :
$l['lastpost_never'] = "Jamais";
(05-06-2014, 1:42)exdiogene a écrit : [ -> ]Voici le contenu original de ce template :
forumbit_depth1_cat a écrit :<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
Donc la table a 5 colonnes dont les deux premières sont regroupées pour chaque forum.
La variable utilisée pour afficher "aucun message" est dans le fichier "inc/languages/french/global.lang.php" :
Code PHP :
$l['lastpost_never'] = "Jamais";
Au début j'ai modifier ce template pour voir Messages & Sujets Verticalement et non horizontalement. j'ai alors modifier et maintenant je ne sais vraiment pas comment faire pour faire réaparraite le dernier message en ayant la colonne Message et sujet verticalement.
(05-06-2014, 1:50)exdiogene a écrit : [ -> ]Voici la section qui contient cette information, il suffit de l'ajouter au bon endroit :
Code PHP :
<span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span>
Mon problème est la, ou l'ajouté dans mon template actuel
?
J'ai vraiment essayer tout, est-ce que vous pouvez me le faire avec les informations que je vous est fournis? sa serait tellement apprécier merci d'avance!
Le template contenant l'information si disponible est "forumbit_depth2_forum_lastpost" et contient ceci :
Code PHP :
<span class="smalltext">
<a href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date} {$lastpost_time}<br />{$lang->by} {$lastpost_profilelink}</span>
Si non disponible la variable "$l['lastpost_never']" sera utilisée.
Tout ceci est affiché par le template "forumbit_depth2_forum" contenant :
Code PHP :
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
Dont la partie importante est :
Code PHP :
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
Donc, vous n'avez qu'à copier "{$lastpost}" à l'endroit approprié dans votre template "forumbit_depth2_forum".
c'est tellement compliqué donc je dois remplacer quoi? ou? vue que tu t'y connait très je te laisse le faire via mon compte.
Désolé j'ai du mal à comprende
Malheureusement j'ai terminé ma journée et c'est le moment d'aller dormir pour moi.
Citation :Donc, vous n'avez qu'à copier "{$lastpost}" à l'endroit approprié dans votre template "forumbit_depth2_forum".
D'accord merci de t'on aide, au quebec il est que 20h00
Oui, mais je me lève vers 4h30 tous les matins...
Je remarque ce matin que tout semble correct sur votre site.
Peut-on considérer ce problème résolu?