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.
You can change premiumcurrency to whatever suits you, but please note you'll need to change any future uses of it to what you want it to be.
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:
and add beneath it:
Continues to next post (won't let me post it all at once *sigh*)
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:
INSERT INTO `adopts_settings`(`name`, `value`) VALUES ('premiumcurrency', 'Your Currency Name')
You can change premiumcurrency to whatever suits you, but please note you'll need to change any future uses of it to what you want it to be.
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:
$mysidia->db->update("users", array("email" => $mysidia->input->post("email")), "uid='{$mysidia->input->get("uid")}'");
$mysidia->db->update("users", array("money" => $mysidia->input->post("money")), "uid='{$mysidia->input->get("uid")}'");
and add beneath it:
PHP:
$mysidia->db->update("users", array("premiumcurrency" => $mysidia->input->post("premiumcurrency")), "uid='{$mysidia->input->get("uid")}'");
Continues to next post (won't let me post it all at once *sigh*)
Last edited: