MyBB-Plugins Forums
REQUESTING: MY PLAZA MOST RICH USERS - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.4.x (http://forums.mybb-plugins.com/Forum-MyBB-1-4-x)
+---- Forum: MyPlaza Turbo (http://forums.mybb-plugins.com/Forum-MyPlaza-Turbo)
+----- Forum: Requests (http://forums.mybb-plugins.com/Forum-Requests--15)
+----- Thread: REQUESTING: MY PLAZA MOST RICH USERS (/Thread-REQUESTING-MY-PLAZA-MOST-RICH-USERS)



REQUESTING: MY PLAZA MOST RICH USERS - Glas - 08-08-2009

Hello i got this .php is not even an plugin

but its for MYPS
could anyone port it to MYPLAZA?
Quote:<?php
/**
* [MyPS] Richest Members
*
*
* Copyright 2009 Nickman
*/

define('IN_MYBB', 1);
require_once './global.php';
$name=$mybb->settings['myps_name'];
$getUsers=$db->query("SELECT * FROM ".TABLE_PREFIX."users ORDER BY myps + 0 DESC LIMIT 15");
$x=1;
while ($member= $db->fetch_array($getUsers))
{
$users.="
<tr><td class='trow$x'><a href='member.php?action=profile&uid={$member[uid]}'>{$member[username]}</a></td><td class='trow$x'>{$member[myps]}</td></tr>";

if ($x == 1)
{
$x=2;
}
else {
$x=1;
}
}
$page="<html>
<head>
<title>{$mybb->settings[bbname]} - Top 15 - Usuarios mas adinerados!</title>
{$headerinclude}
</head>
<body>
{$header}
<table border=\"0\" cellspacing=\"{$theme[borderwidth]}\" cellpadding=\"{$theme[tablespace]}\" class=\"tborder\" style=\"clear: both;\">
<tr>
<td class=\"thead\" colspan='2'><strong>Usuarios mas adinerados</strong></td>
</tr>
<tr><td class='tcat'>User</td><td class='tcat'>$name</td></tr>
{$users}


</table>
{$footer}
</body>
</html>";
output_page($page);






?>



RE: REQUESTING: MY PLAZA MOST RICH USERS - Diogo Parrinha - 08-08-2009

I'm not sure if you are allowed to post that. Anyway, go to the stats page of MyPlaza Turbo and you'll find the most richest users there


RE: REQUESTING: MY PLAZA MOST RICH USERS - Glas - 08-10-2009

yeah but, some thing like a scoreboard of money?


RE: REQUESTING: MY PLAZA MOST RICH USERS - Diogo Parrinha - 08-10-2009

hmmm, I don't understand Tongue