Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Register redirection not working.
Avatar
vikash tiwary
Member
Free Members
sp_UserOfflineSmall Offline
May 12, 2012 - 6:33 am

I made a custom page for registration using  wislhlist  .

and add this page url into forum >> login & registration  >> Registration redirect: "http:....."

but forum register button still redirect to the wordpress registration page.

please help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 12, 2012 - 7:05 am

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/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
vikash tiwary
Member
Free Members
sp_UserOfflineSmall Offline
May 12, 2012 - 7:31 am

thanks, this process is working well.

but i think this is a type of hardcoding. if we need to change the registration url again & again.

we have to change in spHead file every time.

is there any way to change from the admin section.

means like  registration redirect.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 12, 2012 - 9:00 am

no, the having it a template tag offers more flexibility...   and why would the registration url change that often??

Avatar
Salina Tam
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 4, 2012 - 1:36 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 4, 2012 - 2:14 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salina Tam
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 4, 2012 - 2:54 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 4, 2012 - 3:02 pm

Nothing serious, Those urls need to have quote marks around them is all.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Salina Tam
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 4, 2012 - 3:05 pm

It works! Thank you so much! kiss

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 4, 2012 - 8:42 pm

good to hear. thanks for the update.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626