BuddyDev

Search

[Resolved] Adding remote media media URL to group video gallery grid view

  • Participant
    Level: Master
    Posts: 413
    Venutius on #18852

    Hi Brajesh,

    Getting a little more complex. Yesterday I added the file upload dialogue to the group photo galleries grid view. This also added the upload dialogue to the video gallery grid view.

    However, What I would like is to have the file upload dialogue in the photo gallery, but only have the remote media url link in the video gallery grid view.

    Is that possible?

  • Participant
    Level: Master
    Posts: 413
    Venutius on #18853

    I used mpp_get_gallery_type() to choose between gallery types, just need to work out what function to call to insert the remote video url link.

  • Participant
    Level: Master
    Posts: 413
    Venutius on #18854

    Sorted it now

  • Participant
    Level: Master
    Posts: 413
    Venutius on #18855

    Ah sorry, that did not work, I got the link input and button displayed but it’s not working.

  • Participant
    Level: Master
    Posts: 413
    Venutius on #18856

    The problem I’ve got is that I’m getting the error message: “Please provide a url”.

    I added the following code to the home.php file for groups:

    		if ( $gallery_type == 'video' ) {
    			mpp_upload_dropzone( 'gallery' );
    			if ( mpp_is_remote_enabled( 'admin' ) ) : ?>
    				<!-- remote media -->
    				<div class="mpp-remote-media-container">
    					<div class="mpp-feedback mpp-remote-media-upload-feedback">
    						<ul></ul>
    					</div>
    					<div class="mpp-remote-add-media-row">
    						<input type="text" placeholder="<?php _e( 'Enter a link to a video you want to add to the gallery', 'mediapress' );?>" value="" name="mpp-remote-media-url" id="mpp-remote-media-url" class="mpp-remote-media-url"/>
    						<button id="mpp-add-remote-media" class="mpp-add-remote-media"><?php _e( '+Add', 'mediapress' ); ?></button>
    					</div>
    
    					<?php wp_nonce_field( 'mpp_add_media', 'mpp-remote-media-nonce' ); ?>
    				</div>
    				<!-- end of remote media -->
    			<?php endif;
    		}
    
  • Participant
    Level: Master
    Posts: 413
    Venutius on #18857

    Sorted it, just needed a bit more html in there.

  • Keymaster
    (BuddyDev Team)
    Posts: 24491
    Brajesh Singh on #18863

    Thank you.

The topic ‘ [Resolved] Adding remote media media URL to group video gallery grid view’ is closed to new replies.

This topic is: resolved