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)
-   -   Adopt pages, and general adopt/index page :L (http://www.mysidiaadoptables.com/forum/showthread.php?t=2169)

blondbananamix 05-25-2011 11:50 AM

Adopt pages, and general adopt/index page :L
 
Is it possible so that on the adopt page, you click on the adoptable you want to adopt, and THEN get taken to a new page where you can then name and adopt it?
like this:
http://www.iaza.com/work/110526C/iaza16159818850700.png
So you click on the pet you want to adopt, and Then go to a page where you name it and actually adopt it.

Would I also be able to have certain adoptables on certain pages, like in a 'shop'?

How can I also put an image on my home page under the title,
http://coatimundikiwi.x10.mx/Welcome/
When i try it doesn't seem to come up.

Thanks for the help, if you do help me :)

blondbananamix 05-27-2011 10:32 AM

help? :( :cfrown:

blondbananamix 05-29-2011 02:37 PM

no-one know how to do this then? :angrybracket:

Nemesis 05-29-2011 03:58 PM

"Is it possible so that on the adopt page, you click on the adoptable you want to adopt, and THEN get taken to a new page where you can then name and adopt it?
like this:
http://www.iaza.com/work/110526C/iaza16159818850700.png
So you click on the pet you want to adopt, and Then go to a page where you name it and actually adopt it."

I am sorta confused, doesn't the script already do that?

"Would I also be able to have certain adoptables on certain pages, like in a 'shop'?"

you could use the promo codes and have them buy those at shops.

"How can I also put an image on my home page under the title,
http://coatimundikiwi.x10.mx/Welcome/
When i try it doesn't seem to come up."

I can probably do that easy however my clients come first and right now i need to tend to their needs.


Good luck

Kaeliah 05-29-2011 08:47 PM

It's possible but currently it's just not set up this way. I prefer the older way to the current one, and I think others do too so maybe in the next version it'll go back. :)

blondbananamix 06-01-2011 01:25 PM

@Nemesis- Currently you click the adopt you want, then name and adopt it on the SAME page, I want the name and adopt part on a different page...

but people could tell others the promo codes, so they could easily cheat.

okay then. never mind.

@Kaeliah- :/ alright then, I guess I'll put my site on hold until I can fix it, and possibly until the new version is released. :littlecfrown:

Hall of Famer 06-02-2011 02:16 AM

Well this new adoption system was made by Arianna, some members do prefer it over the old one. Its not that hard to convert back to the old adoption system though, no need to put your site on hold because of this.

Nemesis 06-02-2011 03:23 PM

ok i guess i get the page thing now, but i kinda don't see the point in doing it that way unless you wanted to show an image or have something significant on that page. anyway good luck.

blondbananamix 06-03-2011 03:50 PM

maybe I'll look at older versions of the script and see if I can tweak it. :)

@Nemesis- I don't like the way it's all piled on the page currently, thats why I wanted to change it. Also, users can type in a name without selecting any pet, and then click adopt and the system will still say you have adopted something. D: Reverting to the old style will hopefully fix this. :)

SilverDragonTears 06-09-2011 03:13 AM

Quote:

Originally Posted by Hall of Famer (Post 16893)
Well this new adoption system was made by Arianna, some members do prefer it over the old one. Its not that hard to convert back to the old adoption system though, no need to put your site on hold because of this.

Would you be so kind as to show me how to do this? By this, I mean how to make it so that you click the adoptable to adopt it? I'd be so grateful :pleased:

blondbananamix 06-09-2011 11:00 AM

Quote:

Originally Posted by SilverDragonTears (Post 17011)
Would you be so kind as to show me how to do this? By this, I mean how to make it so that you click the adoptable to adopt it? I'd be so grateful :pleased:

If you can find out how, I'd love to know too, I haven't had tome to pick apart the old script yet. :)

SilverDragonTears 06-09-2011 02:39 PM

I figured it out XD

I don't remember what it looked like before but if you find where the images are displayed on the adopt.php page just add this to it. SO it looks like:

Quote:

//If we can adopt the adoptable, show the image and adoption link...
$article_content .= "
<a href='adopt.php?id=".$aid."'><img src='".$eggimage."' /></a><br>
{$description}<br>";
Then just remove the radio boxes.
Let me know if you need more help =)

blondbananamix 06-19-2011 12:22 PM

Oh thank you so much <3 This has really helped me :) :smile:

Edit: what do you mean by the radio boxes? :3 I'm having a little trouble with it, I'll try and work out what to do.

