WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
Download Count Bug and Filesize Issue (4 posts)

  1. ELsMystERy
    Member
    Posted 10 months ago #

    When you edit an imported download (using the add-on tool), as soon as you update it the download count is reset to 0.

    Also, on one file I imported it did not set the file size. I had to go into the database and add it manually. In the db, "_filesize" was set to -1 and "filesize" was empty.

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

  2. mikejolley
    Member
    Plugin Author

    Posted 10 months ago #

    Filesize should be automatically calculated when you save - this would only fail if the file path is invalid/not readable.

    Can you edit the download and check the path? You'll also see the download count box there as well should you wish to edit it.

  3. ELsMystERy
    Member
    Posted 10 months ago #

    I know the file path was correct (I double checked it) because I could download the file and add that to the count, but if I edited/updated the download post it reset it back to zero. Anyhow, what I did was deleted all of the imported download posts and then just added them manually and everything seems fine now. I only have 9 files to download at the moment, so it was not a huge inconvenience. I did not test editing the download count box before adding the files manually. It seems to work fine now though.

    I did find one other thing I forgot to mention. When I added <p> to the "before=" part of the shortcode it did not set the paragraph tag there, instead it added <li>. The "after" tag did set it to </p> like I told it. I ended up setting them to an empty string (before/after = ""), which worked fine and did not add any HTML before the links. I then added the tags I wanted to a custom template.

  4. mikejolley
    Member
    Plugin Author

    Posted 10 months ago #

    Before and after seem to both be working fine. Ensure you wrapped the before arg with quotes:

    before="<p>"

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.