Find the file:
/wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/media-info.php
Create a folder in your theme/sub-theme called:
/wp-content/themes/[theme_name]/mediapress/default/gallery/media/views/lightbox (where [theme_name] is the name of your theme/sub-theme.
Copy the file media-info.php to the new folder in your theme.
Edit the file and modify is as follows adding the bolded code:
<div class="mpp-lightbox-media-uploader-meta mpp-clearfix">
<div class="mpp-lightbox-media-uploader-avatar">
<a href="<?php echo bp_core_get_user_domain( mpp_get_media_creator_id() ); ?>">
<?php echo bp_core_fetch_avatar( array(
'item_id' => mpp_get_media_creator_id(),
'object' => 'user',
'width' => bp_core_avatar_thumb_width(),
'height' => bp_core_avatar_thumb_height(),
) ); ?>
</a>
</div>
<div class="mpp-lightbox-uploader-upload-details">
<div class="mpp-lightbox-uploader-link">
<?php echo bp_core_get_userlink( mpp_get_media_creator_id() ); ?>
</div>
<span class="mpp-lightbox-upload-time">
<a href="<?php mpp_media_permalink(); ?>" title="<?php echo esc_attr( mpp_get_media_title() ); ?>"
class="mpp-lightbox-single-photo">
<?php echo bp_core_time_since( mpp_get_media_date_created( null, 'Y-m-d H:i:s', false ) ); ?>
</a>
</span>
<div class="mpp-lightbox-action-links">
<?php do_action( 'mpp_lightbox_media_action_before_link', $media );?>
<?php if ( mpp_user_can_edit_media( mpp_get_media_id() ) ) : ?>
<a class="mpp-lightbox-media-action-link mpp-lightbox-edit-media-link" href="#" data-mpp-media-id="<?php mpp_media_id();?>"><?php _ex('Edit', 'lightbox edit media edit action label', 'mediapress' );?> </a>
<a class="mpp-lightbox-media-action-link mpp-lightbox-edit-media-cancel-link" href="#" data-mpp-media-id="<?php mpp_media_id();?>"><?php _ex('Cancel', 'lightbox edit media cancel action label', 'mediapress' );?></a> or
<?php endif;?>
<!-- added link to View Original image page next to the conditional 'edit' button -->
<a href="<?php mpp_media_permalink(); ?>" title="<?php echo esc_attr( mpp_get_media_title() ); ?>"
class="mpp-lightbox-single-photo">View Original
</a>
<!-- end of --added link to View Original image page next to the conditional 'edit' button -->
<?php do_action( 'mpp_lightbox_media_action_after_link', $media );?>
</div>
</div>
</div><!--end of the top row -->


Leave a Reply