![]()  | 
	
		
 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: 
	
		
		 | 
		
 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!  | 
		
 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: 
	
		
		 | 
		
 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: 
	
		
		 | 
		
 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.  | 
		
 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. 
	 | 
		
 Quote: 
	
  | 
		
 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!  | 
		
 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'"  | 
		
 cool mod i like it 
	 | 
| All times are GMT -5. The time now is 04:16 AM. | 
	Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.