Tagged: GMediaCloud, Memberpress, Membership, protected, Secure Content
- AuthorPosts
- January 10, 2018 at 22:21 #10417
ecovalenceParticipantWe just bought two premium licences of GMedia Premium. Everything works great – EXCEPT there doesn’t seem to be any way to secure media content. We’re using memberpress – and any rule created to protect gmedia posts, albums or galleries is ignored. Custom URI options work for CPT urls – but not for GMedia Cloud pages.
1. How do we shut off GMediaCloud pages entirely?
2. Are there any functions or hooks that can be used to include memberpress scripts for protecting content?
3. Any other suggestions?If we can’t protect media files with plugin – please issue us a full refund.
Thank you.
January 11, 2018 at 16:39 #10419
RattusKeymasterGmediaCloud pages are not stored in the database, but generated automatically with unique ID.
There is no way to know the GmediaCloud url until you publish or share it somewhere.January 11, 2018 at 21:48 #10420
ecovalenceParticipantThere must be a function or hook to disable it?
What about a php template – that we can edit?
Please advise – this is very important.January 12, 2018 at 00:28 #10421
RattusKeymasterYou can add something like this to your theme’s functions.php:
add_action( 'parse_request', 'gmediacloud_redirect', 8 ); function gmediacloud_redirect( $wp ){ global $gmGallery; $endpoint = ! empty( $gmGallery->options['endpoint'] ) ? $gmGallery->options['endpoint'] : 'gmedia'; if ( isset( $wp->query_vars[ $endpoint ] ) && isset( $wp->query_vars['t'] ) && in_array( $wp->query_vars['t'], array( 'g', 'a', 't', 's', 'k', 'u' ) ) ) { // some conditions here to prevent load the GmediaCloud page // for example redirect to Home Page wp_redirect( home_url() ); exit(); } }This code will redirect all GmediaCloud pages to your home page.
- AuthorPosts
- The forum ‘Troubleshooting’ is closed to new topics and replies.
