vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   where in register.php can I add some custom db inputs.... (https://vborg.vbsupport.ru/showthread.php?t=172638)

fearfx 03-10-2008 05:42 PM

where in register.php can I add some custom db inputs....
 
In the register php file, at what point can I add my own mysql query.

Basically, at what point is the user fully registered, but before the page goes to the thank you page... I want to do some certain things with php. I hope anyone can understand this.

And thanks for the help!

shovel 03-10-2008 07:21 PM

Absolutely. Rather than modifying your documents, leave them be and create a hook via the AdminCP.

Goto...
AdminCP -> (left menu) Products & Plugins -> Plugin Manager

Click "Add New Plugin" and point your hook location to register_form_complete. You can begin your PHP modification there. :)

Opserty 03-10-2008 07:52 PM

I think you want addmember_complete or something like that.

register_form_complete is executed when the form is displayed, as opposed to when the data is processed.

fearfx 03-15-2008 09:15 PM

Thanks for the help... Now if want to use the newly registered persons, id number(example: member.php?u=23

whats the variable name, and is there a list of all variable names anywhere?

Thanks for the help.

Lynne 03-15-2008 09:20 PM

If you use register_addmember_complete, I believe $userid is available for use at that point.

I don't know of a list of others available. You can look in the register.php page and see what is defined right before the hook you use.

Scuzzy 03-21-2008 04:14 AM

I've noticed there are no template hooks in the registry pages. Is it possible, without modifying the registry template itself, to add another required field to the user registration process? Any idea on how to accomplish this without modifying any generic vbulletin template?

Thanks

Marco van Herwaarden 03-21-2008 09:06 AM

AdminCP -> User Profile Fields.

Boofo 03-21-2008 09:30 AM

Marco hit it right on. The easiest way to do it.

Scuzzy 03-21-2008 11:08 AM

What I'd like to do is a little more difficult then that. The field needs to be a part of a plugin (so it would have to be installed when they install the plugin), it must be a drop down box, and it must contain information from a table other then one part of regular vbulletin. It's currently done by actually modifying the registry.php and changing the display of one user defined field, but I want to get out of direct modifications to vb code and templates and make this completely plugin driven.

Opserty 03-21-2008 11:28 AM

You will have to edit a template then, if you want to include custom HTML into the Registration Form. PHP code can be placed in a nearby Plugin and then use that to call and evaluate a template. Then use the variable, that the template is evaluated to, in the registration template.


All times are GMT. The time now is 04:44 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.00978 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete