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-05-2010, 06:44 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,896
fadillzzz is an unknown quantity at this point
Default Random Adoptables

Sorry if this has been asked before
but, I'd like to know how to make the adoption page looks like virtuadopt.com where the users don't know what they are adopting untill the eggs are hatched

My adopt.php page fetch a random adoptables from database and everything seems to be working fine since I remove any info about the adoptables from the adopt.php page

but recently one of the users knows how to work around this random adoption thing

he type in URL to directly access the adoption page for an adoptable like
http://www.domain.com/adopt.php?id=X
and then adopt the adoptable he wants!

So does anyone know how to make the adoption page like virtuadopt?
Reply With Quote
  #2  
Old 04-05-2010, 11:41 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,731
BMR777 is on a distinguished road
Default RE: Random Adoptables

With some modification you could change your adopt.php page to use POST instead of GET, so that users would have to click a form button to adopt the pet and then the adoptable ID would not be passed via the browser's address bar.

How much PHP do you know?
Reply With Quote
  #3  
Old 04-05-2010, 12:41 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,318
Arianna will become famous soon enough
Default RE: Random Adoptables

Wouldn't they still be able to use firebug or something to change it?
Perhaps getting a random number and selecting that from the db? You'd have to make it exclude certain retired / deleted pets, but it could work.
Reply With Quote
  #4  
Old 04-05-2010, 02:38 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,896
fadillzzz is an unknown quantity at this point
Default RE: Random Adoptables

Quote:
Originally Posted by BMR777
With some modification you could change your adopt.php page to use POST instead of GET, so that users would have to click a form button to adopt the pet and then the adoptable ID would not be passed via the browser's address bar.

How much PHP do you know?
I'm still new to PHP, so I don't know much about it
Quote:
Originally Posted by Arianna
Wouldn't they still be able to use firebug or something to change it?
Perhaps getting a random number and selecting that from the db? You'd have to make it exclude certain retired / deleted pets, but it could work.
Yeah, and I think you could do the same with Tamper Data too!
the method you suggested seems to be really good, but it also seems kinda complicated

EDIT
: tried to do what brandon said, but no luck. When the users clicked the button, it only refresh the page
Reply With Quote
  #5  
Old 04-07-2010, 09:44 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,896
fadillzzz is an unknown quantity at this point
Default RE: Random Adoptables

BUMP!

does anyone can help me..?
Reply With Quote
  #6  
Old 04-07-2010, 09:53 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,318
Arianna will become famous soon enough
Default RE: Random Adoptables

My method isn't complicated, it'd just require work. I'm sure you'll figure it out in no time. Simple select from the database with ORDER BY RAND() and then get the first adoptable kind and give them that adoptable. Easy enough. :D
Reply With Quote
  #7  
Old 04-07-2010, 10:08 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,896
fadillzzz is an unknown quantity at this point
Default RE: Random Adoptables

you mean like this?

PHP Code:
SELECT FROM ".$prefix."adoptables WHERE whenisavail='always' ORDER BY RAND() LIMIT 1 
Reply With Quote
  #8  
Old 04-07-2010, 11:39 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,318
Arianna will become famous soon enough
Default RE: Random Adoptables

Yup. :)
Reply With Quote
  #9  
Old 04-07-2010, 12:16 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,896
fadillzzz is an unknown quantity at this point
Default RE: Random Adoptables

Well unfortunately that still doesn't fix my problem which is how to make sure that the user can't cheat his way to adopt any adoptables he wants...
Reply With Quote
  #10  
Old 04-08-2010, 01:55 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,318
Arianna will become famous soon enough
Default RE: Random Adoptables

That would solve your problem, I don't see why it wouldn't. You either do it that way - generate the adoptable upon adopting, this eliminating the need to have ids in the url - or you let him cheat his way there. Your choice.
Reply With Quote
Reply


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 3D Art alonaria Art Gallery 4 06-13-2011 05:19 PM
5 Random Adoptables = FAIL Civil Engineer Questions and Supports 18 10-01-2010 03:02 AM
Random Adoptables Roconza Questions and Supports 9 01-24-2010 03:02 AM
Random 5 is not realy random! RipJawWolfFang Questions and Supports 9 04-30-2009 06:03 AM
5 random adoptables zhiichiro Questions and Supports 3 04-25-2009 04:09 PM


All times are GMT -5. The time now is 04:47 PM.

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