joms wrote:I have disabeld the option that is called show bags and bank's.
Is there a way that i can disabel the option Items, when the members seach for a word.
Yes.
When you don't want that one can search in sacs of members, when their sac isn't shown, then there is a possibility.
What I use is this:
Players options => sacs = set to "user".
For every player (in the individual player table) that doesn't want his sac to be searched, I put the sac option to 'off'.
For others, wo don't care, I put it 'on'.
Open
search.php and goto line 68
Change
- Code: Select all
$query="SELECT players.name,players.server,items.* FROM `".ROSTER_ITEMSTABLE."` items,`".ROSTER_PLAYERSTABLE."` players WHERE items.member_id = players.member_id AND items.item_name LIKE '%$search%' ORDER BY players.name ASC";
and change it for
- Code: Select all
$query="SELECT players.name,players.server,members.bg,items.* FROM `".ROSTER_ITEMSTABLE."` items,`".ROSTER_PLAYERSTABLE."` players, `".ROSTER_MEMBERSTABLE."` members WHERE items.member_id = players.member_id AND members.member_id = players.member_id AND members.bg = '1' AND items.item_name LIKE '%$search%' ORDER BY players.name ASC";
What happens here :
The members table is included, and when the 'bg' (bag) is set to '1' - searching is permitted.
'3' means NO.
This all means that players who can see their sacs can also have theire sacs being searched. And only them.