The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automatically register user
Can someone tell me where the adding new user script is located in vbb 5.x?
I had an automatic vbb registration in 3.8.x that I created long ago. Now that I am using vbb 5.x would like to integrate same. This is my original script (simple and sweet): PHP Code:
Fatal error: Class 'vB_Request_Web' not found in /home/curecd/public_html/discussions/core/includes/init.php on line 38 Fatal error: Class 'vB_Shutdown' not found in /home/curecd/public_html/discussions/core/vb/vb.php on line 454) Does anyone have any advise on how to get this script modified for vbb 5.x and/or the location of the register commands in vbb 5.x so I can start from scratch Any thoughts/advise would be greatly appreciated Thanx |
#2
|
||||
|
||||
The registration action is in includes/vb5/frontend/controller/registration.php
It's the actionRegistration() method. You'll want to use the API. core/vb/api/user.php It's the save() method. |
#3
|
|||
|
|||
Thanx m8 - gives me something to figure out this weekend
|
#4
|
|||
|
|||
Hey Dead Eddie,
I have played with this a bit, but honestly I really do not have the time. You seem far more familiar with the inner workings of Vb5 and could probably do this a whole lot easier and faster. If interested in helping out here, send me a pm. I am not opposed to paying for your time and effort. |
#5
|
||||
|
||||
I might be able to come up with a working example, but I'm not 100% sure when I'll have time to work on it. And, the PHPdoc documentation for this method is just north of completely useless.
|
#6
|
|||
|
|||
Vbb can be really difficult to work with since templates and stuff is not php parsed. I haven't even been able to locate the actual php script that is running the registeration,
I even tried to auto submit the form with hidden fields but IE gives you a json download request and FireFox/Chrome both display the json response both of which terminate the script. Although I have not given up entirely, I am atm at a loss. Again, willing to pay someone - it is less aggravating!!! |
#7
|
|||
|
|||
hey Dead Eddie, I was never able to directly input into the vb database in vb 3.x but seems to work just fine in vb 5.x. Could something really be easier in vb 5.x?????
I am on to getting an auto login now. I can accomplish that, but can't seem to stop the redirect after login. Any ideas on this would be helpful |
#8
|
|||
|
|||
By request:
The system we have is a full featured dynamic website in which vbb is only a small part. Membership in the main site is fee-based and it would be impractical to have 2 separate logins. So, on registration in the main site, all information gets logged into a database (temporary): PHP Code:
PHP Code:
We transfer data into permanent database: PHP Code:
PHP Code:
We can then add the user to the vb user database: PHP Code:
PHP Code:
I know that entereing data directly into the vbb database is strongly discouraged and that the code(s) above may not be the best or optimum, but auto-registration has long been sought in vbb and nobody has ever put one forth although I know they exist. So, rather than critisize, maybe post the "proper" way to auto register AND autologin. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|