latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Specific post access: assign to user's ID?

Home Forums Community Forum Specific post access: assign to user's ID?

This topic contains 2 replies, has 2 voices. Last updated by  Kevin Murphy 3 years, 4 months ago.

Topic Author Topic
Posted: Tuesday Aug 20th, 2013 at 6:28 pm #56287

I understand that the “specific post/page” is built to be separate from the membership options, but we’d like to achieve something like Lynda whereby we can check if a user has access to a page and enable a link if they can do so. Or, list all the users bought content in their dashboard.

For instance: http://www.lynda.com/Design-Illustration-tutorials/Insights-Graphic-Design/134895-2.html

I understand this isn’t how the plugin is designed but could you give us an initial starting point? i.e. are there any hooks we might be able to use to achieve this? I’ve only found the following useful links so far:

[video]: http://www.s2member.com/videos/ED64B278374AB72F/
[user ID in api notification]: https://www.s2member.com/forums/topic/specific-postpage-sale-no-user_id/
[alternative using custom capabilities]: http://www.s2member.com/forums/topic/membership-and-pay-per-post-symbiosis/

We have an IPN notification handler for new/updated users which we could perhaps extend, the custom capabilities is another option but particularly graceful for pay-as-you-go.

I have a feeling there’s no way to do this without some serious hacking.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Aug 22nd, 2013 at 3:43 am #56411

You mean giving the user a navigation with links to the pages he bought access to? if so, you’ll need the user to register, otherwise you won’t have a way to link separate purchases by the same person.

You could use custom capabilities, the difference would be that he’d register and be logged in when purchasing, so the ccaps are all under his account. The Specific Page restriction can’t do that, because it isn’t tied to any user account.

Then for the navigation, you’d have some conditionals that check if the user has access to a page, and gives the link based on that. Or check the custom capabilities he has and link to the pages they give access to.

Posted: Monday Aug 26th, 2013 at 3:59 pm #58700

Yeah, I thought that was currently the only way to do it. I’m not sure that it’s the most convenient option but it might have to do! Perhaps some kind of IPN API notification in the URL for users with accounts could be added to the the next generation plugin for specific post/page access — you’d have to have a whole load of custom capabilities for what we have in mind.

Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.