vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Member Search turned on by usergroup (https://vborg.vbsupport.ru/showthread.php?t=67178)

JustAskJulie 07-14-2004 08:49 PM

Member Search turned on by usergroup
 
Can someone tell me if it would be possible to put a conditional to allow only certain usergroups to search the Member List? And what that conditional would be? I don't want it turned on in general but I would like to allow certain usergroups to search the list.

Andreas 07-14-2004 09:17 PM

In template memberlist FIND:
Code:

<if condition="$vboptions['usepopups'] AND !$show['usergroup']">
REPLACE that with
Code:

<if condition="$vboptions['usepopups'] AND !$show['usergroup'] AND (is_member_of($bbuserinfo, 10) or is_member_of($bbuserinfo, 11))">
Still in the same template FIND
Code:

<td class="vbmenu_control" id="memberlist_search"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[search_members]</a> <script type="text/javascript"> vbmenu_register("memberlist_search"); </script></td>
REPLACE that with
Code:

<if condition="is_member_of($bbuserinfo, 10) or  is_member_of($bbuserinfo, 11)">
<td class="vbmenu_control" id="memberlist_search"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[search_members]</a> <script type="text/javascript"> vbmenu_register("memberlist_search"); </script></td>
</if>

10 and 11 are examples for the IDs of usergroups you want to grant access,
Use as many OR clauses ys you've got usergroups which should have access.

However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php

JustAskJulie 07-15-2004 07:07 PM

Quote:

Originally Posted by KirbyDE

However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php

Can you tell me how to do this?

JustAskJulie 07-15-2004 07:10 PM

Code:

<if condition="$vboptions['usepopups'] AND !$show['usergroup']">
I'm not finding this line.... The closest I find is:

Code:

<if condition="$show['popups'] AND !$show['usergroup']">

Andreas 07-15-2004 07:13 PM

Well, I guess that's just a slight difference between your vB3 version and mine (still RC3 :().

JustAskJulie 07-21-2004 06:21 PM

Would the change still be the same?

JustAskJulie 08-20-2004 03:40 PM

Can anyone else help me with this?

illPhever 10-14-2004 03:16 AM

Quote:

Originally Posted by JustAskJulie
Quote:

Originally Posted by KirbyDE
However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php


Can you tell me how to do this?

i've been trying to do the same thing. can anyone assist?


All times are GMT. The time now is 12:28 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.01082 seconds
  • Memory Usage 1,731KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_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