Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Second Currency with unique adopt shop Mod
So I see a lot of people asking for a second currency add-on. Well, here's what I did and it seems to be working for me along with a unique adopt shop for it.
If you find any issues please let me know. Go to MyPHPAdmin You'll be editing the adopts_settings one. Open up the SQL query and enter in this. PHP Code:
Next you'll edit the adopts_users. Go to Structure then add a new column. I simply checked the money one structure and copied it with the name 'premiumcurrency'. (I'll add a pic when I'm home later) Now we need to go to your file manager and make some changes. I wanted to be able to manually add currency through the ACP, so we'll start there. Go to your adminCP files, and find user.php. Find this: PHP Code:
PHP Code:
Last edited by Fox; 06-01-2017 at 07:57 AM. |
#2
|
|||
|
|||
Now we'll go back and find the settings.php
Find: PHP Code:
PHP Code:
Now go back and into the Admincp View files. Find settingsview.php Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
We're all done here, now to make changes to our classes. Find class_sidebar.php Find this: PHP Code:
PHP Code:
Hope you find this useful! |
#3
|
|||
|
|||
Creating an Adopt Shop for this Currency!
Follow the steps in Abronsyth's adoptable shop with conditions - clickity click Now, there are a heap of steps for this one, and it took me quite some tinkering to figure this out. We'll start with find the class_member.php file in classes. Find this: PHP Code:
PHP Code:
Now let's jump to class_adoptable.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Last edited by Fox; 06-01-2017 at 07:53 AM. |
#4
|
|||
|
|||
Now onto the class_stockadopt.php
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find this chunk: PHP Code:
PHP Code:
Find this: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Now, if you followed Abronsyth's adopt shop with conditions, you should have a unique 'shop'.php and 'shop'view.php.
Open the 'shop'.php (whatever you decided to name it) Find this: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
And there you have it! A second currency and adopts to buy with it. I'll try to implement an item one too eventually. |
#6
|
||||
|
||||
Oh it looks nice, glad you figured this out, many people want such a Mod so bad. A minor suggestion, make an rar/zip download that include all changed files, this will be useful for users with fresh installation.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
The indicated code snippet doesn't seem to exist in the vanilla adminCP/users.php
|
#8
|
||||
|
||||
KatFennec, it is in there (just checked to verify), for me it's around line 52.
I haven't added it yet, but very nice mod!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#9
|
||||
|
||||
Tried and it actually works.
But how to add an starter quantidy? Edit: and an item shop with this currency? Another edit: I thought i did everything right...but well...i has wrong. "Database error 1054 - Unknown column 'premiumcost' in 'field list'"
__________________
https://www.viagrasansordonnancefr.c...-en-pharmacie/ Last edited by LUC1G07CH1; 07-19-2017 at 10:24 AM. |
#10
|
|||
|
|||
cool mod i like it
Last edited by Silver_Brick; 08-27-2017 at 03:33 AM. |
|
|
What's New? |
What's Hot? |
What's Popular? |