WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
New version will not hide or switch off "download count " Format ="1" (14 posts)

  1. Richardscholtz
    Member
    Posted 1 year ago #

    Hello

    The old version switched off the download count with the Format="1" switch [download id="546" format="1"]

    The new version does not give that option??

    Cannot migrate until that is available.....

    Regards

    Richard

    http://wordpress.org/extend/plugins/download-monitor/

  2. DelightedScribbler
    Member
    Posted 1 year ago #

    Yes! Please adjust such that the download count can be disabled!

  3. mack28
    Member
    Posted 1 year ago #

    How do I disable the download counter on [download id"xxxx"] but not in the admin area where each download by name must be counted.

  4. mikejolley
    Member
    Plugin Author

    Posted 12 months ago #

    See the new docs - formats have been replaced.

  5. Kerstey
    Member
    Posted 12 months ago #

    Hi - I'm sorry, I've had a look at the docs and I'm really struggling to find how to do this now? I can't find what to add to the shortcode to get rid of the (0 downloads).

  6. Kerstey
    Member
    Posted 12 months ago #

    ok, I've seen that there's the "download_count" shortcode.

    I've added this to my page "[download_data id="413" data="download_count"]"

    But it's still showing "0" instead of the link?

  7. mikejolley
    Member
    Plugin Author

    Posted 12 months ago #

  8. Kerstey
    Member
    Posted 12 months ago #

    ok, so I've found the file "download-monitor/templates/content-download.php"

    What do I need to change in the code so that the count isn't displayed?

  9. Kerstey
    Member
    Posted 12 months ago #

    I've just changed it to this and it seems to be working....

    <?php
    /**
     * Default output for a download via the [download] shortcode
     */
    
    global $dlm_download;
    ?><a class="download-link" title="<?php if ( $dlm_download->has_version_number() ) printf( __( 'Version %s', 'download_monitor' ), $dlm_download->get_the_version_number() ); ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">	<?php $dlm_download->the_title(); ?></a>

    Thanks for your help

  10. mack28
    Member
    Posted 12 months ago #

    To remove the count from the display remove the code below from the content-download template: "download-monitor/templates/content-download.php"

    (<?php printf( _n( '1 download', '%d downloads', $dlm_download->get_the_download_count(), 'download_monitor' ), $dlm_download->get_the_download_count() ) ?>)

  11. Kerstey
    Member
    Posted 12 months ago #

    Thank you

  12. mikejolley
    Member
    Plugin Author

    Posted 12 months ago #

    Try to do it via your theme (moving the template actually into your theme/download-monitor/ folder). Then your changes will be kept during plugin updates.

  13. mack28
    Member
    Posted 8 months ago #

    Sorry... I'm confused: Try to do it via your theme (moving the template actually into your theme/download-monitor/ folder). Then your changes will be kept during plugin updates.

    No such file folder in My Theme.

    Please explain further.

  14. mikejolley
    Member
    Plugin Author

    Posted 7 months ago #

    You have to create the folder/file in your theme. Its not automatic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic