PDA

View Full Version : Memberslist only viewable by members?


grains
03-02-2005, 02:25 PM
Hey,

Has someone done this already?

Thanks for any info.

eva01_
03-02-2005, 02:31 PM
in your navbar template find
<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>

and replace with
<if condition="$show['member']">
<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
</if>


does this make me a coder now :P :P

Deaths
03-02-2005, 02:39 PM
They can still acces the memberslist if they just go to memberlist.php ^^

eva01_
03-02-2005, 02:40 PM
yes but what non member is going to go to that page <<

*cries* me no coder then

T_T

Deaths
03-02-2005, 02:41 PM
Hehe :).

Well, you're right, that should do it.

Adrian Schneider
03-02-2005, 02:51 PM
If you really want to deny them permission, find this line (80) in your memberlist.php (mine is 3.0.1 but it should be the same)

Find:
// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
{
print_no_permission();
}

Between the )) at the very end, add in OR !$bbuserinfo[userid]

grains
03-02-2005, 07:00 PM
If you really want to deny them permission, find this line (80) in your memberlist.php (mine is 3.0.1 but it should be the same)

Find:
// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
{
print_no_permission();
}

Between the )) at the very end, add in OR !$bbuserinfo[userid]


that didnt work for some reason... :(

sabret00the
03-02-2005, 07:12 PM
you know i'm 85% sure theirs a option for this in the vboptions

AN-net
03-02-2005, 07:18 PM
yeah there should be a usergroup option i believe....

Adrian Schneider
03-02-2005, 07:46 PM
that didnt work for some reason... :(
Out of curiousity, can you post the code you tried?

grains
03-08-2005, 12:52 AM
There is an option in the admin cpanel based on usergroup. I have it setup so guests can't view it.

where is this? in the usergroup panel?

I guess it would help to note that i'm using 3.0.3

Out of curiousity, can you post the code you tried?
Sure...i used this:

If you really want to deny them permission, find this line (80) in your memberlist.php (mine is 3.0.1 but it should be the same)

Find:
// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
{
print_no_permission();
}

Between the )) at the very end, add in OR !$bbuserinfo[userid]

Adrian Schneider
03-08-2005, 01:05 AM
Did you actually do the edit? I would have posted it myself but the editor wasn't being very friendly, throwing in spaces.

Mine was:

// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS) OR !$bbuserinfo[userid])
{
print_no_permission();
}

I use that ^ and it works.

amykhar
03-08-2005, 01:08 AM
guys, this is a built in permissions thing. No hack needed.

Adrian Schneider
03-08-2005, 01:10 AM
But Amy, I'm stupid. :)

Is it under vBulletin options or usergroup options? I checked both but must have missed it.

amykhar
03-08-2005, 01:16 AM
It's under user groups. "Can View Member Info"

grains
03-09-2005, 10:10 PM
got it....gratsi