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

    (@bhaldie)

    Check you setting.

    An individual file must have the Downloadable by Non Members check.

    In Options>Settings>Hide Things> All Files: (Non Members) must be unchecked.

    Thread Starter iandoyle

    (@iandoyle)

    Yep, that is already unchecked.

    Plugin Author bhaldie

    (@bhaldie)

    ?what is the error you are seeing when trying to download a file with a guest users?

    Thread Starter iandoyle

    (@iandoyle)

    Just takes me to the wordpress login page.

    Only happens with recently added/updated files. Most of the older files are ok.

    Plugin Author bhaldie

    (@bhaldie)

    thanks for the input, ill do some testing and get back to you

    George

    (@trustgovernance)

    I’m having the same problem – can’t preview or download docs after 26 April 2016.

    Have checked all the settings and they all look correct for downloading by non-members.

    Not sure if there was an update around that time?

    Edit: looking at the previous comment, there doesn’t seem to be a Settings checkbox for individual files to be‘downloadable by non-members”.

    Plugin Author bhaldie

    (@bhaldie)

    is it checked or unchecked?

    Plugin Author bhaldie

    (@bhaldie)

    this is a test to see what the value is being return, add this line to the mdocs-rights.php file after line number 85:

    function mdocs_download_rights($the_mdoc) {
    	if(mdocs_check_file_rights($the_mdoc, false)) { ?>
    		<li role="presentation">
    			<a role="menuitem" tabindex="-1" href="<?php echo site_url().'/?mdocs-file='.$the_mdoc['id'].'&mdocs-url=false'; ?>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
    		</li>
    		<?php
    	} else { ?>
    		<li role="presentation">
    			<a role="menuitem" tabindex="-1" href="<?php echo wp_login_url(htmlspecialchars(get_permalink($the_mdoc['parent']))); ?>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
    		</li>
    		<?php
    	}
    }

    to list:

    function mdocs_download_rights($the_mdoc) {
    	var_dump(mdocs_check_file_rights($the_mdoc, false));
    	if(mdocs_check_file_rights($the_mdoc, false)) { ?>
    		<li role="presentation">
    			<a>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
    
    		<?php
    	} else { ?>
    		<li role="presentation">
    			<a>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
    
    		<?php
    	}
    }

    let me know what the exact output was. the output will be inside the dropdown menu.

    George

    (@trustgovernance)

    It’s now checked. It wasn’t previously. Checked or unchecked recent docs are not visible unless logged in.

    George

    (@trustgovernance)

    I’ve changed the code but am not sure which drop down menu to navigate to in order to see the output. I’m logged into my site and have scanned the I’ve tried the Options drop down inside the Memphis Docs Dashboard and it doesn’t seem to be there. If it’s the drop down menu triggered by clicking on a file, I see this

    Me too. I can help debug later this afternoon.

    I’ve got the same problem, too.

    When you mark more than one documents and use the “Batch Edit”, you can enable “NM” (NonMembers).
    It’s a first-aid-solution, but not the yellow from the egg.

    Greetings
    Sisam

    sisamlimamzuri’s suggestion worked. Great find.

    George

    (@trustgovernance)

    Thanks, worked for me too. Worth noting that using the Batch Edit also works for fixing a single doc.

    Thread Starter iandoyle

    (@iandoyle)

    The batch edit trick also worked for me.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Cant download file without being logged on’ is closed to new replies.