Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Multiple Alternate Image Plugin [by Kae]
Multiple Alternate Image
By Kaeliah Modification TOS I felt very bad for going on hiatus so to make up for it I decided to release this publicly instead of for premium only. Please note that this is a complex script and you should know at least a little PHP before attempting installation. That said, I tried to make it as simply as possible. Step 1: Open the functions.php, levelup.php & doadopt.php files. NOTE: Any page that inserts a row into the owned_adoptables table will need an extra '', added after imageurl. Find the two functions 'getaltstatus' and 'getcurrentimage' in functions.php. They should be one after the other. Replace those two functions with the code below: PHP Code:
Find in levelup.php at about line 140: PHP Code:
PHP Code:
Find something like this: '$code', '','$alts', and replace it with this: '$code', '','','$alts', Step 2: Hard stuff is over, believe it or not. :P Download the 2 files attached to this post. Upload both in your main folder with admin.php and all that good stuff. Run the install.php page ONCE and then DELETE IT. You're Done! You can check out the additional admin area in site settings -> plugins -> MAI Admin Okay so I have not been able to beta test this much so please try it out and let me know what errors you get so I can fix 'em quick. I know all the basic functions work though. Also, please read the faq below BEFORE asking questions. FAQ Q: I don't understand what all the fields are for? A: Read the handy dandy instruction thingy that's linked in the MAI Admin. Q: Is there a way to transfer current alternates? A: Not as of yet, sorry. Q: Is this compatible with older versions of MA? A: Uhm. Probably not. Stick to 1.2.* or higher. Q: Okay so what do I put for the Alternates stuff when adding an adopt? A: Enabled alternates as usual and enter random digits to satisfy the checks. The random digits will have no effect on the new alternate system, whether or not alternates are enabled WILL. Q: Why isn't there an easier way to enable/disable alternates for certain adopts. A: Good question, I'll think about it for a future update. That's all folks! Enjoy! Last edited by Kaeliah; 04-08-2011 at 12:31 AM. Reason: Slight update to the install file. |
#2
|
||||
|
||||
All I can say is amazing, glad you did it Kaeliah. I saw you made use of the plugin system, which looks interesting to me. Should be a very helpful way for noncoders to install mods/templates.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Yes, I also had all edits to the database done in the install script to make life easier for everyone.
|
#4
|
||||
|
||||
I see, I am sure everyone will like this from you. I took a look at your script file a bit, seems that you created a new table that stores data of every alternate image for each species, which is a very good idea.
I also remember you said in your own trade script, users can trade multiple adoptables at the same time. Wonder how you coded a system like that. I've been manipulating the functions explode() and implode() to allow an array of variables to be stored in phpmyadmin. I did it for the friend/friendlist script, which will be released together with Mys v1.2.2 next week. In future I plan to make a multiple adoptables trade system based on this technique too, learning new PHP stuff always makes me excited. XD
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
Oi so many versions XD how will I ever keep up?
As for multiple adopts being traded it's all stored in a table as individual objects with a key that connects them back to their trade. So like it could be an item, pet or money. |
#6
|
||||
|
||||
lol it is not really that hard to keep up. I've released Mys v1.2.0 and v1.2.1 since you left the staff team. Mys v1.2.2 is currently under development, and Mys v1.2.3 will follow. At the beginning of May I will be working on the next major release, this will come out huge. We have two main features planned for Mys v1.3.0 already, you will soon have a preview of them from my blog.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
||||
|
||||
Its alright Kaeliah, dont worry about it. You can contribute to the community as a premium member too, even not as a dev staff people still love and respect you.
Edit: Posted a blog about Mys v1.3.0, maybe its too early to leak info of this major release at this moment. XD
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#10
|
||||
|
||||
I understand Kaeliah. You left at a time when we were on the verge of Releasing Mys v1.2.0, I do not have the pound and trade system from you so I had to make them on my own. It was not a really bad experience for me though, at least I figured them out.
But lets not worry too much about this, okay? This is life, something you cant control on your own. Who would've known that you got sick all of a sudden and had to quit at a time like this? No one was blaming you, and in fact we all worried about you. Relax a bit and dont let all these bad things go over your head. ^^
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
alternate outcomes | Nemesis | Questions and Supports | 3 | 07-03-2012 02:36 PM |
EpicStats Plugin [by Kae] | Kaeliah | Mys v1.2.x Mods | 9 | 04-10-2011 08:46 PM |
View Active Promocodes Plugin | HIddenPanda | Mys v1.1.x Mods | 11 | 01-25-2011 06:10 PM |
Alternate adopt | RipJawWolfFang | Questions and Supports | 10 | 02-03-2010 10:41 PM |
Multiple multiple outcomes..? | Quillink | Suggestions and Feature Requests | 5 | 05-31-2009 08:14 AM |
What's New? |
What's Hot? |
What's Popular? |