View Single Post
  #28  
Old 04-26-2017, 01:05 PM
aquapyrofan aquapyrofan is offline
Member
 
Join Date: Apr 2017
Posts: 48
Gender: Unknown/Other
Credits: 8,585
aquapyrofan is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
yes is possible i have it like that in my site:
PHP Code:
<div align=center><img src='{$row->eggimage}'style=' margin-bottom:30px;'/></div></br><div align=center><strong>{$row->description}</strong></div></div></br><div align=center><input name='id' type='hidden' id='id' value='{$row->id}'><input type='submit' name='submit' value='adopt me'></body></td
but be warned the id of the adopt can be changed with inspect element! the user can add any number and if the adopt is available they will get it
to prevent this you can add :
PHP Code:
<body oncontextmenu='return false' onkeydown=\"return false;\" onmousedown=\"return false;\"> 
to disable the right click and prevent that in a way.... but maybe you or your friend know a different way to hide or not allowing tho change the id of the adopt ^^ i can't help much in that area im still trying to figure out how to fix that with out having to do something like dragon cave or most of the sites where you adopt an already created egg... because i don't know how to code it

just to inform... this is also for the default adopt page, users can use inspect element and change the id of the of the radio button and put anything there... even the id of the adopts that are in shops and get them for free.
Those already show up in the page randomly by default, we have it set to not do that by setting their rarity to 5, but there's got to be a better way to fix it.
Reply With Quote