Forum Replies Created

Viewing 1 replies (of 1 total)
  • The only way I got it to work was to copy some code of ultimate-member-gallery.php. Since I was not able to make it think that the profiletab was = gallery_photo.

    So add:

    global $ultimatemembergallery;
    		$prefix = '.min';
    
    		    if( defined('UM_GALLERY_DEBUG') ){
    		        $prefix = '';
    		    }
    
    			wp_register_script('um_gallery_scripts', UM_GALLERY_URI . "assets/js/um-gallery{$prefix}.js", array('jquery'), $this->version, true );
    			wp_register_script('prettyphoto', UM_GALLERY_URI . 'assets/prettyphoto/js/jquery.prettyPhoto.js', array('jquery'), '3.1.6', true );
    
    			wp_enqueue_script('um_gallery_scripts');
    			wp_enqueue_script('prettyphoto');
    
    			wp_localize_script( 'um_gallery_scripts', 'um_gallery_scripts', array(
    			     'galleryimageupload' => UM_GALLERY_URI . 'lib/upload/um-image-upload.php',
    			     'umg_admin_ajax' => admin_url('admin-ajax.php')
    					)
    			);
    
    			wp_register_style('um_gallery_style', UM_GALLERY_URI . "assets/css/um-gallery{$prefix}.css", '', $this->version, 'all' );
    			wp_register_style('prettyphoto', UM_GALLERY_URI . 'assets/prettyphoto/css/prettyPhoto.css', '', '3.1.6', 'all' );
    
    			wp_enqueue_style('um_gallery_style');
    			wp_enqueue_style('prettyphoto');
    		$ultimatemembergallery->content_gallery_photo();

    Basicly it’s line 94 to 127, I might have removed some part of the video gallery because I don’t plan on using it.

    Hope this can help you !

Viewing 1 replies (of 1 total)