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)

Lynne 05-31-2009 06:39 PM

Quote:

Originally Posted by Biker_GA (Post 1820811)
There IS a much easier way. Under Profile Privacy, just have the user select which items they want viewable and to whom.

This is not about a user hiding info on their own profile. It's about a user going to someone else's profile and choosing to not see certain information.

Biker_GA 05-31-2009 06:55 PM

Boy did I miss read that one! I need a nap! :D

Mellymonster 05-31-2009 06:58 PM

Ok this is what I put
<if condition="$bbuserinfo[field18] === 'Yes'"><div>Gender Status Icon</div></if>

should I put a comma between Gender and status Icon? or did I do that bit wrong?

Lynne 05-31-2009 07:33 PM

Where did you put that code? And, you need to put the actual *code* from the templates between the conditon.

Mellymonster 05-31-2009 07:38 PM

I put it in my postbit...

So you mean like the field number?

Lynne 05-31-2009 08:02 PM

Here is an example from my site. I have field 6 which asks users whether they wish to see post count or not:
HTML Code:

<if condition="$bbuserinfo[field6] === 'Yes'"><div>$vbphrase[posts]: $post[posts]</div></if>
So, if field 6 says Yes (they do wish to see a users post count), then the post count is shown.

Mellymonster 05-31-2009 08:15 PM

hmm it is still not working for me..

Field18 asks if members want to show postbit icons like "Gender, and status"

<if condition="$bbuserinfo[field18] === 'no'"><div>$vbphrase[gender]: $gender[gender]</div></if>

I only have it for gender right now, but I set mine to no, and I still see them.

Lynne 05-31-2009 08:38 PM

Well, your logic says "if it's set to no, show it" which is the opposite of what you want. You want, "if it's set to yes, then show it".

Mellymonster 05-31-2009 08:46 PM

Ok so I changed it to
<if condition="$bbuserinfo[field18] === 'yes'"><div>$vbphrase[gender]: $gender[gender]</div></if>

but its still not working on my end, and I did switch my answer to yes on my end.

Lynne 05-31-2009 09:02 PM

Well, if you switched your answer to yes, then it is going to show according to that condition.


All times are GMT. The time now is 12:30 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.01852 seconds
  • Memory Usage 1,729KB
  • 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)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