vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show Memberlist By Usergroup (https://vborg.vbsupport.ru/showthread.php?t=203824)

i156 02-01-2009 01:29 PM

Show Memberlist By Usergroup
 
I'd like to make the memberlist page hidden from guests but I can't find where to set this at. Is this option available somewhere?

Lynne 02-01-2009 02:55 PM

There isn't an option to do that (why? I don't know.). If you just want to remove it from the navbar, then you may put a condition around it in the navbar template:

HTML Code:

<if condition="is_member_of($bbuserinfo,x,y,z)"><td class="vbmenu_control"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></if>
Change x,y,z to the usergroup ids for the groups you don't want to see that link. I think the link is in a couple of places in the navbar.

i156 02-01-2009 03:03 PM

Thanks but I was trying to get it to be like this site has:

http://www.sportfishermen.com/board/members/list/

So they can see it but then get my signup image if they aren't logged in.

Lynne 02-01-2009 03:54 PM

Then just add this to the top of the page (or use a plugin):

PHP Code:

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



i156 02-01-2009 04:03 PM

Thanks! Sorry but what template would I be adding that to? Just the FORUMDISPLAY template? Add it to the very top? Seems the other if statements on there are using <.

Lynne 02-01-2009 04:07 PM

Not to the template, that is php code. You would add it to the page. Or use a plugin - probably hook location member_start.

i156 02-01-2009 04:16 PM

Duh, on memberlist.php. Sorry, I wasn't thinking. I've added it and its working, thanks!


All times are GMT. The time now is 04:03 PM.

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.01036 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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