Current time: 05-20-2012, 09:54 AM Hello There, Guest! (LoginRegister)




MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!

Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCompany default settings
07-18-2009, 12:58 AM
Post: #1
MyCompany default settings
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?
Find all posts by this user

07-18-2009, 01:24 AM
Post: #2
RE: MyCompany default settings
You'll need to edit the inventory module code, there's no way to do it by changing settings

[Image: s.png]
Find all posts by this user
07-18-2009, 01:40 AM
Post: #3
RE: MyCompany default 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?
Find all posts by this user
07-18-2009, 02:06 AM
Post: #4
RE: MyCompany default settings
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.

[Image: s.png]
Find all posts by this user

07-18-2009, 05:35 AM
Post: #5
RE: MyCompany default settings
(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 ^^
Find all posts by this user
07-18-2009, 05:43 AM
Post: #6
RE: MyCompany default settings
Okay, have a nice day too Smile

[Image: s.png]
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)