I ask you a help to understand a little thing...
In Itemshop.php, in BUY PERSONAL
i found this...
Quote:
$userr=$DB_site->query_first("SELECT * FROM items_cats WHERE ownerid=$bbuserinfo[userid]");
if(sizeof($userr)!=16 AND $points >= $options[pcost]) {
|
This part is where you can buy a personal shop... but i don't understand the control that makes on userr in the IF.
In my opinion (but i'm not a php programmer and i can say stupid things) if(sizeof($userr)!=16 can be ereased.
What do you think? Am i wrong?
EDIT TO ADD:
I changed
Quote:
if(sizeof($userr)!=16 AND $points >= $options[pcost]) {
|
in
Quote:
if($userr[ownerid]!=$bbuserinfo[userid] AND $points >= $options[pcost]) {
|
in this way, a user can have only 1 shop.