Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit del tasku paneles

Parašė laimmx· 2012 Rugp. 6 22:08:24
#1

Taigi isirasiau tasku sistema ir daugiause tasku surinkusiu nariu paneleje man nuskaito tik pirmaji skaiciu todel pvz 8 buna daugiau uz 180 gal galit padet ja istaisit?


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2012 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: pointx_panel.php
| Version: 1.0.0
| Author: SezMar (www.nadzdolni.pl)
| Release Date: 15/02/2012
| Last Update Date: --/--/----
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
if (file_exists(INFUSIONS."pointx/locale/".$settings['locale'].".php")) {
        include INFUSIONS."pointx/locale/".$settings['locale'].".php";
} else {
        include INFUSIONS."pointx/locale/Polish.php";
}
 
openside($locale['px_180']);
$result = dbquery("SELECT * FROM ".DB_USERS." ORDER BY user_points DESC LIMIT 1");
$result2 = dbquery("SELECT * FROM ".DB_USERS." ORDER BY user_points DESC LIMIT 1,9");
$nr=2;
echo "<center><strong><big>".$locale['px_180']."</strong></big></center>";
echo "<br />";
               $rows = dbrows($result);
               if ($rows != 0) {
while ($one = mysql_fetch_array($result))
{
echo "<center><strong>1.".profile_link($one['user_id'], $one['user_name'], $one['user_status'])."</strong><br />";
if ($one['user_avatar'] && file_exists(IMAGES."avatars/".$one['user_avatar']) && $one['user_status']!=6 && $one['user_status']!=5) {
                        echo "<img src='".IMAGES."avatars/".$one['user_avatar']."' alt='' /><br /><br />\n";
                } else {
                        echo "<img src='".IMAGES."avatars/noavatar100.png' alt='' /><br /><br />\n";
                }
echo "<strong>".$locale['px_181']."</strong><br />";
echo "".$one['user_points']."</center>";
}
} else {
        echo $locale['px_182'];
}
echo "<hr />";
while ($other = mysql_fetch_array($result2)) {
        echo "<center>".$nr.".".profile_link($other['user_id'], $other['user_name'], $other['user_status'])." - ".$other['user_points']." ".$locale['px_183']."<br />";
        $nr++;
}
closeside();
 
?>

Parašė weberiz· 2012 Rugp. 6 23:08:07
#2

tikriausiai mysql user lenteleje esantis user_points yra char ar text pavidalu ji reikia pakeisti i INT tada normaliai bus :)

Parašė laimmx· 2012 Rugp. 7 00:08:48
#3

Dekuij labai pagelbejai ;) galit rakinti tema