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
Integrating with Digital Access Pass (DAP)
Avatar
Anne Elliott
Member
Free Members
sp_UserOfflineSmall Offline
Mar 10, 2015 - 10:32 pm

 Hi! I'm brand new, but my website is about 18 months old. We have about 600 paid members. I am using the Digital Access Pass (DAP) plugin to drip content to our members, and the DAP login is really the only login we use on our site.

According to the DAP support documentation, they fully integrate with Simple:Press. I installed Simple:Press today and have set up some basic forums. However, I've tested the login with several members, and I can't figure out why some can log in and some can't.

It feels as if DAP and Wordpress aren't talking to each other like they should.

Ideally, I would like ALL my logged-in users to have access to the forum without having to log in a second time on the forum page.

Is this even possible? Can you help? What information should I give you? 

Thank you SO much! My brain hurts from thinking about it so much today. LOL!

~Anne

http://problem-with-post-edit-.....gtorah.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2015 - 1:41 am

well, simple press does not have users, wp does...   so in your DAP settings have you told it to sync its users with wp?   it must be set to create wp users from the DAP users since its really an external app...

if a user logs into wp, they have access to the forum (with the admin defined permissions of course)...

Avatar
Vic Dorfman
Member
sp_UserOfflineSmall Offline
Mar 11, 2015 - 3:29 am

Hey Anne,

Have you had DAP => WP user sync enabled since you began accepting members?

You can check this by comparing your DAP user database in DAP => Users => Manage and your WordPress user database in WP Dashboard => Users.

If only *some* of your DAP members have corresponding WP user entries, that would potentially explain why some folks can log in while others can't.

Another possibility is that you have a caching plugin (like W3 Total Cache or WP Super Cache) or a caching service (like CloudFlare) enabled, which interferes with logging and logging out properly, as was the case on my site until I excluded all DAP folders and system pages from being cached.

Also, you wrote:

Ideally, I would like ALL my logged-in users to have access to the forum without having to log in a second time on the forum page.

Is this even possible? Can you help? What information should I give you? 

Yes this is definitely possible.

If DAP => WP Sync is enabled, the user flow should be:

==> The member logs in to DAP (not WP)

==> This automatically logs the member into WP as well

==> The member visits the forum and sees that he/she is logged in and can post

 

What might be happening in your case is that you members are trying to log in and log out using the Simple:Press login button, which would only log them out of WordPress but NOT out of DAP.

This was the case on my site as well, which is why I posted a support thread about removing the login button so that we could force members to login/logout through DAP *only*.

Finally, if you want users who log out of DAP to also be logged out of WordPress (which I reckon you do), you'll need to implement the easy fix suggested by Veena on the DAP support forums:

http://www.digitalaccesspass.c.....9-user-out

Hope that helps Anne! :)

Best,
Vic

Vic Dorfman - Membership Site Expert

http://www.VicDorfman.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 11, 2015 - 5:55 am

We appreciate the timely help. We understand the basics of DAP but nobody here has ever used it.
So thanks...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Anne Elliott
Member
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2015 - 3:36 pm

Vic Dorfman said

Have you had DAP => WP user sync enabled since you began accepting members?

You can check this by comparing your DAP user database in DAP => Users => Manage and your WordPress user database in WP Dashboard => Users.

If only *some* of your DAP members have corresponding WP user entries, that would potentially explain why some folks can log in while others can't.

No, I have *not* had it synced the entire 18 months! In fact, I'm not exactly sure when I changed that setting, although I know everything is syncing now.

I checked some of my users, and the older ones are not able to login to the forum, where the brand-new members are fine.

Do you have any idea how I can repair this problem?

Thank you! This has been incredibly helpful!

~Anne

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2015 - 5:38 pm

So referring to the second half of Vic's post, have you tried asking someone who is having the problem to try using only the DAP login/logout?

Also, if the problem is because you haven't had the sync enabled since the start and some members haven't been synced properly, you might be better off asking DAP support - since that really falls under DAP > WordPress integration, on which we are not experienced!

Avatar
Anne Elliott
Member
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2015 - 8:48 pm

Thank you so much to everyone!

Yes, I think you're right -- that this is something I should ask DAP. 

So I went there and talked to them, and basically, I discovered that the Wordpress username and the DAP username must match *exactly* -- and that's where mine didn't. 

I downloaded CSV lists of my users and sat with a yellow highlighter marking the usernames that were different. 

To fix it, I change the username in DAP, *not* in Wordpress (where it's not possible to change it). If I couldn't change it for some reason, I deleted the user in Wordpress and added a new one back in, this time with the identical username as DAP. This happened only a few times, and I did have to email those customers and let them know that I had changed their password to something simple and that they would need to change it back, but this was fewer than 10 customers for me, so I think it was worth it.

It's a bit time consuming, to say the least, but in the grand scheme of things, a day of work for happy customers isn't so bad. 

I do appreciate all your help. It truly was helpful.

~Anne

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 12, 2015 - 12:24 am

glad it was able to be resolved!

Avatar
Anne Elliott
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2015 - 11:42 am

Vic Dorfman said

What might be happening in your case is that you members are trying to log in and log out using the Simple:Press login button, which would only log them out of WordPress but NOT out of DAP.

This was the case on my site as well, which is why I posted a support thread about removing the login button so that we could force members to login/logout through DAP *only*.

Vic, I wanted to reply to this because I removed the login/logout button from my forum.

I am using the standard theme that came with Simple:Press, but in whatever Forum theme you're using, this is how to remove the button.

Go to Forum > Themes > Theme Editor > spHead.php

Scroll down to the # Start the 'userInfo' section.

Now find this code and remove it. (Note: I would make a backup of this file first, just in case!)

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'));

Basically, you're removing the php that tells the forum to place the login/logout and register buttons on the forum member's page. 

I hope this helps!

~Anne

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2015 - 11:48 am

@ilovefrance a couple things...

first, as always, we strongly recommend you dont edit one of our themes, but instead make a child theme or your own theme to keep from losing changes on updates to our themes... you may already be doing this, but just throwing it out there...

second, both the register and login/logout buttons offer options to instead point to your own registration or login pages... so you can have the buttons, just point them to your DAP pages instead of the inline wp registration or login page...

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: 618
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10126
Posts: 79622