Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Random Adoption Process ? (http://www.mysidiaadoptables.com/forum/showthread.php?t=5368)

KatFennec 04-29-2017 10:51 PM

Quote:

Originally Posted by kristhasirah (Post 36246)
found a way to stop users from changing the ids and getting the adopts in the shop or any other adopt you don't want to be adopted in the main adopt page:
PHP Code:

            if($id == '11') throw new InvalidIDException("global_id"); 

to add more ids just add: || $id == 'id' (replace 'id' with the number you want to exclude.
for me this is working if the user change the id using inspect element to one of the defined ids it will trow the this id don't exist message
hope it works for everyone else.
i have mine below the first if statement in the public function index.

awesome, I'll probably work that in

KatFennec 05-31-2017 11:56 PM

Quote:

Originally Posted by kristhasirah (Post 35867)
there's an old thread here with a code doing what you want, but you will need to edit it so it can work with the new script:
http://mysidiaadoptables.com/forum/s...ead.php?t=3527

I manage to make it work, so is not that hard ^^ you just need to add a new row in the database in the adopt_adoptables called rarity and made the changes to the code so it can appear

PHP Code:

(snip

cant post my full adoptview.php file because is very modified.
hope this can be use full for you^^

this code shows 3 eggs at the same time.

Lately, some of my users have been reporting that they are receiving an adopt other than the one they selected. I set it up to use buttons, in case that matters.


All times are GMT -5. The time now is 08:39 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.