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
  #11  
Old 06-09-2011, 11:00 AM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Default

Quote:
Originally Posted by SilverDragonTears View Post
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
If you can find out how, I'd love to know too, I haven't had tome to pick apart the old script yet. :)
Reply With Quote
  #12  
Old 06-09-2011, 02:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 84,026
SilverDragonTears is on a distinguished road
Default

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 =)
__________________

Check out SilvaTales
Reply With Quote
  #13  
Old 06-19-2011, 12:22 PM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Smile

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

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.

Last edited by blondbananamix; 06-19-2011 at 12:31 PM.
Reply With Quote
  #14  
Old 06-19-2011, 02:13 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 392,013
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #15  
Old 06-19-2011, 02:44 PM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Default

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
Reply With Quote
  #16  
Old 06-29-2011, 10:27 AM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Default

can anyone help me fix this? I still havent worked it out yet.
Reply With Quote
  #17  
Old 06-29-2011, 10:48 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 33,313
fadillzzz is an unknown quantity at this point
Default

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
Reply With Quote
  #18  
Old 06-30-2011, 01:16 PM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Default

oh i see, thank you. Sorry to be a bother, but where abouts would I put that line of code? ^.^
Reply With Quote
  #19  
Old 07-01-2011, 04:29 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 33,313
fadillzzz is an unknown quantity at this point
Default

Just put that near the <img> tag for the adoptable's image
Reply With Quote
  #20  
Old 07-03-2011, 04:25 PM
blondbananamix blondbananamix is offline
Member
 
Join Date: Jan 2011
Posts: 47
Gender: Female
Credits: 6,212
blondbananamix is on a distinguished road
Default

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?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adopt Page & Pound Page change? tahbikat Questions and Supports 3 02-14-2014 03:19 PM
Messed up adopt page Hwona Questions and Supports 5 06-20-2013 05:32 PM
How Would I Make a New Adopt Page? MaximumRide Questions and Supports 1 05-19-2012 09:54 AM
2 - column on Adopt page and my Adopt page? SieghartZeke Questions and Supports 2 10-12-2009 02:58 PM
Multiple adopt pages? [answered] Arianna Questions and Supports 5 09-29-2009 09:50 AM


All times are GMT -5. The time now is 06:07 PM.

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