Support Forum

changing the registration URL

MR MrsAngelD
MrsAngelD
Member

I’m using a custom registration form on my wordpress site. Simple press is using the css-only theme. When I’m not logged in, simple press shows a registration link which leads to wp-login.php?action=register . The problem is, this is not the page I need users sent to for registration. I need them to go to where my custom form is. How can I fix this?

Thank in advance,

Angel

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

fix? nothing to fix.. ;)   but you can customize it…  everything is done in theme template files just like a wp theme…

so for the registration url, see: 

http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_registerbutton/

and

http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_loginform/

both of those will be in your spHead.php template file of your sp theme…

as always, before customizing, be sure to create your own theme to not lose changes on updates…. see:

http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

MR MrsAngelD
MrsAngelD
Member

Thanks Mr Papa first I want to say I’m sorry for being a total code newbie.

I made a copy of the theme css-only and successfully applied it, but I’m really having a hard time grasping the concept of filters and how to customize them. I’m sort of learning as I go  with this website as it’s the first time I’ve attempted to build my own WordPress theme.

So I was wondering if you could help me get a better handle on what code exactly I need to put into spFunctions.php to make this work…lol. I know I’m asking a lot but have mercy on me oh great one as I’m really trying hard to learn this stuff.

Thank you,

Angel

MP Mr Papa
Mr Papa
Member

well this doesnt use filters… its just passing an argument to replace a default… so for the first one, in template file spHead.php change:

            sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));

to

            sp_RegisterButton('tagClass=spButton spRight&link=http://mysite.com/register', __sp('Register'), __sp('Register'));

of course, change the url to your registration url…

for the second one, at the top of the same file is a login form array… change:

        'showLostPass'        => 1

to

        'showLostPass'        => 1,
         'registerLink'        => 'http://mysite.com/register'

again, change the url… that is adding another argument…

MR MrsAngelD
MrsAngelD
Member

surprisedsurprisedThank you so much!!! The registration URL is now working properly. You really are a dear.

Angel