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
  #31  
Old 04-29-2017, 10:51 PM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 7,839
KatFennec is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
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
__________________
Reply With Quote
  #32  
Old 05-31-2017, 11:56 PM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 7,839
KatFennec is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
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.
__________________
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


All times are GMT -5. The time now is 01:41 AM.

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