vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Profile fields visibility based on usergroups (https://vborg.vbsupport.ru/showthread.php?t=188438)

calvert 08-18-2008 08:53 AM

Profile fields visibility based on usergroups
 
Hi friends,

I searched the mod database but didn't found something like this.

I would like to have the possibility to configure profile fields based on the usergroup, the user belongs to.

For example, if he is member of usergroup x, he should have the possibility to fill out the profile field y. If he's member of usergroup z, he should be able to fill out the profile field i but not profile field y.

Do you remember if there was a mod which provides this functionality? If yes, please give me a link or perhaps you can give me a few tips, how to create something like this?

R34GTT 12-01-2008 09:33 AM

I need the same.. anyone?

christian8a 12-01-2008 02:37 PM

Same here :up:

R34GTT 12-01-2008 09:09 PM

In detail I have a custom profile field shown in the post bit, and I only want this field to come up if they are in a certain usergroup, and if they are a registered user it doesn't show.

--------------- Added [DATE]1228180875[/DATE] at [TIME]1228180875[/TIME] ---------------

I just need simple code to put in the postbit.

On the lines of "if usergroup 'x','y','z' $show[field'x']"

I just need someone to write it out for me so I can add it in if possible

dismas 12-02-2008 01:03 AM

Quote:

Originally Posted by R34GTT (Post 1676689)

I just need simple code to put in the postbit.

On the lines of "if usergroup 'x','y','z' $show[field'x']"

I just need someone to write it out for me so I can add it in if possible

This will show profile field X to just the members of those usergroups. Change X to the number of the field you want to use.

Code:

        <if condition="is_member_of($bbuserinfo, 5,6,7,15)">
              <div>
                      a.k.a.: $post[fieldX]
              </div>
        </if>


mindfrost82 01-13-2009 03:40 PM

Quote:

Originally Posted by calvert (Post 1601280)
Hi friends,

I searched the mod database but didn't found something like this.

I would like to have the possibility to configure profile fields based on the usergroup, the user belongs to.

For example, if he is member of usergroup x, he should have the possibility to fill out the profile field y. If he's member of usergroup z, he should be able to fill out the profile field i but not profile field y.

Do you remember if there was a mod which provides this functionality? If yes, please give me a link or perhaps you can give me a few tips, how to create something like this?

I'm looking for a mod like this as well. Were you able to find anything?


All times are GMT. The time now is 10:09 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.00979 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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