vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   members (https://vborg.vbsupport.ru/showthread.php?t=100602)

divided_by_fear 11-11-2005 06:39 PM

members
 
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
Code:

<vb root>/memberlist.php
Find:

Code:

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

Add After:

Code:

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...


All times are GMT. The time now is 08:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01003 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete