PDA

View Full Version : members


divided_by_fear
11-11-2005, 06:39 PM
sorry im still new to this... i was wondering is there anyway to only show the members page to registered users and above? basicly if they aint registered or loged in they cant see it then.. and it would show them the login page like you can do for calander and usercp...

Marco van Herwaarden
11-11-2005, 06:46 PM
What exactly you want to restrict from unregistered guests?

TyleR
11-11-2005, 07:25 PM
believe he/she doesnt want unregistered users to see the profiles (member.php?u=x), calendar, and usercp...but it does the usercp by default, soo..

divided_by_fear
11-11-2005, 07:30 PM
nah i dont want them to see the members page(memberlist.php) unless they are registered... like if your not signed in you can see the members page still is there a way to stop that.... (example) if i click on the calander i have it set to only registered or admins or mods can see it same with user cp... so what im basicly asking how can i shut the members page off to non registered people and banned users but have it displayed for members and admins and mods... hope you understand what i mean...

TyleR
11-11-2005, 07:39 PM
open up
<vb root>/memberlist.php

Find:

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

Add After:

if ($vbulletin->userinfo['userid'] == 0)
{
print_no_permission();
}

divided_by_fear
11-11-2005, 07:41 PM
thank you now i can just add which user groups i dont want seeing it right after the 0?

Marco van Herwaarden
11-11-2005, 07:45 PM
No need for an edit, just set the 'Can View Member Info' usergroup permission for unregged and banned to No.

divided_by_fear
11-11-2005, 08:00 PM
that worked even better thank you both for your fast replys...