vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Displaying Private Usergroups on profile (https://vborg.vbsupport.ru/showthread.php?t=309420)

Elixar 03-11-2014 05:54 PM

Displaying Private Usergroups on profile
 
I've seen it done before, but for some reason it has slipped my mind. :D

ozzy47 03-11-2014 10:04 PM

To the user that is viewing their own profile? http://YOURSITE.com/profile.php?do=editusergroups

Elixar 03-11-2014 11:13 PM

No, to other usergroups like Staff.

Elixar 03-15-2014 05:25 AM

Like this on the profiles:

https://vborg.vbsupport.ru/external/2014/03/43.png

tbworld 03-15-2014 06:41 AM

Are you referring to 'usergroups' or 'social groups' (Groups)?

If your are referring to 'usergroups' then you need to be a bit more exacting with your request. The '$post' variable will contain information regarding the poster, including his/her 'usergroups', '$vbulletin->userinfo' or $bbsuserinfo will contain the current user's information including usergroups. Obviously, if they have the same user-group 'in common they are both registered in the same usergroup. If not, then I guess you can say the 'usergroup' is private to them, but that could be quite a list.

Are you simply trying to show that they do not have access to special/key user-groups? If so, just check for specific instances.

In order for us to to help you, you will need to define the word 'private' as it refers to user-groups and/or permissions.

For simple user-group conditional in the templates just use.
Code:


<vb:if condition="is_member_of($post, xx)">

  Some template html here
</vb:if>



Here is a couple of other references that you can use as examples:

https://vborg.vbsupport.ru/showthread.php?t=233661
https://vborg.vbsupport.ru/showthread.php?t=287513

If you Google vbulletin.org with your criteria you will find lots of interesting references.




Elixar 03-15-2014 02:14 PM

Like for example, on a forum I'm on, it does list the private groups a member is in, but it hidden to only the Staff

Like so:

https://vborg.vbsupport.ru/external/2014/03/40.png

ozzy47 03-15-2014 11:43 PM

That is by design, if all members were to be able to see "private groups" they would no longer be private. :)

tbworld 03-16-2014 12:26 AM

I understand what you are looking for, but as there is no 'MOD' directly for this how can we help?

Elixar 03-16-2014 01:52 AM

Quote:

Originally Posted by ozzy47 (Post 2487566)
That is by design, if all members were to be able to see "private groups" they would no longer be private. :)

I just want Staff to be able to see what groups members are in. :)

Quote:

Originally Posted by tbworld (Post 2487577)
I understand what you are looking for, but as there is no 'MOD' directly for this how can we help?

How is it possible to do it?

ozzy47 03-16-2014 01:55 AM

Quote:

Originally Posted by Elixar (Post 2487580)
I just want Staff to be able to see what groups members are in. :)



How is it possible to do it?

Is that what you said here:
Quote:

Originally Posted by Elixar (Post 2487459)
Like for example, on a forum I'm on, it does list the private groups a member is in, but it hidden to only the Staff

Like so:

https://vborg.vbsupport.ru/external/2014/03/40.png

That it is viewable to staff?


All times are GMT. The time now is 12:23 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.01024 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete