MyBB-Plugins Forums
MyCompany default settings - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.4.x (http://forums.mybb-plugins.com/Forum-MyBB-1-4-x)
+---- Forum: MyPlaza Turbo (http://forums.mybb-plugins.com/Forum-MyPlaza-Turbo)
+----- Forum: Requests (http://forums.mybb-plugins.com/Forum-Requests--15)
+----- Thread: MyCompany default settings (/Thread-MyCompany-default-settings)



MyCompany default settings - Axxis - 07-18-2009

Hey,

i don´t speak very good english and i hope you understand my question:

The default settings in the MyCompany Modul are:

[Image: MWSnap1762009071716_38_031.JPG]

But i need as default:

Show Item on postbit: NO
User can sell this item: YES


Where can i change it?
and what must i change?


RE: MyCompany default settings - Diogo Parrinha - 07-18-2009

You'll need to edit the inventory module code, there's no way to do it by changing settings


RE: MyCompany default settings - Axxis - 07-18-2009

(07-18-2009, 01:24 AM)Pirata Nervo Wrote: You'll need to edit the inventory module code, there's no way to do it by changing settings

Thx, but can you tell me what i must change?


RE: MyCompany default settings - Diogo Parrinha - 07-18-2009

Nevermind, I think what you want is whenever a MyCompany item is created, you want it to be sellable and to not show in the postbit.
Open up inc/myplaz/mycompany_user.php
Search for:
PHP Code:
            $item_array = array(
                
'iid' => $db->insert_id(),
                
'showonpostbit' => MY_YES,
                
'sellable' => MY_NO// admins can change this
                
'sendable' => MY_YES,
                
'maxownable' => -1,
                
'image' => '',
                
'pmitem' => MY_NO,
                
'privatemessage' => ''
            
); 
Replace with:
PHP Code:
            $item_array = array(
                
'iid' => $db->insert_id(),
                
'showonpostbit' => MY_NO,
                
'sellable' => MY_YES// admins can change this
                
'sendable' => MY_YES,
                
'maxownable' => -1,
                
'image' => '',
                
'pmitem' => MY_NO,
                
'privatemessage' => ''
            
); 

Anyway, I don't recommend you to set items to be sellable because if someone creates an item which costs 1 for example, they can buy it for 1 and change the price to 999999999 and then sell it and get 999999999 when they bought it for 1.


RE: MyCompany default settings - Axxis - 07-18-2009

(07-18-2009, 02:06 AM)Pirata Nervo Wrote: Anyway, I don't recommend you to set items to be sellable because if someone creates an item which costs 1 for example, they can buy it for 1 and change the price to 999999999 and then sell it and get 999999999 when they bought it for 1.

Thank you Smile

I only changed now the File: 'showonpostbit' => MY_YES

You are right. It´s not so good to change the other Code.

Have a nice day ^^


RE: MyCompany default settings - Diogo Parrinha - 07-18-2009

Okay, have a nice day too Smile