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 04-25-2009, 12:51 PM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 8,219
RipJawWolfFang
Arrow Random 5 is not realy random!

It seems that the pets in the random 5 realy are not random at all!
they are just 5 of the top 10...
Is there anyway to make it random from all the pets?
Reply With Quote
  #2  
Old 04-25-2009, 04:08 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,641
BMR777 is on a distinguished road
Default RE: Random 5 is not realy random!

How many pets do you have on your site? The random is generated by the server time, so refreshing the page many times in a short timespan will show many of the same pets.
Reply With Quote
  #3  
Old 04-25-2009, 07:29 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,495
Seapyramid
Default RE: Random 5 is not realy random!

Actually the bottom five are set to order by clicks .. not by random. Simple error with all the coding you did for this release. I fixed the issue on Mystic Grove and moved them to a page of their own. But it is currently set to oder by clicks and not random in the script download.

Sea
Reply With Quote
  #4  
Old 04-26-2009, 08:01 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,641
BMR777 is on a distinguished road
Default RE: Random 5 is not realy random!

Quote:
Originally Posted by Seapyramid
Actually the bottom five are set to order by clicks .. not by random. Simple error with all the coding you did for this release. I fixed the issue on Mystic Grove and moved them to a page of their own. But it is currently set to oder by clicks and not random in the script download.

Sea
Thanks, I'll have to look into that. It's very possible that is the case as I implemented a new random system for that because the old system from the old release is very server intensive. :)
Reply With Quote
  #5  
Old 04-26-2009, 08:35 AM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 8,219
RipJawWolfFang
Default RE: Random 5 is not realy random!

Alright... So can you tell me how to eather fix it or remove it all together without brakeing anything?
Reply With Quote
  #6  
Old 04-26-2009, 12:54 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,733
zhiichiro
Default RE: Random 5 is not realy random!

yeah. random 5 pets are from top 10..
Reply With Quote
  #7  
Old 04-27-2009, 05:53 AM
mojaruu mojaruu is offline
Member
 
Join Date: Mar 2009
Posts: 2
Credits: 237
mojaruu
Default RE: Random 5 is not realy random!

Quote:
Originally Posted by RipJawWolfFang
Alright... So can you tell me how to eather fix it or remove it all together without brakeing anything?
i fixed it by using this code:

PHP Code:
$query "SELECT * FROM ".$prefix."owned_adoptables ORDER BY RAND() LIMIT 5 OFFSET ".$offset.""
instead of this one

PHP Code:
$query "SELECT * FROM ".$prefix."owned_adoptables ORDER BY totalclicks DESC LIMIT 20 OFFSET ".$offset.""
on stats.php. and *poof* its seems that its now randomly listed.

:D
Reply With Quote
  #8  
Old 04-28-2009, 01:46 AM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 8,219
RipJawWolfFang
Default RE: Random 5 is not realy random!

it dose not seem to be working however
Reply With Quote
  #9  
Old 04-28-2009, 08:03 AM
mugwumpr mugwumpr is offline
Member
 
Join Date: Apr 2009
Posts: 41
Credits: 4,506
mugwumpr
Default RE: Random 5 is not realy random!

It worked great for me! I'm seeing pets I never even knew existed. Thanks mojaruu!

:D
Reply With Quote
  #10  
Old 04-30-2009, 06:03 AM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 8,219
RipJawWolfFang
Default RE: Random 5 is not realy random!

YAY! GOT IT WORKING!
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
Random egg Skaiya Questions and Supports 2 03-30-2014 02:42 PM
Random Suggestions AlexC Suggestions and Feature Requests 6 12-03-2013 05:33 AM
Random Images SilverDragonTears Questions and Supports 28 10-26-2011 12:57 PM
Random Breeding SilverDragonTears Questions and Supports 6 09-18-2011 11:49 PM
Random 3D Art alonaria Art Gallery 4 06-13-2011 05:19 PM


All times are GMT -5. The time now is 02:29 PM.

Currently Active Users: 3214 (0 members and 3214 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