Support Forum
Hi, hoping someone can help me ... I've been trawling support pages and forums for an answer, have checked all relevant boxes and set everything up as required.
I am using eMember for membership levels, and have coordinated all the user roles, mapped the users etc and it all seem so to be working fine, except ...
The login and registration buttons remain on the forums (this is cool) but the Login button goes nowhere, as though it is not clickable at all, it just does nothing, and the Registration goes to the wp-login page (which has been overwritten by the eMember login)
Can someone tell me how I can get the Registration button to go to the registration page (for eMember - a default page added to my site, and working well) and the Login button to go to the login page, please?
Am happy to alter code (so long as it's basic) in order to do so, I just can't find where. If there's a button I need to check, great!
Please help!!!
Thanks
you just need to adjust a couple arguments to the display template functions... see:
http://codex.simple-press.com/.....outbutton/
where you need to adjust the logIOnLink and logOutLink (if needed) arguments to where you want them to go... and
http://codex.simple-press.com/.....terbutton/
where you adjust the link argument where you want the registration link to go...
both of these can be found in the sp theme you are using... in the template file directory... in this case, both are in the spHead.php template file since they appear common in the header area...
as always, we highly recommend you make your own theme instead of editing ours to keep from losing changes on updates... see: http://codex.simple-press.com/.....g-a-theme/
please come on back if you still need more help....
Visit Cruise Talk Central and Mr Papa's World
we will be here if you need it!
Visit Cruise Talk Central and Mr Papa's World
Hi again, and thank you. You do rock! I
Okay, gonna ask this although it is probably really simplistic and silly - just bear with me, cos this is not generally the area I mess about in and am just learning, and possibly being overcautious.
I've read through everything and it made sense, I'm just not sure where in the spHead.php needs the changes.
Do I add the arguments towards the top in the IN-LINE LOGIN FORM - OBJECT DEFINITION bit .. here somewhere:
# == IN-LINE LOGIN FORM - OBJECT DEFINITION ====================
$loginForm = array(
'tagClass' => 'spForm',
'controlFieldset' => 'spControl',
'controlInput' => 'spControl',
'controlSubmit' => 'spSubmit',
'controlIcon' => 'spIcon',
'controlLink' => 'spLink',
'iconName' => 'sp_LogInOut.png',
'labelUserName' => __sp('Login name'),
'labelPassword' => __sp('Password'),
'labelRemember' => __sp('Remember me'),
'labelRegister' => __sp('Register'),
'labelLostPass' => __sp('Lost password?'),
'labelSubmit' => __sp('Log In'),
'showRegister' => 1,
'showLostPass' => 1
Or does it go down further in the code, in this bit here:
# Start the 'userInfo' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection', 'userInfo');
sp_UserAvatar('tagClass=spImg spLeft');
sp_SectionStart('tagClass=spPlainSection');
sp_LoggedInOutLabel('tagClass=spLabelSmall spLeft', __sp('Logged in as<br /><b>%USERNAME%</b>'), __sp('Please consider registering<br /><b>guest</b>'), __sp('Welcome back <b>%USERNAME%</b><br />Please log in to post'));
sp_LogInOutButton('tagClass=spButton spRight', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));
Anything you can advise would be most helpful and again, sorry if it's really, really simplistic
(And to reassure you, have made backups of that file & currently creating new theme as per the instructions etc so that bits all good)
Thank you.
You just need to add logInLink= to your sp_LoggedInOutButton further down in the code. i.e
sp_LogInOutButton('tagClass=spButton spRight&logInLink=www.google.com', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));
I used google.com as an example of adding a link. No quotes or anything just &loginlink=yourlink
You can do the same for logout, and register, remember to always use & to add a new argument with no spaces.
Hope that helps!
Thank you so much - it worked brilliantly for the Login button.
It doesn't seem to be working for the Regsiter button, though.
According to the Codex, the argument for this Register button is:
'link' => esc_url(wp_registration_url())
I'm using eMember for my membership and subscriber management, which has overridden the wp login in and registration forms. So do I need to put something else in where you suggested above, or is there something else I need to do.
Thank you, you've been most helpful
1 Guest(s)