Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2010, 02:07 AM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adding a custom field to register process

I want to add a custom field to the register process. I'm not finding where the screen is built. Can someone point me to where this is done, or to some documentation that would help me find it?

Thanks in advance...
Reply With Quote
  #2  
Old 07-13-2010, 10:38 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just add a profile field for what you want and set it to show at registration.
Reply With Quote
  #3  
Old 07-14-2010, 05:52 AM
latch latch is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigrover View Post
I want to add a custom field to the register process. I'm not finding where the screen is built. Can someone point me to where this is done, or to some documentation that would help me find it?

Thanks in advance...
You can accomplish this by logging into the VB control panel and by expanding the "User Profile Fields" tab, once you have done this, click "Add New User Profile Field" and then select a profile field type. From here you will be able to create a new profile field and make it required upon registration.

Hope that helps.
Reply With Quote
  #4  
Old 07-14-2010, 04:24 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo and Latch, thank you. You gave me the start I needed. I have made the change and it works as defined. Now I just need to add some code to verify the contents of the new field.

Where can I modify the text that is displayed for standard fields? I want to modify the user name comment a bit.

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

I found where to modify the phrases associated with the user fields. I'm starting to get a handle on how this product works. It's pretty slippery, but I'm making headway.

My next challenge is to learn how to validate the input in the new field similar to that used by the user name field, meaning I want to test to see if the input is unique.
Reply With Quote
  #5  
Old 07-14-2010, 08:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigrover View Post
I found where to modify the phrases associated with the user fields. I'm starting to get a handle on how this product works. It's pretty slippery, but I'm making headway.

My next challenge is to learn how to validate the input in the new field similar to that used by the user name field, meaning I want to test to see if the input is unique.
It all depends on what you mean by "unique". If you are looking to verify it against already known text, that should be fairly easy. If you are looking to verify that it is different than everyone else's, that gets a little tricky as you would need to do some regex of some sort, I'm sure.
Reply With Quote
  #6  
Old 07-15-2010, 03:44 AM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I will be trying to validate it against all the other users currently registered. I'm hoping I can figure out how to use the hooks to evaluate this at the end of the registration. I'm not sure yet how to handle a failure that would require re-entry.
Reply With Quote
  #7  
Old 07-15-2010, 04:09 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigrover View Post
Yeah, I will be trying to validate it against all the other users currently registered. I'm hoping I can figure out how to use the hooks to evaluate this at the end of the registration. I'm not sure yet how to handle a failure that would require re-entry.
IIRC, you can do regex in the profile filed setup that would give an error if they entered the wrong info on initial setup.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 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.03813 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete