vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=214842)

Mellymonster 05-29-2009 01:18 PM

Hide Profile Fields
 
Hey,

Is there away for member to hide the option to see all profile fields, What I mean is say a member doesn't want to see someone elses mini profile fields, like age, gender, and so on? Is there away that members can choose not to see other peoples stuff?

Does this make since?

Lynne 05-29-2009 02:51 PM

There is no default vbulletin option to do what you want. But, you could create a new profile field and allow users to say Yes or No to seeing mini profile fields and then put a condition around those things based on the users profile field.

Mellymonster 05-31-2009 05:28 AM

what do you mean by putting a condition around those things based on the users profile field? It sounds easy, but I'm just not understanding this part.

Lynne 05-31-2009 06:09 PM

Well, say I create a profile field and it's field x. Then I put a condition around stuff like:
HTML Code:

<if condition="$bbuserinfo[fieldx] === 'Yes'"><div>stuff</div></if>
It's hard to give specifics on such general questions.

Mellymonster 05-31-2009 06:39 PM

Ok I'm trying to visual this in my head hehe...

Make a profile field called like "Single - Selection Radio Buttons"

Title: (like) "Hide mini profile"
Options: yes and no

Would I use "Regular ExpressionYou may require the input field to match a regular expression"?

Then in my postbit template, I add that condition, correct?

Lynne 05-31-2009 06:58 PM

I cannot think of why you would want to use the regular expression field, so no.

Now see what profile field id is assigned to the field.

Then find the template, and put the conditon around it based on the profile field. Or, a plugin may be better. Just play with it and see.

Mellymonster 05-31-2009 07:05 PM

Ok I think I get it now, thanks I will come back if I fail miserably haha...

Edit: wait erm, where it says "Stuff" what stuff do I add? I get the fieldx but I'm not sure about the "Stuff"...

Lynne 05-31-2009 07:07 PM

"Stuff" is the stuff you want to show or hide depending on the field option yes or no.

Biker_GA 05-31-2009 07:11 PM

There IS a much easier way. Under Profile Privacy, just have the user select which items they want viewable and to whom.

Mellymonster 05-31-2009 07:36 PM

Biker, yes, but some members do not want to see any icons in the mini profiles, on other posts, so not sure if that will work.

Thanks, Lynne, will see if this works :)


All times are GMT. The time now is 03:17 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.01075 seconds
  • Memory Usage 1,726KB
  • 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_html_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