[Release] Stats (Top credits/pixels)[Plugin]

Thom780c

Member
Jan 14, 2012
107
1
Haii,

here is a simple page for Credits and pixels (activity points) top. Kristopher going to release his Credits page top. i wanted to release mine too ^^

Screenshot :



need Help ? ask here i will answere.

Negativ comment keep them for yourself.

Credits : Extreme (me)
Cool ! BUT when i am in the retro its not comming up "stats" in the bar where "news" and "me" and "logout" are first when i seach like "localhost/stats" its comming up, but when i not are in the stats then its not in the bar? can you help me?
 

Spartak

Member
Sep 24, 2011
225
33
Cool ! BUT when i am in the retro its not comming up "stats" in the bar where "news" and "me" and "logout" are first when i seach like "localhost/stats" its comming up, but when i not are in the stats then its not in the bar? can you help me?
you need to add it to your header
 

Elf

Member
Apr 2, 2012
153
10
go to me.php and look for a line that says something like
<div id="content">
<a href="index"><img src="app/tpl/skins/Mango/images/logo.png" id="logo" border="0"/></a>
<ul id="menu">

under is it should say:
<li><a href="me">Me</a></li>
<li><a href="account">My Account</a></li>
<li><a href="news">News</a></li>

etc etc. copy one of them lines: ex: <li><a href="me">Me</a></li>

then edit it to this: <li><a href="stats">Stats</a></li>

your welccome :)
 

sebasboy13

New Member
Jan 31, 2015
3
0
Code for only rank 1 + 2




<div class="content-box">
<div class="content-box-black">
<h2 class="title">Credits</h2>
</div> <div class="content-box-content">
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Username</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Credits</b></td>
</tr>
<?PHP
$rank1 = '1';
$rank2 = '';
$sql = mysql_query("SELECT username, credits FROM users where rank in ('1','2') ORDER BY credits DESC LIMIT 0,5");

while($a = mysql_fetch_array($sql)) {
echo "<tr>
<td class='tablerow1' align='center'><hr />".filter($a['username'])."</a></td>
<td class='tablerow2' align='center'><hr />".Filter($a['credits'])."</td>

</tr>";
} ?>

</table>
</div>
</div> <br/>

<!-- HERE WE START YOUR Pixels SCRIPT -->


<div class="content-box">
<div class="content-box-deep-blue">
<h2 class="title">Pixels</h2>
</div> <div class="content-box-content">
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Username</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Pixels</b></td>
</tr>
<?PHP
$sql = mysql_query("SELECT username, activity_points FROM users where rank in ('1','2') ORDER BY activity_points DESC LIMIT 0,5");

while($a = mysql_fetch_array($sql)) {
echo "<tr>
<td class='tablerow1' align='center'><hr />".filter($a['username'])."</a></td>
<td class='tablerow2' align='center'><hr />".Filter($a['activity_points'])."</td>

</tr>";
} ?>

</table>
</div>
</div> <br/>
<div id="clear"></div></div>
 

KingLegend

head chav
May 17, 2015
96
22
Code for only rank 1 + 2




<div class="content-box">
<div class="content-box-black">
<h2 class="title">Credits</h2>
</div> <div class="content-box-content">
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Username</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Credits</b></td>
</tr>
<?PHP
$rank1 = '1';
$rank2 = '';
$sql = mysql_query("SELECT username, credits FROM users where rank in ('1','2') ORDER BY credits DESC LIMIT 0,5");

while($a = mysql_fetch_array($sql)) {
echo "<tr>
<td class='tablerow1' align='center'><hr />".filter($a['username'])."</a></td>
<td class='tablerow2' align='center'><hr />".Filter($a['credits'])."</td>

</tr>";
} ?>

</table>
</div>
</div> <br/>

<!-- HERE WE START YOUR Pixels SCRIPT -->


<div class="content-box">
<div class="content-box-deep-blue">
<h2 class="title">Pixels</h2>
</div> <div class="content-box-content">
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Username</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Pixels</b></td>
</tr>
<?PHP
$sql = mysql_query("SELECT username, activity_points FROM users where rank in ('1','2') ORDER BY activity_points DESC LIMIT 0,5");

while($a = mysql_fetch_array($sql)) {
echo "<tr>
<td class='tablerow1' align='center'><hr />".filter($a['username'])."</a></td>
<td class='tablerow2' align='center'><hr />".Filter($a['activity_points'])."</td>

</tr>";
} ?>

</table>
</div>
</div> <br/>
<div id="clear"></div></div>

This thread is 2 years old!
 

Users who are viewing this thread

Top