MyBB-Plugins Forums

Full Version: MyCompany default settings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
You'll need to edit the inventory module code, there's no way to do it by changing settings
(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?
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.
(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 ^^
Okay, have a nice day too Smile