Hall of Famer 06-19-2011 02:13 PM

The radio box is where you select or deselect a new adoptable from adopt.php page.

blondbananamix 06-19-2011 02:44 PM

Ah okay, thank you.

I have a problem now with the script. I think I deleted something I shouldn't have because now when I try and adopt an adoptable, i click the 'manage adoptable' link and it says the adoptable does not exist D:

I don't know if this helps but here is that part of the adopt.php page...

Quote:

adopt to guests...

if($canadopt == "yes"){


//If we can adopt the adoptable, show the image and adoption link...
$article_content .= "
<a href='adopt.php?id=".$aid."'><img src='".$eggimage."' /></a><br>
<strong>{$type}</strong> - {$row['cost']} {$GLOBALS['settings']['cost']}.
<br>{$description}<br>";


}
} // End the looping out of all adoptables...
$article_content .= "</table>
<h3>Adopt</h3>
<p>Adoptable Name: <input name='name' type='text' id='name' />
<input name='promocode' type='hidden' id='promocode' value='".$promocode."'>
</p>
<p>
<input type='submit' name='Submit' value='Adopt Me'>
</p>
</form>"
;
} // This bracket ends the IF check for whether or not an ID was entered

blondbananamix 06-29-2011 10:27 AM

can anyone help me fix this? I still havent worked it out yet.

fadillzzz 06-29-2011 10:48 AM

From a quick look at your code, I think you forgot to pass the adoptable id.
By default, the script pass the id using a radio button
PHP Code:

<td><input type='radio' name='id' id='id' value='{$aid}' /></td


blondbananamix 06-30-2011 01:16 PM

oh i see, thank you. Sorry to be a bother, but where abouts would I put that line of code? ^.^

fadillzzz 07-01-2011 04:29 AM

Just put that near the <img> tag for the adoptable's image

blondbananamix 07-03-2011 04:25 PM

okay, I decided to resotre that line of code to its original which i baked up. Now however when I adopt, i click 'manage adoptable' and I get this:
The ID specified does not match any adoptable in our system. Sorry. If you wish, you can adopt a pet.
D: help?

Hall of Famer 07-04-2011 04:12 PM

umm did this happen after you adopt a pet? If so, chances are there is something wrong with your mysql query that creates new owned adoptables. Go to prefix_owned_adoptables and see if the newly adopted pet actually exists in database. If not, post the screenshot of of your prefix_owned_adoptables table and I will see if the database structure is messed up.

blondbananamix 07-05-2011 12:01 PM

Yeah it happens after you adopt the pet and it does not show up in the table:
http://www.iaza.com/work/110706C/iaza13221866066300.png
and the Strucutre if you need that:
http://www.iaza.com/work/110706C/iaza13221898588100.png

thank you so much for all this help <3

blondbananamix 07-07-2011 12:00 PM

D: can anyone help me with my main questions on the first post? My site can't get delevoped any more untill I can sort out these problems :catfish:

blondbananamix 07-11-2011 01:38 PM

:displeased: anyone?

blondbananamix 07-18-2011 02:30 PM

I guess not. Thanks for the help before though, I think I'll ditch my site for a little while until I can work out whats wrong, or start over with the next release.

Chibi_Chicken 07-19-2011 11:31 AM

Quote:

Originally Posted by blondbananamix (Post 16802)
Is it possible so that on the adopt page, you click on the adoptable you want to adopt, and THEN get taken to a new page where you can then name and adopt it?
like this:
http://www.iaza.com/work/110526C/iaza16159818850700.png
So you click on the pet you want to adopt, and Then go to a page where you name it and actually adopt it.

Was this your main question I am unsure?
what you can do is find this line in adopt.php

Code:

        $article_content .= "<form name='form1' method='get' action='doadopt.php'>
        <h3>Available Adoptables</h3><table>";

Change the action from doadopt.php to adopt.php.
So when a user picks what adoptable they want it send them back over to the adopt.php but it just shows them the one adoptable and they can name it there.

blondbananamix 07-22-2011 12:12 PM

Thank you, this worked :)

How can I make it now so that instead of you clicking the radio box and THEN the 'adopt me' box...

On the adopt page:

1. you can click On the pet or an image saying 'adopt me' to go to the page to adopt it.

2. (the adopt me box and adoptables name box below the adoptables is hidden on the main adopt page)

3. You then get taken to the page with that one pet on which you then adopt?

D: I'm going to try and work this out by myself, but I'm really confused :(


All times are GMT -5. The time now is 12:49 PM.

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