#1
|
||||
|
||||
Background Mod
This is a simple background mod for displaying backgrounds on adoptable pages. Please save a backup of your entire site before using this mod as I can't guarantee it will work - my own site uses this system but it's heavily moddified and the coding is likely quite different for these pages. I apologize if anything breaks because of this or if the instructions are too confusing.
__________________________________________________ _____ These are the edits for the files: In class_ownedadoptable.php, add below the list of "protected stuff": PHP Code:
PHP Code:
inside of the click function, below PHP Code:
PHP Code:
PHP Code:
PHP Code:
below all the functions, add: PHP Code:
__________________________________________________ ______ Now, let's edit the database In the items_functions table, create a new row - put "Background" in the function column and "Adoptable" in the intent column. Put a description in the description column. Now, in the items table, add a column of varchar(200) latin_swedish_ci with a default value of NULL called "backgroundimage" __________________________________________________ ______ Now, let's make your first background create a new row in the items table as a new item. Name your background, set the price, stock, etc. Except. in the function column, put "Background" and in the "backgroundimage" column, put the name of the file you want to serve as the background (just the alphanumeric name). Do not include the path to the folder or the .png! __________________________________________________ ______ That should be it! Last edited by Hwona; 04-15-2015 at 10:21 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The disappearing background O.o | SilverDragonTears | Questions and Supports | 7 | 03-31-2012 10:22 PM |
Theme background help | PokePets | Questions and Supports | 2 | 11-04-2011 02:29 PM |
how to change background of siggy? | vexel | Questions and Supports | 7 | 09-29-2010 10:54 AM |
Transparent Background Problem [Answered] | gjac1 | Questions and Supports | 4 | 12-10-2009 04:35 AM |
What's New? |
What's Hot? |
What's Popular? |