The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hooks and curl
The site owners want to collect some additional information from the users when they register and put it in their own (non vb) tables. So here is how I did it:
1. I hacked the registration template and added the desired fields 2. I made a hook on register_addmember_complete There's more than a few lines of processing and I want to be as independent as possible, so I tunneled the data to the custom application via curl. This thinking is just give the custom application the data but don't risk namespace conflict by sharing environment with vb. PHP Code:
What is supposed to happen: a) cu.php goes off and does its thing asynchronously, b) the hook returns and vb continues on it's merry way. What actually happens a) cu.php does it's processing just fine. b) vb returns from the hook (verified by temporarily sticking PHP Code:
c) it fails to render a HTML page telling the user what to do next, i.e. we have the dreeaded white screen of death. Am I correct in assuming that the program cu.php is independent, i.e. that no variables set by it will come back into vbulletin. Even if it mistakenly set a session var (which it doesn't) it is originate from a different IP address (it originate from the server) than the user so it would be a different session. So I am a bit at a loss to figure out what is happening and why. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|