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
Synchronization with WP
Avatar
shay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2012 - 11:09 am

First of all, great software!  I just upgraded yesterday to version 5 without any problems at all.

I'm using simple press for a membership site.  All members create WP accounts with a plugin called Digital access pass. This means that all users are viewing the forum from within the membership section of my site and are all WP registered accounts.

Most of the time logins work without a problem.  Occasionally though, a member is logged into WP but is not logged into Simple press.  I sometimes see Guests in the 'Currently Online' section.  I also had this happen to me with my test user account which I logged into from another web browser. 

So this leads me to a few questions:

  1. Is there something I need to configure to force a login to simple press each time a user logs into WP.  I believe this is what's happening now anyway but like I said, on occasion the sync doesn't happen.
  2. If I'm logged into WP but not simple press, why can I not use the simple press login to gain access?  I've tried many times and each time it doesn't recognize the credentials.
  3. How can I hide the simple press Log Out button?  In what file is it located?  I really don't want the users logging out of simple press because of the problems I mentioned.  Instead, they can use my WP logout button.

Thank you for your time!

Shay

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 20, 2012 - 12:02 pm

there is no login to SP. just the login to the site. it is the same thing. if wp passes the current user as logged in then that is it.

The forum login/logout button cn be removed in the Sp theme template (spHead.php). you should be able to find the template function easily enough.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Eric Bobrow
San Rafael CA
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 12:34 am

I use Digital Access Pass (DAP) with SP, and had a similar problem with one particular user account. I found that the user had two different email addresses - one of them in DAP, the other in SP. I changed the user profile in SP to have the same email address, then when the user logged into the site through DAP they were properly logged in to the forum as well. I imagine that may be the source of Shay's issue as well.

I have a different problem, also related to logins. I used to have the login button in SP redirect to my DAP login page, so that a single login would grant them access in both places (as above). However, now the login button opens up the inline form in SP instead.

I looked in SP 5.0 admin area and changed the login redirect in the Components > Login and Registration > Login/Registration Redirects, but it still uses the inline form rather than redirecting as it did before. Any ideas why this is happening? It appears that this redirect feature is not functional in the default theme, or perhaps I'm misunderstanding what it's supposed to do.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2012 - 5:36 am

Thanks for that information. Useful knowledge...

V5 is now theme and template driven. The login/out button can be found in the spHead.php template in the SP theme you are using (/templates folder). The function can take optional arguments one of which is 'logInLink' (note the case). So - if you take a look at the template as delievered out of the box it probably currently says:

sp_LogInOutButton('tagClass=spButton spRight', __sp('Log In', '2011'), __sp('Log Out'), __sp('Log in and log out'));

using the same argument passing as adopted by WP you can add supported arguments to the list so to add your own login link and override the current SP inline form you would add:

sp_LogInOutButton('tagClass=spButton spRight&logInLink=your-login-url', __sp('Log In', '2011'), __sp('Log Out'), __sp('Log in and log out'));

Give that a try.

andy-signature.png
YELLOW
SWORDFISH
Avatar
shay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 6:31 am

Thanks Eric, I haven't had that one happen yet.  I think that problem would be termparary because DAP updates WP with name and email on each login if using the DAP login.  Still, they can get out of sync during a session which is not good.

You may be interested in more details of my solution...

Many of my users wanted to change the original DAP generated username "FirstNameLastName" so they were changing it in SP.  This would cause the account to get out of sync with SP because each time they login from a DAP login form the username sent to WP "FirstNameLastName" would not match the changed username in SP.  It is possible for your users to choose their own username but YOU, the admin, must do it for them.  Here's how I did it.

First, I turned off the ability for users to change their username in Simple Press.

I then went to DAP and pulled up the user record. I changed the First name last name combination to create the desired username.

For example, if the user wants his username to be Joe Blow, then you can either enter JoeBlow in the first name or Joe as first name and Blow as Last name.

Here’s the trick to this though, the UserName in DAP, just below the first and last name MUST = whatever the original FirstLastName combination was.

So if the user was originally set up as follows:
First Name – Chris
Last Name – Smith
Username – “empty field”

And he wanted his login name within simple press to be JoeBlow, then you have to change him in DAP like this:
First name: Joe
Last name: Blow
Username: ChrisSmith
or
First name: JoeBlow
Last name: “empty field”
Username: ChrisSmith

This is the only way I have been able to get the account resynchronized. If not done like this then when the user logs into a DAP login form and then goes to Simple Press he will show up as Guest.

Again, this is only if the username got changed in Simple Press. As long as the username is never changed in the first place you won’t have this problem. My experience so far has been that some people don’t want their complete name visible in the forum or just simple prefer to use a nickname.

I hope this helps.  Let's keep each other posted in this forum for WP=>DAP=>SP integration.  This is a very specific combination and very little could be found in Google.  I instead spent many hours figuring this out when I really needed to be running my membership site 🙂

Avatar
shay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 6:35 am

Yellow Swordfish,

Is there a way to prevent users from changing their First Name Last Name within profile?

 

thanks,

Shay

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2012 - 8:14 am

You can remove the first and last name fields from the Sp profile if that helps - this has the same effect. That requires the 'profile display control' Sp plugin to be installed.

andy-signature.png
YELLOW
SWORDFISH
Avatar
shay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:44 am

Yes sir, that did it!  I think that was the final step in locking down the user information so it doesn't interfere with DAP.  I think some users were changing their first or last name which also caused login problems. 

Eric, you might use the "Profile display control" plugin suggested by Yellow Swordfish to turn off all the login, email and name settings. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2012 - 11:52 am

Good to hear.

andy-signature.png
YELLOW
SWORDFISH
Avatar
shay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 26, 2012 - 2:56 pm

One more question on this topic Yellow Swordfish.  I have noticed several times that I show up in the forum as a "Guest" yet I am also recognized by name. 

Welcome back ShayCampbell
Please log in to post

How might I resolve this?  I'm logged into one system but not another?

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