MyBB-Plugins Forums

Full Version: REQUESTING: MY PLAZA MOST RICH USERS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);






?>
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
yeah but, some thing like a scoreboard of money?
hmmm, I don't understand Tongue