Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY]
Ok, so I don't think I've made a mod before, only tuts. But anyway if you noticed the tag "EASY ADOPTABLES SCRIPT ONLY", this mod is only for the old script. This is for the people with current sites using the old script, just while we're waiting for the upgrade script. Now, onto what it does... If you've ever used the currency & shop mod or tried to make an event, you'll know that you have to run a MySQL query to change it's type so it doesn't appear on the normal adopt.php page and only in the shop/event. With this mod, you'll be able to do it easily from the "Create New Adoptable" page in the ACP. This makes it easy to make new shop adoptables or event adoptables. Before we start, I suggest you make backups of the following:
adopt.php shop.php newadoptable.php (found in your adm directory) makeadoptable.php (found in your adm directory) Ready? Step 1 ------------- First, open your phpMyAdmin and go to the adoptables table. Notice how I have a "Kind" column? You need to make one. Step 2 ------------- To make one, click the following: Now fill it in like this one: Step 3 ------------- Now that you have a Kind column, open your FTP Server and open up "adopt.php" in your editor. Find: PHP Code:
PHP Code:
Step 4 ------------- If you use the shop mod, open up "shop.php" in the editor. Find: PHP Code:
PHP Code:
Step 5 ------------- Now go into your adm directory and open up "newadoptable.php" Find: PHP Code:
<p>Adoptable Kind: <input name='kind' type='text' id='kind'> </p> Save it. Step 6 ------------- Go back to the adm directory and open "makeadoptable.php". Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
NOTE: For the anti-theft, you still have to change the memberlevel to shop, although you can make a memberlevel type field as well by replacing every "kind" in this tut with "memberlevel" with the exception of "adopt.php". Also, there is already a memberlevel column so don't make another one. I know this mod is probably very confusing so if you have any questions, ask. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Downloading Mysidia Adoptables Script? | Rosie-Girl-12- | Questions and Supports | 25 | 07-17-2011 12:27 PM |
Dechiphering the Adoptables Script | Ansem717 | Questions and Supports | 1 | 01-15-2011 07:58 PM |
How to change language in PHP Adoptables script? | MarDeb | Questions and Supports | 1 | 08-17-2009 04:21 PM |
Adoptables Script + MyBB | Blues | Questions and Supports | 3 | 08-05-2009 07:24 PM |
What can be done with the PHP Adoptables Script! | Seapyramid | Suggestions and Feature Requests | 11 | 07-19-2009 12:16 PM |
What's New? |
What's Hot? |
What's Popular? |