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
Redirect 'Forgotten Password' link
Avatar
michael walker
Cambridge, UK
Rookie
Free Members
sp_UserOfflineSmall Offline
Mar 8, 2012 - 4:19 am

My wordpress site is managed by a third-party membership script (WP-Members) and if a user clicks on the 'forgotten password' link in SP, they are re-directed to the standard WP log in page. I should like to alter this so that they are actually re-directed to the alternative page that my membership plug-in provides. Can anyone tell me, please, which SP file I need to look at to accomplish this small change?  TIA

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 8, 2012 - 10:00 am

OK - V5 is theme and template driven so what you will need to do is make an edit to the spHead.php template in the templates folder of the SP theme you are using.

When you have the file - you will see at the top a block labelled 'login form - object definition'. You will need to add a line to this block. IMPORTANT NOTE: Notice all iines must end with a comma except for the last line so make sure you stick to this rule. You can out this new line anywhere n he block.

This is what you need to enter:

'passwordLink' => site_url('wp-login.php?action=lostpassword', 'login'),

except you will want to change the url from the default 'wp-login.php?action=lostpassword' to whatever the url you require is.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

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