Example #1
0
<form  id="gallery_media_upload_form" action="<?php 
bp_gallery_media_upload_form_action();
?>
" method="post" enctype="multipart/form-data">
            <div id="from-remote-url">
                <div class="guploading" style="display:none;"></div>
		<p><?php 
//$type=bp_gallery_get_current_gallery_type();
if (bp_is_single_gallery()) {
    ?>
			<input type="hidden" name="galleries-list" id="galleries-list" value="<?php 
    echo bp_get_single_gallery_id();
    ?>
" />
		<?php 
} else {
    global $bp;
    echo bp_list_galleries_dropdown($bp->gallery->gallery_type);
}
?>
                </p>
                <?php 
wp_nonce_field('save_gallery_media_from_web', '_wpnonce-save-gallery-media-from-web');
?>
                <p><?php 
_e("Visibility", "bp-gallery");
gallery_valid_gallery_status_dd(false);
?>
</p>
               <p> <?php 
$gallery = bp_get_single_gallery();
Example #2
0
<form  id="gallery_media_upload_form" action="<?php bp_gallery_media_upload_form_action();?>" method="post" enctype="multipart/form-data">
			<div id="from-my-comuter">
			<div class="guploading" style="display:none;"></div>
			<input type="hidden" name="auth_cookie" value="<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>" id="auth_cookie" />
			<?php wp_nonce_field( 'save_gallery_media','_wpnonce-save-gallery-image' ) ?> 
			<br />
			<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo gallery_get_max_media_size(true);?>" /><!-- change -->

			<input type="file" name="file" id="file" class="validate[required]" />
			<br />
			<p><?php 
			//$type=bp_gallery_get_current_gallery_type();
			
			if(bp_is_single_gallery()):?>
				<input type="hidden" name="galleries-list" id="galleries-list" value="<?php echo bp_get_single_gallery_id();?>" />
			<?php else:
                            global $bp;
                        
			echo bp_list_galleries_dropdown($bp->gallery->gallery_type);
			endif;
			?>
            </p>
			<div id="swfupload-control">
			<p id="queuestatus" ></p>
			<ol id="log"></ol>
		</div>
			<p><input type="submit" name="save-media" id="activity_upload_media_submit" value="<?php _e('Upload & Save Cover','bp-gallery');?>">
			
		</div>
		<div class="update_media_upload" id="update_media_upload">