01-03-2023, 08:26 AM
The single seller mod essentially makes it so only you can sell items on the platform
Open: register.php
Find
Replace With
Open: header.php
Find:
Replace With
SQL:
run this in the phpmyadmin or whatever SQL program you use
and now only your account can sell items
Open: register.php
Find
Code:
'" . $selected_accounttype . "')";
Replace With
Code:
'buyer')";
Open: header.php
Find:
Code:
'B_CAN_SELL' => (($system->SETTINGS['uniqueseller'] > 0 && $_SESSION['WEBID_LOGGED_IN'] == $system->SETTINGS['uniqueseller']) || $system->SETTINGS['uniqueseller'] == 0),
Replace With
Code:
'B_CAN_SELL' => ($system->SETTINGS['accounttype'] == 'sellerbuyer' && $_SESSION['PHPAUCTION_LOGGED_ACCOUNT'] == 'seller'),
SQL:
run this in the phpmyadmin or whatever SQL program you use
Code:
UPDATE webid_users SET accounttype = 'seller' WHERE id = 1;
UPDATE webid_settings SET accounttype = 'sellerbuyer';
(change 1 to the id of your user account on your site)
and now only your account can sell items