How do I change the Top 10 list to Top 20? [Answered]

Forum
Last Post
Threads / Messages
RE: what am i going to change?

Go to the stat.php, and find this part:
PHP:
// Loop out code...

$num = 0;

$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 10";
$result = mysql_query($query);
$num = mysql_numrows($result);

$gennum = $num;

if($num > 5){
$gennum = $num - 5;
}

And change into this:

PHP:
// Loop out code...

$num = 0;

$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 20";
$result = mysql_query($query);
$num = mysql_numrows($result);

$gennum = $num;

if($num > 5){
$gennum = $num - 5;
}

Am I right?

Then you can change the Name of the list in the Lang.php.
 
RE: what am i going to change?

trollis76 said:
Go to the stat.php, and find this part:
PHP:
// Loop out code...

$num = 0;

$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 10";
$result = mysql_query($query);
$num = mysql_numrows($result);

$gennum = $num;

if($num > 5){
$gennum = $num - 5;
}

And change into this:

PHP:
// Loop out code...

$num = 0;

$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 20";
$result = mysql_query($query);
$num = mysql_numrows($result);

$gennum = $num;

if($num > 5){
$gennum = $num - 5;
}

Am I right?

Then you can change the Name of the list in the Lang.php.



You are correct. Nicely answered.

Just point out that the thing he is changing is this part:

PHP:
$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 10";

To this:

PHP:
$query = "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 20";
 
Yea, I just wanted to take a bigger part so that he would find it... :)
Ah, well...
 
ok tnx :)

uhm... it's not working, it still shows top 10 only

ow haha.. it's working now, tnx again
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,281
Messages
33,136
Members
1,604
Latest member
grandcorsair
BETA

Latest Threads

Latest Posts

Top