#21
|
||||
|
||||
Will test the code tomorrow and see if i can help you find a way to make it work ^^ if not lets hope one of the most experienced members can help you, sadly i dont have too much experience in coding and cant help you much.
I think i found a way to make it work, dont know if you have tried this: PHP Code:
Last edited by kristhasirah; 04-07-2017 at 08:39 AM. |
#22
|
|||
|
|||
It actually works! It's a bit odd when it pops up that the user doesn't have enough money when they first go to the page lol, but that's just cosmetic. I'll worry about fixing that to look better some other time. For now it works right, even tried bugging around it the ways I know of, and it still works as intended. Thanks so much!
|
#23
|
||||
|
||||
Glad i could help you and that is close to what you where looking for ^^
|
#24
|
|||
|
|||
Awww, I was able to work around it. Have the page open with 500 currency, open another page and spend that money. Click over to the adopt page and adopt normally. It says "You do not have enough money" and gives you the adopt lol... Welp, back to the drawing board
|
#25
|
||||
|
||||
Sorry to hear that. I Dint test it that way, having 2 pages opened at the same time, i suppose is because one page still has the session opened and thats why the user can keep adopting.
|
#26
|
||||
|
||||
I've been trying to get this working, and while it seems to be functioning acceptably, my partner wants me to see if I can replace the radio buttons with proper buttons that, once clicked, will immediately adopt the selected creature. unfortunately, I can't seem to figure out how to convert them, or failing that, create buttons to replace them.
|
#27
|
||||
|
||||
yes is possible i have it like that in my site:
PHP Code:
to prevent this you can add : PHP Code:
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. Last edited by kristhasirah; 04-26-2017 at 11:50 AM. |
#28
|
|||
|
|||
Quote:
|
#29
|
||||
|
||||
add AND shop='none' after the rarity = '' for each row that way the adopts that are in a shop wont appear in there
|
#30
|
||||
|
||||
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:
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. |
|
|
What's New? |
What's Hot? |
What's Popular? |