Support Forum

Change default registration link (in default template)

MA MartiL
MartiL
Member

Just a quick question:

The default link when clicking the ‘register’ button is ../wp-login.php?action=register; I need it to go to ../wp-login.php?action=VI-gratis

In which file can I edit this please?

Thank you!

9 Answers

New Answer

MP Mr Papa
Mr Papa
Member

thats in the spHead.php template file…

to the sp_RegisterButton() template tag call, add an argument of:

registerLink=http://yoursite.com/wp-login.php?action=VI-gratis

and you should be good…

YS Yellow Swordfish
Yellow Swordfish
Member

Hold on!

It’s not ‘registerLink’ but just ‘link’…

link=http://yoursite.com/wp-login.php?action=VI-gratis

MP Mr Papa
Mr Papa
Member

oh, I misunderstood… I gave you the register link within the inline login form…  but yet referred to the button… you will need to change both if using the inline login form too…

MA MartiL
MartiL
Member

Ah, figured it had to be the head-template, but coding n00b as I am, I was looking for a link to edit embarassed

@Mr Papa: never mind, it worked out fine 🙂

 

If there’s anybody looking for the same thing at some point, here’s how the code ended up:

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

is the default code;

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

 is what I’m using now (works like a charm).

Thanks again!!


MP Mr Papa
Mr Papa
Member

okay cool. are you using the inline login form? if so, you will see another register button when opened… it likely still points to the wrong one for you…

add the stuff I originally said to the top part of that same file where you will see a loginForm array if you want to change it too…

MA MartiL
MartiL
Member

Sorry – I should have clarified.

I’m not using the inline form, so this solution works perfectly in my situation.

(Though I am now considering it, would look nicer … And thanks to the info in this topic, I should be able to get that working as well wink)

AR Arild
Arild
Member

Could you please explain exactly where to find the spHead.php file? I can not find it…

MP Mr Papa
Mr Papa
Member

In the sp theme you are using… By default the themes are located in wp-content/sp-resources/forum-themes

Go into the theme you are using, into the template files folder and you will see it…

As always, we strongly recommend that you create a child theme or your own theme vice editing out theme directly where you would lose the changes on an upgrade….