Personalizare statistici - phpBB2 Salutare, Dupa ce m-am chinuit sa fac niste statistici frumosase, ca aspect, desigur, am reusit ! Si am hotarat sa impartasesc cu voi codul.
Intram in template-ul index_body, cautam:
Cod: <!-- BEGIN disable_viewonline --> <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td class="catHead" colspan="2" height="28"> <!-- BEGIN switch_viewonline_link --> <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span> <!-- END switch_viewonline_link -->
<!-- BEGIN switch_viewonline_nolink --> <span class="cattitle">{L_WHO_IS_ONLINE}</span> <!-- END switch_viewonline_nolink --> </td> </tr> <tr> <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td> <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br /> {TOTAL_USERS}<br /> {NEWEST_USER}</span></td> </tr> <tr> <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br /> {RECORD_USERS}<br /> <br /> {LOGGED_IN_USER_LIST}</span></td> </tr> {L_CONNECTED_MEMBERS} {L_WHOSBIRTHDAY_TODAY} {L_WHOSBIRTHDAY_WEEK} <tr> <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td> </tr>
Si il inlocuim cu:
Cod: <!-- BEGIN disable_viewonline --> <table width="100%" border="0" cellspacing="0" cellpadding="3" > <tr> <td align="left" valign="top" width="50%" class="Online"> <a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div></div> <br> <hr> {TOTAL_USERS_ONLINE}<br> {RECORD_USERS}<br> {LOGGED_IN_USER_LIST} </div> </td> <td></td>
<td align="left" valign="top" width="50%" class="Stratistici"><a href="/stats.htm">Statisticile Forumului</a><br></div></div> <hr> {TOTAL_POSTS}<br> {TOTAL_USERS}<br> {NEWEST_USER}<br>
</div></td></tr></table>
<br>
<div class="Stratistici"> <table width="100%" border="0" cellspacing="0" cellpadding="3" ><tr> {LEGEND} : <span id="group-legend">{GROUP_LEGEND}</span> <hr> {L_CONNECTED_MEMBERS}
</tr></td></table></div>
Apoi mergem in CSS si adaugam:
Cod: .Online{ padding:5px; margin:5px; font-size:13px; font-family:Trebuchet MS; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #DCDCDC;}
.Stratistici{ padding:5px; margin:5px; font-size:13px; font-family:Trebuchet MS; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #DCDCDC;}
#group-legend { font-size: 0; color: transparent; line-height: 0; }
#group-legend a { font-size: 10px; line-height: normal; margin: 0 8px 0 0; }
Sper sa va placa tutorialul si sa va fie de ajutor.
Tutorial scris de [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
Copyright Extrem-Tutorials.com - Nici o parte a acestui tutorial nu poate fi reprodusa fara acordul autorului. Reproducerea acestui tutorial nu este posibila fara acordul nostru, in conformitate cu articolul L122-1 apartinand ICC.
|
Mr.CrazyLun 20 Feb - 14:37