![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#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. |
|
|
![]() |
||||
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? |