PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Assigning Posts/Where is Purchased Post Data Kept?

s2Member Plugin. A Membership plugin for WordPress®.

Assigning Posts/Where is Purchased Post Data Kept?

Postby PxO Ink » February 12th, 2011, 8:05 pm

Hi,

I'm wondering if I can assign a specific post to a user once they've signed up. Assuming that this kind of request fell under user meta data, this is my function mockup to explain:

Code: Select all
function assignPost($user_id, $post_id) {
     $posts = get_user_meta($user_id, 'posts_purchased', true);
     $posts .= ":$post_id";
     update_user_meta($user_id, 'posts_purchased', $posts);
}


I basically want to assign everyone post_id = 1, and from then on I want only certain users to be able to access certain posts (depending upon other variables, most likely meta data.) I want them all to be under the same role.

Hopefully I can also somehow integrate drip feeds into this, like once a post has been assigned 7 days later it's sent to them via email.

This is really important to me and if anyone can point me in the right direction I would be very grateful.
User avatar
PxO Ink
Registered User
Registered User
 
Posts: 5
Joined: February 9, 2011
Location: Michigan

Re: Assigning Posts/Where is Purchased Post Data Kept?

Postby PxO Ink » February 14th, 2011, 10:41 am

Just giving this a little bump to get more attention.

Is there an area where posts are matched to users? Maybe that would lead me in the right direction. Or maybe there is actually a hook or function to assign posts to users?
User avatar
PxO Ink
Registered User
Registered User
 
Posts: 5
Joined: February 9, 2011
Location: Michigan


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot] and 2 guests

cron