Support Forum

Alternate Registration URL

JG JB Glossinger
JB Glossinger
Member

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:

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.

6 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

JG JB Glossinger
JB Glossinger
Member

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?

YS Yellow Swordfish
Yellow Swordfish
Member

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?

JG JB Glossinger
JB Glossinger
Member

It is the standard one: http://www.morningcoach.com/wp-login.php?action=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.

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…