The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External registration
Hi,
So I got my data manager: Code:
$userdata =& datamanager_init('User', $this->vbulletin, ERRTYPE_ARRAY); $userdata->set('email', $this->vbulletin->GPC['email']); $userdata->set('username', $this->vbulletin->GPC['username']); $userdata->pre_save(); I'm not quite sure about why GPC clears my post data, any help is much appreciated. |
#2
|
|||
|
|||
Did you call $vbulletin->input->clean_gpc() or $vbulletin->input->clean_array_gpc() to get the paramters and put them in $vbulletin->GPC[] ? Also, you're calling $this->vbulleitn, but maybe it's because your code is part of a class.
|
#3
|
|||
|
|||
Thanks this helped and solved the issue
In the meantime I came onto another problem: When my captcha fails I get no error message. I see that I can use this: $userdata->error('emailmismatch'); But what would the argument be for captcha? |
#4
|
|||
|
|||
Quote:
The parameter is a phrase variable name, so you could create a phrase or use an existing one. There's one called humanverify_image_wronganswer that says "The string you entered for the image verification did not match what was displayed.". |
Благодарность от: | ||
zero_ZX |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|