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.

List purchased / permitted pages for a user

Home Forums Community Forum List purchased / permitted pages for a user

This topic contains 3 replies, has 2 voices. Last updated by  Raam Dev 4 years, 8 months ago.

Topic Author Topic
Posted: Tuesday Apr 24th, 2012 at 2:09 pm #11720

Is there a way of listing all of the content that a user has permission to access.

I want to take users to a sort of dashboard area after they login which shows them which content (videos on pages) they have access to already. Ultimately I would create some sort of table which also showed expiry date on the CCAP if applicable too…

I can envisage an ultra complex way to do it with lots of conditionals but thought I would ask

Thanks

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Apr 24th, 2012 at 3:56 pm #11745
Raam Dev
Username: Raam
Staff Member

Hi Daniel,

Unfortunately there is not currently a simple way to do this. I would recommend writing some custom PHP that uses WordPress and s2Member functions to generate such a dashboard.

Posted: Tuesday Apr 24th, 2012 at 4:13 pm #11753

I had thought that one way to do it was to create a custom archive page that lists all posts in the category for paid content then using conditional tags to display whether a customer has the right to view it or not…

in pseudocode

for i = 1 to count(get_posts(paid_content)…)
{
if (user_has_ccap(video)
{
list_item_as_available + list_eot_time
}
else
{
list_item_sale_page_link
}
}

Posted: Wednesday Apr 25th, 2012 at 1:29 pm #11848
Raam Dev
Username: Raam
Staff Member

That sounds like it should work.

Viewing 3 replies - 1 through 3 (of 3 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.