I'm building a membership site using the s2member plugin (it unfortunately HAS to be that one, because of its CCBill support - which is required). I'm also using rtMedia for users to upload media (photos/video).
Let's say there's a free tier (Level 1), and a paid one (Level 2). Level 2 users can upload both photos and video, but I want Level 1 users to only upload photos, restricting video to Level 2 only.
On a tight budget here, and can't really hire help to code this, so I'm trying to see if there's a way I can figure this out on my own. I contacted rtMedia support to see if they had any answers.
On whether or not I could hide certain media for certain users, they said:
You can use rtmedia-model-where-query filter in your theme or plugin and in that filter, you can check if current user is allowed to view the gallery or not. If he's allowed than simply return the query as it is and if not just put an 'AND' condition with SQL query which will result into false all the time for example 2=3. That way, SQL query won't be able to fetch any media if user is not set for required WP role.
On whether or not I could DENY said user to upload certain media (videos), they said:
rtMedia stores allowed upload types into $rtmedia global variable. You can access them as following.
You can hook into WordPress init action and can unset video from that if user does not fulfill required WP role.
Granted, I have absolutely NO idea what any of that means, or what to do with that info... :wink:
Any help, suggestions, clues, leads, links to tutorials, whatever, would be greatly appreciated!!