Restrict Access to RTMedia Page?


#1

How do I restrict access of the RTMedia page to logged in users only?

Example, the entire page should only be seen by logged in users http://www.ukraxdemo.com/what15102/media

Ideas?


#2

You could achieve that using the rtMedia Conditional Tags. You can have a look at the available conditional tags here -> http://rtcamp.com/rtmedia/docs/developer/conditional-tags/


#3

Thanks! I think I need a little more understanding on how to use them as I am always getting the same results. Is there something I should be inserting in the () after 'gallery'? Or something else I am doing wrong? Thanks Joshua.

If(is_rtmedia_gallery() ) { echo "logged in users only"; } else { echo "everyone"; }


#4

@tduschei - You would have to hook these conditions at a very early stage. Maybe around the template_redirect or the template_include hook.


#5