The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vb variables
while we register at our forum at the same time i need to insert into another db username password and e-mail variables typed by user at forum register page
how can i do it? PHP Code:
|
#2
|
||||
|
||||
I do something similar on my site. I use the "register_addmember_complete" plugin.
PHP Code:
|
#3
|
|||
|
|||
thx a lot, btw where i can find "register_addmember_complete" plugin?
|
#4
|
||||
|
||||
Whoops, I mean I used that hook for my plugin. Sorry for the confusion. What hook are you using?
|
#5
|
|||
|
|||
i found a bit info about hooks and found "register_addmember_complete" in my register.php file. can u explain me how it can help me to done my db query with an example please?
|
#6
|
|||
|
|||
Use $db->escape_string() instead of addslashes().
|
#7
|
||||
|
||||
You add a plugin through the Admin CP at the specified hook. Simple.
|
#8
|
||||
|
||||
So this instead?
PHP Code:
|
#9
|
||||
|
||||
mysql_real_escape_string() runs MySQL's own function, which escapes what MySQL needs escaped. addslashes() only escapes what PHP needs escaped.
Also, addslashes() has been removed from PHP 6. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|