• Resolved dcocchia

    (@dcocchia)


    I’m using Memphis Documents 3.2.1 to create a document library on an intranet. We don’t have a need for the Preview feature – it doesn’t work anyway due to the site being internal – so I’d like to remove it to avoid confusion for the end-user.

    However, I cannot get the Preview option in the drop-down to go away. I have it unchecked in the settings, and I have messed around with disabling/enabling the third-party plugins. I can get Description to go away, but not the Preview option.

    Any suggestions?

    https://wordpress.org/plugins/memphis-documents-library/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bhaldie

    (@bhaldie)

    I just testing this and you are correct it is not working as aspected. I will fix this issue in the next version.

    if you want to change it in the mean time you can open the mdocs-rights.php file and change from line 96 to 100 to this:

    if($contributor == true || $the_mdoc['owner'] == $current_user->user_login || $current_user->roles[0] == 'administrator') {
    		if($mdocs_show_preview == true) {
    		?>
    	<li role="presentation"><a class="<?php echo $preview_type; ?>" role="menuitem" tabindex="-1" data-toggle="mdocs-modal" data-target="#mdocs-file-preview" data-mdocs-id="<?php echo $the_mdoc['id']; ?>" data-is-admin="<?php echo is_admin(); ?>" href=""><i class="fa fa-search mdocs-preview-icon" ></i> <?php _e('Preview','mdocs'); ?></a></li>
    	<?php
    		}

    Plugin Author bhaldie

    (@bhaldie)

    this issue has been fixed in version 3.3

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disabling Preview?’ is closed to new replies.