Je connais cette modification possible sur vBulletin, mais par contre, je ne sais pas comment on fait pour MyBB.
Arf..
J'attends quelqu'un d'autre alors x).
Salut, méthode relativement
simple.
Vas sur ton ACP => Templates => Template de ton thème => Statistiques Templates => stats.
Voici le code
chez moi :
Code PHP :
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->board_stats}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->board_stats}</strong></td>
</tr>
<tr>
<td class="tcat" width="50%"><strong>{$lang->totals}</strong></td>
<td class="tcat" width="50%"><strong>{$lang->averages}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top">
{$lang->posts} <strong>{$stats['numposts']}</strong><br />
{$lang->threads} <strong>{$stats['numthreads']}</strong><br />
{$lang->members} <strong>{$stats['numusers']}</strong>
</td>
<td class="trow1" rowspan="3" valign="top">
{$lang->ppd} <strong>{$postsperday}</strong><br />
{$lang->tpd} <strong>{$threadsperday}</strong><br />
{$lang->mpd} <strong>{$membersperday}</strong><br />
{$lang->ppm} <strong>{$postspermember}</strong><br />
{$lang->rpt} <strong>{$repliesperthread}</strong>
</td>
</tr>
<tr>
<td class="tcat" valign="top"><strong>{$lang->general}</strong></td>
</tr>
<tr>
<td class="trow1">
{$lang->newest_member} {$stats['newest_user']}<br />
{$lang->members_posted} <strong>{$havepostedpercent}</strong><br />
{$lang->todays_top_poster}<br />
{$lang->popular_forum}
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->most_popular}</strong></td>
</tr>
<tr>
<td class="tcat" width="50%"><strong>{$lang->most_replied_threads}</strong></td>
<td class="tcat" width="50%"><strong>{$lang->most_viewed_threads}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top">{$mostreplies}</td>
<td class="trow1" valign="top">{$mostviews}</td>
</tr>
</table>
{$footer}
</body>
</html>
Je n'ai pas vraiment trouver quelle ligne recopier, la seule chose dont
je suis certain c'est que le code des stats
devra être former comme ceci :
Code PHP :
<code de la barre du thème>
{$lang->posts} <strong>{$stats['numposts']}</strong><br />
{$lang->threads} <strong>{$stats['numthreads']}</strong><br />
</code de la barre du thème>
Mais ce que je demande c'est ça :
Ah j'avais mal compris alors, bon et bien, désolé, mais là, je ne suis en mesure de t'aider.
J'avoue que je ne comprends pas bien la question....
Si tu bascules en affichage "classique" dans ta configuration utilisateur, c'est bien comme ça que ça s'affiche !... Et c'est bien centré dans la colonne !?
Ou alors tu veux en plus un cadre autour ?...
Ou bien tu n'arrives pas à ajouter les infos sur le sexe, la bio etc ?
Dans tous les cas il faut éditer le template 'postbit'.
Regarde là :
http://www.mybb.fr/showthread.php?tid=584
vers la fin de la discussion.
Je croyais qu'il voulait encadrer les stats sur la page index tout en bas, dans ce cas, j'ai réussis mais là je vois ce qu'il veut, mais je n'y arriverais pas.
spyto a écrit :Hellus a écrit :UP !!!
OK.. mais précise !
Là par exemple http://www.mybb.fr/showthread.php?tid=1670&pid=9717#pid9717, tu me réponds
<<<
C'est souligné, mais il n'y a pas de lien...
C'est-à-dire ??????
Tu m'as dis :
Citation :Ou alors tu veux en plus un cadre autour ?...
Je t'ai répondu : <<<.
Sa veut dire c'est ça que je cherche
admin/index.php?module=style/templates&action=edit_template&title=postbit&sid=2&expand=12
Code PHP :
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
Impossible de supprimer le message précédent, désolé, je n'avais pas vue que je l'avais déjà envoyer.
Ce doit être un truc comme ça:
Code PHP :
<td border="1" class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
PS: Il y a d'autre moyen de bump un sujet plus respectueusement.
Si cela ne marche pas, vas dans global.css:
trouve: smalltext post_author_info et fait en sorte que ça affiche le bord, tout simplement.
Code PHP :
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
</tr>
</table>
Tu dois enlever le border =0 ici, sinon tu pourras pas ajouter des bord à l'interieur du cadre, mais c'est pas si facile que c'en a l'air, je te laisse bidouiller, j'ai suffisamment perdu de temps comme ça.