View Single Post
  #1  
Old 08-14-2009, 09:05 AM
ramil86 ramil86 is offline
 
Join Date: Apr 2009
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Profile fields with conditions

Hi everyone. I have a question about adding user profile fields with conditions. What i mean by this is that i want
to add 3 user profile fields with the following types 1)Single-selection radio buttons 2)Single selection menu 3)Single-line text box

My goal is to have 2 radio buttons with an Optional Input and add a condition. When the first radio button is selected i want to activate the
second profile field which is "Single-selection menu" and if the second radio button is selected i want to activate the third profile field.

For example i have a single-selection radio buttons called "Status" with 3 options 1) Student 2) Abiturient 3) Enter your choice.
Underneath i have a Single-selection menu called "Univer" with one selection menu and one "Enter your choice.
Belove it there's a Single-line text box called "School".

1) When a user sets his/her status as "student" he/she'll activate the Single-selection menu called "Univer" and will be able to choose one option
while leaving the third menu called "School" inactive. When saved users will have new profile fields displayed under their usernames such as

Status: student
Univer: American University (selected option)

2) When a user sets his/her status as "Abiturient" he/she'll activate the third menu called "School" and deactivate the second menu called "Univer".
When saved users will have two profile fields displayed under their usernames such as

Status: abiturient
School: High school of B.g etc

3) When the third optional input is entered under their username there'll be only the third option


See the attachment for refferance

Attachment 103223

Attachment 103224

Attachment 103225

I already have all indicated fields but i don't know how to achieve that result, please could help me?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,780KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete