The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Form User Registration
I'm trying to create a custom form for user registration and I'm stuck. I appreciate if anyone could help me out a bit. I'm not an expert coder but I try to read and put pieces together.
Here is the code that I have but it is not working. I'm not sure what I'm doing wrong here. PHP Code:
|
#2
|
||||
|
||||
Not that easy!
Perhaps you need humanverification .... Look whats your $userId return. |
#3
|
|||
|
|||
The human verification is disabled in the setting. Now, can someone please look at this and tell my why this is not writing the user to the database? Nothing is being saved to the database.
PHP Code:
|
#4
|
|||
|
|||
If you use var_dump to dump all the variables to the screen, it might show any errors that indicate why it's not working properly.
|
#5
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
It looks like it is giving an error about the admin being signed in. Not sure how to fix this. Any thoughts? |
#6
|
|||
|
|||
Digging into the code, a $canadminusers variable is checked to bypass most of the registration checks. More specifically, this variable holds the return value of the permission check of "canadminusers". So the admin account you're logging in as does not have a true value for the "canadminusers" permission. You should set this to true in the admincp under > Usergroups > Administrator Permissions > Edit Permissions of the admin account > set Can Administer Users to Yes.
|
#7
|
|||
|
|||
Quote:
I just checked the admincp administration setting for that user and also for the usergroup (administrators) and everything is set to yes. Specifically the Can Administer Users is already YES. I actually did set it to No and tested the form and I got the same error message. I set it back to YES again. Anywhere else that you could think of? |
#8
|
|||
|
|||
No, based on the code that's the only reason why it could show that error. (canadminusers permission of the user "superadmin" not set to true)
|
#9
|
|||
|
|||
Quote:
I'm not sure where you are seeing the canadminusers error message? |
#10
|
|||
|
|||
Quote:
There is a check for $canadminusers that allows you to bypass several registration checks. However if $canadminusers is false then it will throw an exception "signing_up_but_currently_logged_in_msg" if the user is already logged in but does not have the canadminusers permission. It's the only line of code in the entire file that throws that specific exception. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|