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
Customised Registration Page Form - Redirect Url option
Avatar
Arno Wakfer
Member
Free Members
sp_UserOfflineSmall Offline
Mar 25, 2015 - 6:07 am
Hi All,

I would like quests wanting to register to be redirected to a Wordpress Contact Form they need to complete and submit.

The standard registration form does not allow me to capture the guests First and Last name as well as Company and Job title fields.

How do I change the link to the “register” tab on the front page of the forum to redirect them to my contact form page ?

Thanks

Arno

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 25, 2015 - 6:42 am

This can be changed in the template as wit just about all display items.

In this case the template would be the spHead.php template of the theme you are using unless it is reboot in which case you need to look in the 'desktop' and 'mobile; folders for the spHead templates and change them both.

This post from a previous thread explains how to do it: https://simple-press.com/suppo.....l/#p148591

As always we recommend the use of a child theme to ensure changes are not lost when upgrading. There are now Child Theme Frameworks available to download for all of our themes to make this simple and full and extensive details can be found on our Codex - Creating a Child Theme.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arno Wakfer
Member
Free Members
sp_UserOfflineSmall Offline
Mar 29, 2015 - 8:32 am

I am not getting this right. As soon as I change the code the forum does not work.

Please assist.

Thanks

Arno

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 29, 2015 - 8:44 am

I can not help without see the code you are trying to use? Paste it here - and it would help if you can use the code highlighter in the toolbar...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arno Wakfer
Member
Free Members
sp_UserOfflineSmall Offline
Mar 30, 2015 - 2:50 am

I need the "register" button to link to this http://www.accountantsforum.co...../register/

I went to SpHead.php under Theme editor

I then changed the following code : sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));

To

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

When I refresh the page the forum does not load…….

Thanks

Arno

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 30, 2015 - 5:00 am

Not sure whether it's because you're not using the syntax highlighter or are using something other than an editor or notepad to edit the template, but it looks like the quote marks are 'curly'.

In code the quote marks need to be 'straight'. Perhaps you could do as Andy suggested - Copy the spRegisterButton function again from your template, paste it into a reply here, highlight it and click the 'Syntax Highlighter' button in the editor toolbar (last button on the right in the top row, looks like a sheet of paper with curly braces on) and select 'PHP'.

Or, when editing your code, replace the quote marks and see if they appear straight.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 30, 2015 - 5:08 am

Ike is absolutely right. For the record - there is nothing wrong with what you have done (except for the fact that the link you have put in the argument is NOT the link you said you wanted - but that is up to you).

So as Ike has said - it may well be the quotes.

Paste that code into a plain text editor - like Notepad (Windows) in plain text mode. That should make sure the quotes are standard. Whatever you do - do NOT use a word processor or any form of rich text editor.

The theme editor provided in the forum admin will do this properly.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Arno Wakfer
Member
Free Members
sp_UserOfflineSmall Offline
Mar 30, 2015 - 5:49 am

Perfect Gents.

It now works.

Being an Accountant by trade I am still learning......

Regards

Arno

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 30, 2015 - 6:16 am

Kudos to Ike for spotting it.
It is easy to forget that not everyone knows how to d this stuff. Then again - I don't know how to prepare a profit and loss account!

andy-signature.png
YELLOW
SWORDFISH
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: 639
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17342
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10116
Posts: 79581