MyBB.support, le portail francophone de MyBB
[Réglé] Sous forum - Version imprimable

+- MyBB.support, le portail francophone de MyBB (http://mybb.fr)
+-- Forum : Thèmes (http://mybb.fr/forum-4.html)
+--- Forum : Support (http://mybb.fr/forum-6.html)
+--- Sujet : [Réglé] Sous forum (/thread-4859.html)



Sous forum - Tenshrock - 29-10-2011

Bonjour.

Ayant changer le thème de mon forum il y a très peu de temps, j'ai décider de partir à la chasse aux bugs. J'en ais trouver 1 plutôt gênant et je ne sais pas comment et ou le réglé :s...

[Image: sansti-1319842320.png]

Le sous forum ne s'affiche pas très bien, pourriez vous me guider ?

Cordialement, Tenshrock.


RE: Sous forum - spyto - 29-10-2011

Certainement un problème de CSS, mais pour trouver ça sur une image !? Tongue
Un lien serait souhaitable pour pouvoir examiner le code source.


RE: Sous forum - Tenshrock - 29-10-2011

(29-10-2011, 9:31)spyto a écrit :  Certainement un problème de CSS, mais pour trouver ça sur une image !? Tongue
Un lien serait souhaitable pour pouvoir examiner le code source.
Oui, excusez moi : http://www.nazizombies.fr/forumdisplay.php?fid=23


RE: Sous forum - spyto - 29-10-2011

Désolé, mais je ne vois pas ce qui est encadré en rouge dans le sccreenshot.


RE: Sous forum - exdiogene - 29-10-2011

Je ne vois pas non plus l'erreur encadrée de rouge...

Tout semble affiché correctement sur le forum...


RE: Sous forum - Tenshrock - 29-10-2011

Ah oui, car vous n'avez pas les permissions :s.
Un autre exemple : http://www.nazizombies.fr/forumdisplay.php?fid=9


RE: Sous forum - spyto - 29-10-2011

Code source de l'entête du tableau :
Code PHP :
<!-- startforumdisplay_subforums -->
<
table border="0" cellspacing="0" cellpadding="4" class="tborder">
<
tr>
<
td class="thead" colspan="5" align="center"><strong>Forums dans 'Votre pseudo'</strong></td>
</
tr>
<
tr>
<
td class="tcat" width="2%">&nbsp;</td>
<
td class="tcat" width="59%"><span class="smalltext"><strong>Forum</strong></span></td>
<
td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>Discussions</strong></span></td>
<
td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>Messages</strong></span></td>
<
td class="tcat" width="15%" align="center"><span class="smalltext"><strong>Dernier message</strong></span></td>

</
tr
Tu noteras que toutes les cololnnes sont en %

Suite du tableau :
Code PHP :
<!-- startforumbit_depth2_forum -->
<
tr>
<
td>
<
table class="index-trow" border="0" cellspacing="0" cellpadding="4">
<
tr>
<
td align="center" valign="middle" width="1"><img src="http://assets.nazizombies.fr/images/lust/on.gif" style="margin-left: -10px;" alt="Le forum contient de nouveaux messages." title="Le forum contient de nouveaux messages." class="ajax_mark_read" id="mark_read_17" /></td>
<
td class="name-subs" valign="middle">
<
a href="forumdisplay.php?fid=17" class="forum-name">XBOX 360</a><div class="smalltext">Votre pseudonyme sur XBX 360.<div></div></div>
</
td>
<
td width="100" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">1 Discussions </span></td>
<
td width="100" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">2 Messages </span></td>
<
td width="200" valign="middle" align="right" style="white-space: nowrap"><!-- startforumbit_depth2_forum_lastpost -->

<
span class="smalltext">
<
a href="showthread.php?tid=5&amp;action=lastpost" title="sur xbox"><strong>sur xbox</strong></a>
<
br />13-08-2011 01:40 PM<br />par <a href="http://www.nazizombies.fr/member.php?action=profile&amp;uid=9">terhub</a></span>

<!-- 
endforumbit_depth2_forum_lastpost --> 
Ici tu noteras que tes colonnes ont une largeur fixe de 100, ce qui explique l'affichage désastreux !

Conclusion : il faut reporter les mêmes largeurs de colonne qu plus haut : 59%, 7%, 7%, 15% à la place des td width="100"
td width="59%" etc...
(dans le template forumbit_depth2_forum)


RE: Sous forum - Tenshrock - 29-10-2011

Je comprend pas :s.

Donc je devrais avoir :
Citation :<tr>
<td>
<table class="index-trow" border="0" cellspacing="0" cellpadding="{$theme['tablespace']}">
<tr>
<td align="center" valign="middle" width="59%"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" style="margin-left: -10px;" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="name-subs" valign="middle">
<a href="{$forum_url}" class="forum-name">{$forum['name']}</a>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}<div>{$subforums}</div></div>
</td>
<td width="7%" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">{$threads} {$lang->forumbit_threads} {$unapproved['unapproved_threads']}</span></td>
<td width="7%" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">{$posts} {$lang->forumbit_posts} {$unapproved['unapproved_posts']}</span></td>
<td width="15%" valign="middle" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
</table>
</td>
</tr>



RE: Sous forum - Tenshrock - 31-10-2011

Up s'il vous plait Smile.


RE: Sous forum - spyto - 31-10-2011

Non, plutôt :
Code PHP :
<tr>
<
td>
<
table class="index-trow" border="0" cellspacing="0" cellpadding="{$theme['tablespace']}">
<
tr>
<
td align="center" valign="middle" width="2%"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" style="margin-left: -10px;" alt="{$lightbulb['altonoff']}title="{$lightbulb['altonoff']}class="ajax_mark_read" id="mark_read_{$forum['fid']}/></td>
<
td width="59%" class="name-subs" valign="middle">
<
a href="{$forum_url}class="forum-name">{$forum['name']}</a>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}<div>{$subforums}</div></div>
</
td>
<
td width="7%" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">{$threads} {$lang->forumbit_threads} {$unapproved['unapproved_threads']}</span></td>
<
td width="7%" valign="middle" align="center" style="white-space: nowrap"><span class="forum-info">{$posts} {$lang->forumbit_posts} {$unapproved['unapproved_posts']}</span></td>
<
td width="15%" valign="middle" align="right" style="white-space: nowrap">{$lastpost}</td>
</
tr>
</
table>
</
td>
</
tr
...pour respecter les largeurs des colonnes successives


RE: Sous forum - Tenshrock - 31-10-2011

Ne fonctionne pas : view-source:http://www.nazizombies.fr/forumdisplay.php?fid=4 ligne 127.


RE: Sous forum - exdiogene - 31-10-2011

Le principal problème est que le contenu est inséré dans un table qui elle est contenu dans la première colonne du contenu en oubliant les 4 autres colonnes.

Dans le template "forumbit_depth2_forum" il y a :
Code PHP :
<tr>
<
td>
<
table class="index-trow" border="0" cellspacing="0" cellpadding="4"
Il faudrait changer pour :
Code PHP :
<tr>
<
td colspan=5>
<
table class="index-trow" border="0" cellspacing="0" cellpadding="4"



RE: Sous forum - Tenshrock - 31-10-2011

Ça fonctionne Wink merci beaucoup, problème résolu Smile.


 Utilitaire de traduction fourni par Regentronique