Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Change register url
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 9, 2015 - 7:42 pm

hello i use a custom register link,i was wondering how i can change the default register link?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2015 - 7:46 pm

please see:  https://simple-press.com/docum.....terbutton/

you will need to edit you sp theme (please make sure its a child theme or your own instead of editing ours), and change up that template tag with the registration url you want to use...

note the 'link' argument to the template function...

Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 9, 2015 - 8:23 pm

so how would that look?

sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register')); take out the last

 

_sp.. so something like this?

 

sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), 'link' => esc_url(wp_registration_url())

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2015 - 8:38 pm

Funeral said
so how would that look?

sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register')); take out the last

 

_sp.. so something like this?

 

sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), 'link' => esc_url(wp_registration_url()

Sorry, on road with phone so can't give you compete example, but...

Replace

 esc_url(wp_registration_url())

With url you want to use as a string in quotes...

Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 9, 2015 - 8:48 pm

thats alright i can wait for the exact code. i keep getting errors

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2015 - 4:02 am

Replace

esc_url(wp_registration_url())

with

esc_url('http://your-registration-url-here-in-quotes')

Give that a try...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2015 - 12:01 pm

actually, some how we got off track here with the registration url... you must have looked at the actual core code...

lets step back and start over... 

in your sp theme, in the spHead.php template file, find this code:

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

and change it to

            sp_RegisterButton('tagClass=spButton spRight&link=http://my_registration_url', __sp('Register'), __sp('Register'));

as always, we strongly recommend you edit your own child theme or make your own theme to keep from losing changes...see:

https://simple-press.com/docum.....g-a-theme/
https://simple-press.com/simpl.....ld-themes/

sorry for the confusion...

Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Jan 10, 2015 - 6:28 pm

Awesome thanks! i was adding to the wrong spot haha

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2015 - 7:54 pm

you are welcome...  sorry we misunderstood you originally...

Avatar
Arno Wakfer
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2015 - 9:35 am

I have followed this step by step and cannot seem to get it right 

sp_RegisterButton(‘tagClass=spButton spRight&link=http://www.accountantsforum.co.za’, __sp(‘Register’), __sp(‘Register’));

Is this code correct ?

http://www.accountantsforum.co.za

Thanks

Arno

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616