vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Register Add Member Process -- Adding Additional Fields w/ Actions (https://vborg.vbsupport.ru/showthread.php?t=235776)

Masked Crusader 02-13-2010 06:05 PM

Register Add Member Process -- Adding Additional Fields w/ Actions
 
Hey all.

I finally decided to take my first crack a mod for vBulletin. After a bit of testing the different registration hooks, I finally figured out that the hook I need to be dealing with is: register_addmember_process.

What I am trying to do is that when the user clicks the submit button on the registration page, a plugin is called in that calls an external PHP class (which I have already created), creates the object, and then inserts the object in the database along with the user registration information.

So, what I am trying to figure out is how I get the DB insert to work. I already know that their is a global $db variable that I can use along with the DB class objects. My question is how do I make my query execute after the member insert query? Because, what I am thinking that I let that query hit and then do mysql_insert_id and grab the User ID that was created when their record was inserted. Once I have that User ID, all is gravy :)

Any ideas?

Thanks!

Marco van Herwaarden 02-17-2010 09:55 AM

Please see the many articles on this topic in our Articles sections.


All times are GMT. The time now is 09:32 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.02116 seconds
  • Memory Usage 1,703KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (2)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