Support Forum

Synchronization with WP

SH shay
shay
Member

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

17 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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.

ER EricBobrow
EricBobrow
Member

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.

YS Yellow Swordfish
Yellow Swordfish
Member

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.

SH shay
shay
Member

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 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

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.

SH shay
shay
Member

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. 

SH shay
shay
Member

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?

MP Mr Papa
Mr Papa
Member

no, only one system – wp…  but its noticing you from a cookie…  so you dont accidentally post as a guest… this is a setting you have enabled… forum – options – member settings…

UN
Unknown
Member

Hi there

Sorry to but in but is it possible with DAP and simple press to connect a dap member with a product to a specific group and thus a forum or part of the forum without having to do it manually?

Thanks for your help 🙂

MP Mr Papa
Mr Papa
Member

not sure what you mean…  but I can say we have some users that have had success using a wp plugin for DAP – but not sure which one…

SH shay
shay
Member

Jeremy, I use DAP to manage my members and I also use SP.  Only my members have access to the forum because my forum page is part of my protected content under ContentResponder.

If you are trying to hide only part of the content in the forum I would ask DAP support, they respond very quickly to questions.