Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #10417

    We 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.


    GmediaCloud 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.


    There must be a function or hook to disable it?
    What about a php template – that we can edit?
    Please advise – this is very important.


    You 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() );

    This code will redirect all GmediaCloud pages to your home page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Troubleshooting’ is closed to new topics and replies.
Forum closed. Use forum at Gmedia Support Forum