Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
SImple Press & eMember Login
Avatar
Amanda Cox
Member
Free Members
sp_UserOfflineSmall Offline
May 14, 2014 - 2:53 am

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 14, 2014 - 6:15 am

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

Avatar
Amanda Cox
Member
Free Members
sp_UserOfflineSmall Offline
May 15, 2014 - 12:20 am

Thank you. I'll give that a go :)

Much appreciated and I'm sure if you don't hear from me here, you'll hear me screaming and then hear from me here.

Thank you.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 15, 2014 - 11:44 am

we will be here if you need it!

Avatar
Amanda Cox
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2014 - 2:17 am

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.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2014 - 2:45 am

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!

Avatar
Amanda Cox
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2014 - 3:03 am

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

Avatar
Amanda Cox
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2014 - 3:06 am

Whoopsie! Ignore that - um, was a small typo in what I'd done. 

It is now doing what I want it to do - hurrah!

Thank you both so much - if you were here I'd give you both big smoochy kisses - but that may be wrong.

MUCH appreciated. You've helped immensely.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2014 - 6:19 am

Glad you got it working

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