Support Forum
As it says, this option setting is for handling redirection AFTER the registration process.
To enable the use of a custom registration form, you will need to add the argument to the SP theme call that handles the registration button.
The template function is in the spHead.php template of your SP theme. By default it will be:
sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));
You need to add an argument to the argument list - in this case the argument 'link'. So that it becomes:
sp_RegisterButton('tagClass=spButton spRight&link=http://your-registration-page-url', __sp('Register'), __sp('Register'));
Note the ampersand before the link argument.
As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)
YELLOW
SWORDFISH
|
no, the having it a template tag offers more flexibility... and why would the registration url change that often??
Visit Cruise Talk Central and Mr Papa's World
Yellow Swordfish said
As it says, this option setting is for handling redirection AFTER the registration process.To enable the use of a custom registration form, you will need to add the argument to the SP theme call that handles the registration button.
The template function is in the spHead.php template of your SP theme. By default it will be:
sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));You need to add an argument to the argument list - in this case the argument 'link'. So that it becomes:
sp_RegisterButton('tagClass=spButton spRight&link=http://your-registration-page-url', __sp('Register'), __sp('Register'));Note the ampersand before the link argument.
As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)
Hi,
I'm new to Simple-Press and the above has helped me solve my registration button problem. But when I click on the Log In button in the forum, there are the registration link and the lost password links, and both of them still direct to the original WP pages. Can you please advice how I can direct both to a specific log in and lost password pages?
For instance, when users click the registration link, I would like them to be directed to this page: http://www.moderndragons.com/register/ instead of http://www.moderndragons.com/w.....n=register
And for the lost password link, I would like them to be directed to this page: http://www.moderndragons.com/r.....-password/ instead of http://www.moderndragons.com/w.....stpassword.
Thank you very much in advance!
Salina
That's a jolly good question.
In the very same spHead template - right at the top - you will see a section named 'In-line Login Form - Object Definition'.
You will need to add two extra items to this list. Please note carefully that each item must end in a comma with the exception of the last line in the list. You can add your two new lines wherever you like within the list.
The first much be called: 'registerLink' and the second called 'passwordLink'. Note the capitalisation.
Then after the => sign just enter the full, appropriate url.
And that should do the trick.
YELLOW
SWORDFISH
|
Hi,
Thank you for the advice. I found the section that you mentioned and made the modification below accordingly (see the orange texts):
# == IN-LINE LOGIN FORM - OBJECT DEFINITION ====================
$loginForm = array(
'tagClass' => 'spForm',
'controlFieldset' => 'spControl',
'controlInput' => 'spControl',
'controlSubmit' => 'spSubmit',
'controlIcon' => 'spIcon',
'controlLink' => 'spLink',
'iconName' => 'sp_LogInOut.png',
'labelUserName' => __sp('Login name'),
'labelPassword' => __sp('Password'),
'labelRemember' => __sp('Remember me'),
'labelRegister' => __sp('Register'),
'labelLostPass' => __sp('Lost password?'),
'registerLink' => http://www.moderndragons.com/register/,
'passwordLink' => http://www.moderndragons.com/r.....-password/,
'labelSubmit' => __sp('Log In'),
'showRegister' => 1,
'showLostPass' => 1
However after I made the edits and refresh the page, the forum can't be displayed. Please see http://www.moderndragons.com/forums/.
Did I do something wrong?
Thanks again,
Salina
good to hear. thanks for the update.
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)