vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   adding additional profile features (https://vborg.vbsupport.ru/showthread.php?t=230979)

tomsch 12-23-2009 05:03 PM

adding additional profile features
 
Does a hook exist in the login process to allow me to add things like REAL name, address, city, state, zip, additional preference check boxes etc...

i know there is the user profile features but this only provides a text box

i would like to write this data to a separate table to minimize any VB mods.

Lynne 12-23-2009 05:14 PM

Take a look at the registration.php page and you should see what hooks are available.

tomsch 12-23-2009 06:38 PM

ok that and a couple articles on hooks has helped. But i still can't seem to find the right one if it even exists.

I can use VB to add the fields i need i just need to find a hook location that will allow me to take that information and populate my custom table after the user hits the complete registration button.

anyone suggest an appropriate hook??

Lynne 12-23-2009 09:57 PM

Well, I don't know your mod, but I know I use the register_addmember_complete hook location to add some info to a custom table when I register users.

tomsch 12-23-2009 10:23 PM

Quote:

Originally Posted by Lynne (Post 1936853)
Well, I don't know your mod, but I know I use the register_addmember_complete hook location to add some info to a custom table when I register users.


thanks that hook should work. now to fix my php so it doesn't error out.

tomsch 12-27-2009 03:23 PM

is there a readme on how to use hooks??

i want to use this hook

register_addmember_complete

to write additional information into a table.

what i don't understand is how to configure my php page to return back to that spot and continue.

btw: Lynne can you recommend any php books

Lynne 12-27-2009 05:33 PM

There are some articles in the articles forums about using the hooks. I haven't really looked at them though. Once you finish doing your code in a plugin, you should go right back to that place in the code where the hook is located (unless you put an exit; at the end of the code).

As for php books, I really can't recommend any. I use google for a lot of help and then just steal my hubbies php books which are sitting around.


All times are GMT. The time now is 11:21 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.00993 seconds
  • Memory Usage 1,720KB
  • 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