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
Alternate Registration URL
Avatar
JB Glossinger
Member
sp_UserOfflineSmall Offline
Dec 3, 2016 - 1:19 pm

Hello,

I having an issue with the registration button. I want it to go to Alternate Registration URL that I have entered into the configuration as in the image included:

Image Enlarger

The login button is going to the Alternate Login URL that I entered but the registration button is going to the default Wordpress registration page. How can I make the registration button go to the Alternate Registration URL?

Thank you.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2016 - 3:59 pm

which registration button?  the one in the forum header area? 

Did you previously specify a destination url in the template tag in the sp theme for the registration button?  In your sp theme, in the spHead.php template file, what do you have for the registration button?  Here is the default one:

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

if you previously put a registration url in there, it takes precedence...

Avatar
JB Glossinger
Member
sp_UserOfflineSmall Offline
Dec 4, 2016 - 10:24 am

Thanks for the reply. That is exactly what is in there:

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

If I wanted to just put a URL in there, how would I go about doing that?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2016 - 10:37 am

Can I ask a question? When you display a forum page with the registration button showing (and I assume you are referring to the complimentary one we display along with profile, login etc...) then when you hover your mouse cursor over it - what url gets shown as the link - which in most browsers displays in the status area at the bottom of the window.

Is it your replacement or the standard  WP link?

andy-signature.png
YELLOW
SWORDFISH
Avatar
JB Glossinger
Member
sp_UserOfflineSmall Offline
Dec 4, 2016 - 12:30 pm

It is the standard one: http://www.morningcoach.com/wp.....n=register

I have not changed any of the code. I just added an Alternate Registration URL but it is not working. The Alternate Login URL does work.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2016 - 4:33 pm

to answer your question back in post 3, you would change it to

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

of course, put in your url there for the link argument...

Interestingly, I just did a quick test and it didnt work for me either.. so maybe something has gotten knocked... will open a ticket for research...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2016 - 4:59 pm

so turns out there is an issue with the alt registration url... will get it fixed up in next release (should be in week or two when wp releases 4.7)... in meantime, you can use the method in my last post, or if you want, we can post the code change here for the alt registration url if you want to update our plugin code...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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