The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
add new lines to a table, when user register
Hi guys, i am looking for a product or thread about this, but still cant found it yet
so when user register, i need to add new line to a table, for example i have a customtable in database the user is register & the userid is 10 i need to add this line in customtable : Quote:
maybe using a plugin, with register_addmember_complete hook? please help if you can, GBU for replying --------------- Added [DATE]1386005901[/DATE] at [TIME]1386005901[/TIME] --------------- update, i already get the code for the plugin, its like this PHP Code:
the problem now is only what hook i need to use? - using global_start is working, but its inserting more than one lines for each member, only need 1 line for each member - using register_start, the line is created, but userid is still not created yet, still get 0 value - using register_addmember_complete, not working at all please help guys, only which hook question i need to choose now |
#2
|
|||
|
|||
I think you would want to use register_addmember_complete, but I don't know why it won't work for you. I think you'd want to use $userid for the new user's id instead of $vbulletin->userinfo['userid'].
|
#3
|
||||
|
||||
already tried this code
PHP Code:
PHP Code:
with hook register_addmember_complete, but nothing new line created in the table, is it i already right write the code? btw my first code PHP Code:
i try wrap with these if conditional but its still not right : if ($show['member']) { if (THIS_SCRIPT == 'register') { // above my first code } } please give suggestion any hook or methode that will work like i need above |
#4
|
||||
|
||||
PHP Code:
|
Благодарность от: | ||
basketmen |
#5
|
||||
|
||||
Quote:
Quote:
thank you very much & GBU for kh99 & Lynne hope this thread can help others that need similar information too |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|