![]() |
Gender Ratio Mod for Mys v1.3.3
1 Attachment(s)
Now that Mys v1.3.3 has been released, it is about time for me to update my old addons/plugins to be compatible with the new version. The first Mod I have converted is this gender ratio Mod, whose process took me just about half an hour. I've included an rar file at the end of this post for you to download the files, make sure to enter the directory /install and execute the file /install/genderratio.php so that the column genderratio will be inserted successfully into the database.
Incase you cannot use the default files I have provided for some reason, I am writing a simple guide for manual installation of this Mod. It is quite easy, and requires less script edits than the older version. Anyway, to begin with, insert the column genderratio into your table prefix.adoptables. Its type is INT, default value should be 50: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
So this marks the end of manual installation process, its a lot simpler than last time isnt it? Anyway I hope you enjoy the Mods I am making for the script, I've decided to work on a few more new plugins for the script in the next few days. Lemme know if you have any suggestions to make, please do lemme know. |
When I run it I get a blank screen.
|
Blank page? Well there is a syntax error somewhere in your script then. Did you download the files I attached, or did the manual installation?
|
I downloaded the files.
|
|
I just installed this on a test site (theory site) and got this when I created an adoptable for it:
Quote:
|
Oh yeah Tequila my dear, you forgot to add a database column into your table prefix.adoptables. XD
|
*smacks forehead* ... :el:
Edit I typed the column name wrong.... ╯.╰ |
Oh I see, so thats the problem. XD
|
Either "table prefex.adoptables" is really hard to find, or was deleted completely from my system some how. What is a Table Prefix supposed to be anyway!? The instructions are very unclear and vague, there's no specifics that help newbies like me learn what exactly we're doing. I'll have to manually learn php just to figure out what every little insignificant thing means.
I did exactly as it said step for step, and when I try to create a new adoptable or edit one of the ones I have already, I get a blank white screen. There's not even an Error Message, just a blank screen. Wait, lemme figure this out on my own, I think I got it now. No... I redid everything, and it still doesn't work, it's still a blank white screen. This is frustrating. :P |
Well there is definitely no 'prefix.adoptables' in your database unless your table prefix is 'prefix'. Replace 'prefix' by whatever the table prefix is for your site, and it should work for you. For my demo site the prefix is 'adopts' or sometimes 'mys', yours may be completely different.
|
Does this code work for v1.3.4, too? o 3o
Edit: Or is there a code in the works for this to work in v1.3.4? |
It does not work with Mys v1.3.4, but I can post a solution if anyone is interested. The reason why I havent updated my mods was that the users who used to follow my plugins are no longer requesting old mods update or new mods being made. After all, whether or not will I make a mod/plugin is mostly a matter of demand. When there is no demand, I see no need to make new mods but rather work on the core script instead.
Send me a PM if you want an updated version, I may post a new thread dedicated to Mys v1.3.4's gender ratio mod if there is more than one user who asks. |
i was going to ask ^^ but i found the solution, and so far is working. At least i don't have any problems. I always try to find a solution myself before asking for help.
So this is what i did to make the mod work with the new script: instead of editing 2 files, I had to edit 3 files: /admincp/view/adoptview.php (You find the $adoptform code.) /admincp/adopt.php (where you find the: sql insertion.) And the: /classes/class_adoptable.php (which you just follow the instructions posted by HoF ^^ that's all you need to do.) That's what i did. not sure if is the correct solution, but is working. |
Yeah thats the correct steps to take Kristhasirah. If you get it to work, maybe you want to share it with other users? I wont urge you to do this though since mods/plugins are all voluntary work so its up for the users to decide whether to share or not(although there's one restriction, which I havent seen anyone reaching it yet).
|
Oh I see. The codes I tried using and editing kept giving me blank pages when I tried so thanks for posting your fix! I'll try it out that way.
|
Does it work with Mysidia 1.3.4?
|
it works you just make sure you have inserted the correct info to your table prefix.adoptables.: http://www.mysidiaadoptables.com/for...57&postcount=1
and how it shoud look: http://www.mysidiaadoptables.com/for...40&postcount=5 if you have a new install here is the page of the mod for the Mys v1.3.4: http://www.mysidiaadoptables.com/for...15&postcount=1 that have all the files needed for a fresh install. the rest of the code you need to separate it in parts: in /admincp/view/adoptview.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
after PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT -5. The time now is 11:46 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.