vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do i add fields in the registe.php (https://vborg.vbsupport.ru/showthread.php?t=205905)

dxflw 02-19-2009 01:52 PM

How do i add fields in the registe.php
 
Hi want to add in the registration page 2 fields:

1) Where you live
2) When have you Born.

How do i that?

Thank you.

Marco van Herwaarden 02-19-2009 01:57 PM

<a href="http://www.vbulletin.com/docs/html/profile" target="_blank">Custom Profile Fields</a>

vbplusme 02-19-2009 02:01 PM

You can add custom field in the admincp for the registration form.

admincp>user profile field? add new user profile field

They are completely customizable, make them required for your registration form so they can't skip them.

You will see a drop down that you assign it to the registration form, make sure you select "Yes at registration and update time"

dxflw 02-19-2009 03:30 PM

Thanks a llot both!

enci 02-27-2009 08:13 PM

How do you then access the info in those custom fields in vbulletin and outside of vbulletin? For instance, I've added a custom single select radio button to opt-in to our newsletter. How would I know if a user has opted-in?

TIA!

Brandon Sheley 02-27-2009 08:18 PM

Quote:

Originally Posted by enci (Post 1756385)
How do you then access the info in those custom fields in vbulletin and outside of vbulletin? For instance, I've added a custom single select radio button to opt-in to our newsletter. How would I know if a user has opted-in?

TIA!

check their profile in the admincp?

enci 02-27-2009 08:38 PM

No, I mean for the purposes of writing scripts. I figured out all your custom fields are located in the userfield table. So for example, I added a field (field10) which is a Yes or No field. If field is "Yes", then I want to know the users email address. So I'd use a query like this:

select email from userfield uf, user u where field6 = 'Yes' and u.userid = uf.userid;

Hope this helps someone else.


All times are GMT. The time now is 12:06 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.01213 seconds
  • Memory Usage 1,718KB
  • 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_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