Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

MyCompany default settings
#1

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?
#2

You'll need to edit the inventory module code, there's no way to do it by changing settings
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

(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?
#4

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.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

(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 ^^
#6

Okay, have a nice day too Smile
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.




Users browsing this thread: 1 Guest(s)