![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#11
|
||||
|
||||
![]()
Holy cow. Yes, please, IntoRain. This is what I've been looking for since I woke up this morning. LOL! And even a little bit before that. If you could give a step by step for this process (Maybe with some pictures to make a lil fool proof?) That would be amazing! Thanks so much!
____________________________ NobodysHero MystFell.com Venture Into The Mist |
#12
|
||||
|
||||
![]()
Oh, would you? :D Thanks! And yeah, this seems like the way I would like to do it ^_^ I do know a little bit about the ID's and stuff from listening to what people have told me and what I have read, but not really enough to do everything myself (like the coding, etc.) XD
~Parayna |
#13
|
||||
|
||||
![]()
@NobodysHero
So you own MystFell? Beautiful art! I think I submitted the form put up on VPL, but I'm not sure haha --------- Alright. This is a very manual version. I didn't do the "active" column version because I'm not sure what you will use this for and that way would be restricting it too much. This way, you can put a linked image in whatever page to make people obtain an adoptable - fun for treasure hunts? Checking your database for the IDs Since you will need to get the IDs you want for the adoptable, you will need to go check your database (I haven't checked the admincp to see if they are shown there because mine is currently under changes, sorry). 1) Use phpMyAdmin or similar from your control panel to access your database. 2) Once you are there, choose the database you use for your site (from the left side or by going to "Databases" at the top). 3) Then, choose the table something_adoptables (default is adopts_adoptables) 4) Look at the column id, these will be the numbers you will use. Check the names and images to see if it's the species you want Image: http://i.imgur.com/ePST02Y.png Putting the linked image up Choose which page you want this to appear and link an image to /get/id/ID_NUMBER. This ID_NUMBER should be the same as one of your existing species in the database (see above). To add it to pages like yoursite.com/adopt, go to inside the view folder and edit the file adoptview.php. Search the index() function and: PHP Code:
You can also write HTML code inside the quotation marks " ", so feel free to do things like this: PHP Code:
Do this: <img src='link.png'> Not this: <img src="link.png"> The double quotation for the links might interfere with the previous marks and make your page throw errors! Always use the single quotation ones inside Comments("") to avoid mistakes! Building the GET page! Alright, clicking the image will take you to your index probably. We have to create the page that will take care of adopting. Note: If your link is yoursite.com/get/id/ID_NUMBER then your files need to be get.php and getview.php and both need an index() function and an id() function. If your link is yoursite.com/capture/get/ID_NUMBER then your files need to be capture.php and captureview.php and both need an index() function and a get() function. Etc... Just substitute the "get" word and the "id" word used for this explanation For this example, my link is yoursite.com/get/id/ID_NUMBER Create a file named get.php with these contents: PHP Code:
Create a file named getview.php inside the view folder with these contents: PHP Code:
I might have forgotten something. If you notice an error, please tell me
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 11-09-2014 at 02:50 PM. |
#14
|
||||
|
||||
![]()
Thanks for this! I will have a go (one question, if I wanted to use a custom page for the image, could I do that? So not have them appearing on the adopt.php page... if that makes sense) Also, what adoption restriction would I set (if I had to use the adopt.php page)? Would I make it something like 'promo'? (Because if it is 'always' it appears on there without an image linking it)
Basically, on my site, there is a custom adopt page with a character talking, then a banner beneath it that says, 'Adopt a...' and when you click it, it takes you to a page where you can adopt that species. And I want it where you can click on an image on THAT page and it adds the adoptable to your account.. do I make sense? XD Thanks! ~Parayna (For an example, Chicken Smoothie does something very similar to what I would like, if you know it ^_^) |
#15
|
||||
|
||||
![]() Quote:
Quote:
Quote:
__________________
![]() ![]() ![]() asp.net stole my soul. |
#16
|
||||
|
||||
![]()
Thank you! It worked! :D Now people can adopt them from the page I want!
|
#17
|
||||
|
||||
![]()
I'm glad it worked! ^^ if you find any bugs or something, feel free to warn me!
__________________
![]() ![]() ![]() asp.net stole my soul. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A small question regarding adoption limits and promo codes..c: | Pear | Feedback and Suggestions | 2 | 06-25-2014 10:06 PM |
Promo Codes | SilverDragonTears | Questions and Supports | 2 | 06-30-2012 01:22 PM |
Promo And Banning | Alaric | Questions and Supports | 5 | 04-20-2012 08:28 AM |
News/kinda forum script help | SilverDragonTears | Questions and Supports | 0 | 10-22-2011 06:48 PM |
1 Promo per person | Xius | Questions and Supports | 4 | 09-21-2009 05:55 PM |
What's New? |
What's Hot? |
What's Popular? |