Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Change default registration link (in default template)
Avatar
MartiL
Member
Free Members
Offline
Mar 18, 2012 - 4:39 pm

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!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 18, 2012 - 4:51 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Mar 18, 2012 - 4:56 pm

Hold on!

It's not 'registerLink' but just 'link'...

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 18, 2012 - 5:06 pm

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

Avatar
MartiL
Member
Free Members
Offline
Mar 18, 2012 - 5:19 pm

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


Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 18, 2012 - 5:25 pm

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

Avatar
MartiL
Member
Free Members
Offline
Mar 18, 2012 - 5:35 pm

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)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 18, 2012 - 5:36 pm

sounds good...

Avatar
Arild
Rookie
Free Members
Offline
Jun 27, 2014 - 7:46 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 27, 2014 - 8:30 pm

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

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626