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
changing the registration URL
Avatar
MrsAngelD
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 8:26 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 8:59 pm

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/.....terbutton/

and

http://codex.simple-press.com/.....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/.....g-a-theme/

Avatar
MrsAngelD
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 11:37 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 12:52 am

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...

Avatar
MrsAngelD
Member
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 1:27 am

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

Angel

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 2:06 am

glad its working! 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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625