vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   View members of certain usergroups only (https://vborg.vbsupport.ru/showthread.php?t=102373)

PtP 12-06-2005 09:03 PM

View members of certain usergroups only
 
I have a clan forum with a private forum so they are a member of a usergroup for permissions to access that forum.

They now need to have a memberlist showing and silly me said no problems and put a link up http://www.myserver.com/forum/member...usergroupid=19 which works fine for me not realising that me being administrator I seem to be the only one having permission to see this :( Any suggestion on the easiest way to do a memberlist of this particular usergroup.

PtP 12-08-2005 06:28 AM

So this is not possible? or do I have smelly underarms?

downlo 12-08-2005 09:24 PM

I would also like this feature. Where the member list has permissions to allow only a specific group(s) to view the member list. Is there a way to do this? I will pay if any one can.

merk 12-08-2005 10:40 PM

You could be able to set the usergroup to display on showgroups and link to showgroups.php.

PtP 12-09-2005 09:53 AM

You could do that but then I would have to set moderators to not show and I would lose the facility of showgroups showing that list for users to know who moderates what.

Andreas 12-09-2005 10:01 AM

memberlist_query_userscount
PHP Code:

if ($_REQUEST['ugroupid'] == AND is_member_of($vbulletin->userinfoX))
{
    
$hook_query_where .= " AND FIND_IN_SET('X', membergroupids)";
    
$urladd .= (($urladd) ? '&' '') . 'ugroupid=X&';



merk 12-10-2005 01:14 AM

Quote:

Originally Posted by PtP
You could do that but then I would have to set moderators to not show and I would lose the facility of showgroups showing that list for users to know who moderates what.

I find it a bit strange that a clan forum needs 2 seperate pages for that kind of thing ;)

You could easily hook into showgroups to change the behaviour depending on the url.

This should work, but there may be an issue with the usergroup still displaying in normal mode (the clan usergroup must be set to be shown) - Replace X in the second hook with the usergroupid of the clan.

showgroups_start

PHP Code:

if($vbulletin->input->clean_gpc('r''clanmembers'TYPE_BOOL) AND $vbulletin->options['forumleaders'])
{
$vbulletin->options['forumleaders'] = 2


showgroups_usergroup

PHP Code:

if(is_member_of($userX) AND !$vbulletin->GPC['clanmembers'])
{
continue 
2;


Urls:

http://forum/showgroups.php <-- normal (as set in admincp)
http://forum/showgroups.php?clanmembers=1 <-- clan members


All times are GMT. The time now is 07:21 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.01068 seconds
  • Memory Usage 1,730KB
  • 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_php_printable
  • (1)bbcode_quote_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