vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding a custom field to register process (https://vborg.vbsupport.ru/showthread.php?t=246429)

bigrover 07-13-2010 02:07 AM

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...

Boofo 07-13-2010 10:38 PM

Just add a profile field for what you want and set it to show at registration.

latch 07-14-2010 05:52 AM

Quote:

Originally Posted by bigrover (Post 2068340)
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.

bigrover 07-14-2010 04:24 PM

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.

Boofo 07-14-2010 08:58 PM

Quote:

Originally Posted by bigrover (Post 2069118)
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.

bigrover 07-15-2010 03:44 AM

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.

Boofo 07-15-2010 04:09 AM

Quote:

Originally Posted by bigrover (Post 2069351)
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.


All times are GMT. The time now is 08:17 PM.

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.01000 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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