vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Hide User Contact Info From Guests (https://vborg.vbsupport.ru/showthread.php?t=101180)

silurius 01-07-2006 05:16 PM

Been looking for something like this, nice one. Is it possible to control by usergroup? I want contact info to show up for an internal team to that team only.

peterska2 01-07-2006 05:21 PM

I guess so. I'll have to see about it. Will you want it fixed or user selectable as I'll need to write the code accordingly.

silurius 01-07-2006 05:22 PM

Beggars can't be choosers, but user-selectable would be cool (I can always set options on the backend).

peterska2 01-07-2006 05:34 PM

Ok, I'll code it up.

peterska2 01-07-2006 05:48 PM

Quote:

Originally Posted by silurius
Been looking for something like this, nice one. Is it possible to control by usergroup? I want contact info to show up for an internal team to that team only.

OK, here goes.

Instead of
Code:

<if condition="$show[registerbutton]">
use
Code:

<if condition="$bbuserinfo[usergroupid]!='x'">
where x is the usergroupid number of the usergroups that you want to be able to view it. You will need to change both instances of this.

silurius 01-07-2006 08:08 PM

Thanks again, I'll continue playing around with this!

One issue I'm having with it currently is that I have the "Force Users to Fill in Required Fields" hack installed, which is not very specific when it asks users to go update their profile (they do not think to look in the options for this one, and even if they look there the option does not explicitly state that it is required).

As is, it's a little more than halfway towards meeting an internal team requirement. I'll be playing around with it to see what more I can do. Love it!

Would gladly tip if this could be made into a product, whereby:

  • Members can define by dropdown which usergroups can view their IM contact info (perhaps could be made more generic so people can add other contact stuff like phone info).
  • Admins can define which usergroups are visible in said dropdown.
  • Nice-to-have: Members can define by dropdown which specific IM or other contact options are visible to said usergroups. (This would permit opening up certain types of contact info to the world, and keeping others somewhat private).

rnmcd 01-09-2006 04:08 AM

How much of a change is needed for this to work with 3.5.3?

peterska2 01-09-2006 09:48 PM

@ Silurius: I'm not planning on doing any more major development work to this at present.

@ rnmcd: It should work perfectly fine.

Dsyn11 01-12-2006 04:36 AM

good hack, but there's a hole:

in member list, you can still click on the AIM/MSN/etc icons to get the names. Shouldn't be too hard to fix, but I don't have much time right now. Anyone want to tackle this? :D

peterska2 01-12-2006 10:28 AM

Ah, now I'd completely forgot about that. I'll get a fixed knocked up later today.


All times are GMT. The time now is 07:33 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.01421 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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