vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   If / Then Profile Field? (https://vborg.vbsupport.ru/showthread.php?t=191982)

Savage702 09-26-2008 02:45 PM

If / Then Profile Field?
 
Is there a way to make a profile field be present depending on how another profile field is entered?

Example, my forum is real name based. If they select that they are female, then there should be an option to enter their Maiden name. If they select Male, then that option isn't there.

Is there anything like that already done?

Thanks,

Mark

Savage702 10-10-2008 12:46 PM

Bump... I don't see anything, but I could be searching the wrong keywords?

Lynne 10-10-2008 01:50 PM

If you create a profile field in the admin cp, those profile fields will be present for everyone to fill out. However, what you do with those fields is up to you. If a guy fills out the Maiden Name field, just don't display it.

Savage702 10-13-2008 10:09 AM

Quote:

Originally Posted by Lynne (Post 1641979)
If you create a profile field in the admin cp, those profile fields will be present for everyone to fill out. However, what you do with those fields is up to you. If a guy fills out the Maiden Name field, just don't display it.

Well yeah, but there's nothing in place to say "if male, don't display result"... which is ultimately what I'm after. Probably wishful thinking though. ;-)

Lynne 10-13-2008 04:29 PM

Quote:

Originally Posted by Savage702 (Post 1643996)
Well yeah, but there's nothing in place to say "if male, don't display result"... which is ultimately what I'm after. Probably wishful thinking though. ;-)

Except you do have that. Didn't you say you have a field asking if they are male or female? So, you use that in your condition...
Say your male/female field is field10 and your maiden name one is field11, then you could do something like:

HTML Code:

<if condition="$post[field10] == 'Female'">
Maiden Name: $post[field11]
</if>


Savage702 10-14-2008 10:31 AM

Quote:

Originally Posted by Lynne (Post 1644281)
Except you do have that. Didn't you say you have a field asking if they are male or female? So, you use that in your condition...
Say your male/female field is field10 and your maiden name one is field11, then you could do something like:

HTML Code:

<if condition="$post[field10] == 'Female'">
Maiden Name: $post[field11]
</if>


Oh snap! :eek: (as my 8 year old says!! :rolleyes: ) Think OUTSIDE the box Mark... outside the box!

Thanks Lynne!


All times are GMT. The time now is 03:05 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.01906 seconds
  • Memory Usage 1,724KB
  • 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_html_printable
  • (3)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