Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe entries from the standard registration form into properties #14

Open
kghbln opened this issue Feb 6, 2015 · 1 comment
Open

Pipe entries from the standard registration form into properties #14

kghbln opened this issue Feb 6, 2015 · 1 comment

Comments

@kghbln
Copy link
Member

kghbln commented Feb 6, 2015

I think it will be a nice feature if the entries for user name, real name and e-mail could optionally be piped into properties to be saved on the user's page.

@mwjames
Copy link
Contributor

mwjames commented Feb 10, 2015

For a quick getaway the following can be used in SpecialSemanticSignup::createUserPage:

        $this->formHandler->setSubmitState( true );
        $data_text = $this->formHandler->getTemplateText();

        $str_to_insert = '|Username=' . $this->mUserDataChecker->mUser->getName();
        $str_to_insert .= '|Email=' . $this->mUserDataChecker->mEmail;
        $data_text = substr_replace( $data_text, $str_to_insert, strpos( $data_text, '}}' ), 0 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants