Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2009, 10:53 AM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,628
zhiichiro
Default How do I change the Top 10 list to Top 20? [Answered]

how to change top 10 to top 20?
Reply With Quote
  #2  
Old 05-24-2009, 11:28 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 13,299
trollis76
Default RE: what am i going to change?

Go to the stat.php, and find this part:
PHP Code:
// 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 Code:
// 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?[hr]
Then you can change the Name of the list in the Lang.php.
Reply With Quote
  #3  
Old 05-24-2009, 11:31 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,067
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: what am i going to change?

Quote:
Originally Posted by trollis76
Go to the stat.php, and find this part:
PHP Code:
// 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 Code:
// 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?[hr]
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 Code:
$query "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 10"
To this:

PHP Code:
$query "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 20"
Reply With Quote
  #4  
Old 05-24-2009, 11:52 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 13,299
trollis76
Default RE: How do I change the Top 10 list to Top 20? [Answered]

Yea, I just wanted to take a bigger part so that he would find it... :)
Ah, well...
Reply With Quote
  #5  
Old 05-25-2009, 08:38 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,628
zhiichiro
Default RE: How do I change the Top 10 list to Top 20? [Answered]

ok tnx :)[hr]
uhm... it's not working, it still shows top 10 only[hr]
ow haha.. it's working now, tnx again
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Useful Programs List Kaeliah Tutorials and Tips 16 03-09-2013 03:13 PM
Help: Change all users at once? [Answered] Magnie Questions and Supports 4 03-09-2010 10:16 AM
How to change the oder of users adoptables? [Answered] Tezna Questions and Supports 3 12-04-2009 11:09 AM
How to change alternate percentage? [Answered] lollicat Questions and Supports 1 05-23-2009 10:31 AM
change password and change email Blackmagic Questions and Supports 5 03-05-2009 03:13 AM


All times are GMT -5. The time now is 10:52 AM.

Currently Active Users: 664 (0 members and 664 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636