Giter VIP home page Giter VIP logo

wpchill / download-monitor Goto Github PK

View Code? Open in Web Editor NEW
255.0 255.0 116.0 16.34 MB

A WordPress plugin which provides an intuitive UI for uploading and managing downloadable files (including support for multiple versions), inserting download links into posts & logging downloads.

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

JavaScript 34.95% CSS 22.07% PHP 38.72% Shell 0.10% Less 3.27% EJS 0.87% Hack 0.03%

download-monitor's Introduction

wpchill

😎

download-monitor's People

Contributors

andyluak avatar anton4285 avatar ashleyfae avatar asmaloney avatar avioli avatar barrykooij avatar benhuson avatar candiba avatar cdillon avatar cklosowski avatar cristianraiber avatar dann2012 avatar dannyvankooten avatar dependabot[bot] avatar garza avatar giucu91 avatar hide92795 avatar jamesgol avatar juliopotier avatar kraftner avatar kzeni avatar liquidsunshine avatar mdmower avatar mikejolley avatar mzaweb avatar pal avatar pedro-mendonca avatar razvanaldea89 avatar sir-daniel avatar teoalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

download-monitor's Issues

Cannot generate correct filenames while using plugin: Root Relative URLs

We have our site setup on a dev server and a production server, thus we are using the wonderful Root Relative URLs plugin.

I believe this plugin breaks Download Monitor when it strips the domain name from the upload/versions box:

image

I have managed to fix this by adding two lines of code into the plugin that work for my purposes right before class-dlm-download-handler.php throws the headers to start the download.

image

    $file_path = $_SERVER["DOCUMENT_ROOT"] . $version->url;
    $file_name = $version->filename;

Not the most amazing solution -- however, as this plugin is quite robust, I believe that it wouldn't be absurd to add some additional conditions to detect this.

Add Filter to All Access / Cap Checks

In order to support possible extensions, anytime there is a cap check, the value should be returned through a filter.

For example, the check_access() method in 'DLM_Download_Handler` should have a filter to modify who has access.

I would love to write a simple extension for my membership plugin that makes it so that only paid subscribers can download a file, just as an example.

Massive Amount of Downloads

Recently my site has gotten a massive amount of downloads on one file (over 19,000 in one day). Is there some way to include the Bad Behavior plugin with the download-monitor plugin (or something like that)?

Or any other recommendation?

Thanks,
Nathan

Search and spaces

Using build 3.3.5.2
Using the search function within the default download page, using the [download_page] shortcode, spaces are removed when searching.
For example, enter two or more words separated by a space: 'quick brown' - the search fails and comes back with the message Results found for "QUICKBROWN" and no results were found.
I tried using quick%20brown and multiple spaces between words - results the same.

Legacy importer 1.0 fails after 40 sec

Hello,

We use the legacy importer 1.0 to import documents that were entered using version the last version of the old Download Monitor codebase. We're on a 3.5.2 Wordpress multi-site install with BuddyPress 1.8.

After about 40 seconds, it hangs and the loading of the page simply stops. The first 48 download packages are just fine but the rest isn't even there.

We tried extending PHP execution time, nothing changed. We all struggle, here at the Global Health Forum (GHF), to understand what is going on. Do you have any ideas?

Evren for the GHF Team.

Redirect link

Is it possible from list for example "Most downloaded" after clicking on the link to be redirected to the Single download page instead directly to the file? At the moment I'm using wp_dlm_show_downloads(1,8471)

Thanks.

How can I get all information from a specific download (ID)?

Hello there, have little doubt, I wonder how can get all the information about a specific download, I try with get_downloads function, but this function don't allow using ID.

$args = array (
   'id' => 3 //FOR EXAMPLE
);
$dl = get_downloads($args);
if (!empty($dl)) {
    foreach($dl as $d) {
//INFORMATION
    $down_tit = $d->title;
    $down_hits = $d->hits;
    $down_url = $d->url;
    $down_cat = $d->category_id;
    $down_ver = $d->version;
    }
}

Any idea how I could do this? I appreciate that, thank you for your time.

Unable to reorder categories

In the Downloads > Categories section there is a drag-drop style reordering system. When doing this it does not save the order of your categories. The only way of doing this is to reorder the categories and then create a new category - add that category and then click "Add". This then seems to reorder the category correctly. So you then have to delete the new category you've just created.

Using WP 3.3.1 and Wordpress Download Monitor 3.3.5.4

Files with a title that contain quotation marks show a backslash

I uploaded a document and the link to it shows up and I can access it just fine.

The File's Title is Postcard 4.5" x 6.5" and it appears on the website as Postcard 4.5" x 6.5". Document name is Postcard-4x6.pdf.

I found that going in and editing the file's title in the backend removed the backslashes, but after saving the title only showed Postcard 4.5 in the backend but showed Postcard 4.5" x 6.5" on the website.

Shortcode Category Argument Outputting Sub-Categories

Currently when using the shortcode to display downloads from a category it's also listing all downloads in it's sub-categories.

Example:

"Category A" has a sub-category of "Sub Cat A". "Sub Cat A" files are only assigned to that category (not both categories) in the Edit Downloads window.

When trying to list only the downloads assigned to "Category A" using the shortcode [downloads category="category-a" orderby="title" order="ASC"] it's outputting all files from both categories.

Is there a way to prevent sub-category files from being listed?

Post Meta - Download Options

I have figured out how to use the provided filters to create new can_download rules based on user role. I however would like to expand on this by adding to the meta box for download options so I can add those roles as options. For example free and paid roles. Each can download the file if they are logged in but I need to write rules for each.

I can do that part but what I am having issues with is adding to and editing the meta information using the provided actions.

Could you put together a simple code example for adding a new checkbox and saving it via the actions you setup. I am on hour 8 of trying to figure this out and am at my end.

Thanks

Update plugin deletes custom templates

I had created a custom template in templates/content-download-custom.php which was deleted after a plugin update.
When WordPress updates plugins does it simply delete and replace the plugins/download-monitor folder? Is there anything the plugin could do to preserve custom templates during an update?

Some downloads are showing up as 0KB

I am using force downloads. Everything seemed to work find on the previous versions of wordpress... I upgraded to the latest and greatest and seem to noticed that some download files show up as 0KB when downloaded using the plugin. I have about 35 downloads on my site and they all use force downloads (music file). I have tried renaming the file to no avail...

HELP PLEASE!

Paths fix

"I'm writing to offer a Download Monitor improvement.

In setups where the wp-content folder is a symlink (e.g. to a storage, in my case) the FILE variable returns the absolute path of the storage, not the path to the parent WordPress installation.

Under this condition download.php dies because it can't find the wp-config.php it needs.

My suggestion is to change the first line of download.php from this:

$wp_root = dirname(dirname(dirname(dirname(__FILE__))));

to this:

$wp_root = dirname(dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME']))));

This way it will return the path to the current wordpress installation, regardless of symlinks."

Error displaying downloadable file

i tried to use Email Before Download plugin integrated with the Contact Form7 and Download Monitor .
i've activated the three of them, and using you latest Download Monitor 4

i configured the ContactForm7 and Download Monitor, set the EmailBeforeDownload placeholders,

then set a post contains EmailBeforeDownload shortcodes that combined download file and form id's.
but i got this error message:

Fatal error: Class 'downloadable_file' not found in C:\xampp\htdocs\wptes\wp-content\plugins\email-before-download\email-before-download.php on line 134

what's wrong with my configuration? did i miss something to set up with the Download part?

Logging Features

Mike, I'm really happy you re-released this plugin. It's something I find very useful.

There are just a couple things I would like to look at changing for the logs. First, it'd be great to be able to filter logs by month and export only that month. I have to do this for monthly reporting. Also, within the exported .csv, rather than the ID's for files and users, I need to have the file title, usernames and email addresses.

Any help is appreciated. Thanks again for all your work on this plugin!

Move "Export CSV" Button to old location

Edit:

It seems, i (and a henadful of colleagues) have not seen the Button at its new location at the top. Please consider moving it back above the table where it was in the legacy plugin.

Original:

Hello,

Please consider to reimplement this feature from the legay donload monitor plugin. We used it extensively to export the download log and analyze the download behavior of our visitors using external software (mostly spreadsheet programs).

Version number oddity

I found a bug on DownloadMonitor.
Example, I create a now download and add version "v1.0_A" and "v1.0_B". then I put them on article. "v1.0_A" link works fine, but "v1.0_B" link doesn't work. "v1.0_B" is linked "v1.0_A"'s link and add count to "v1.0_A".
But "v1.0_a" and "v1.0_b" is working fine on each version.
Please fix this bug.

download categories in menu

Hi,
after installing your nice plugin i make 4 sample categories with 1 file for each one.
in the WP panel -> Aspect -> Menu i find the new "Categories" section.
well, i added all download-monitor categories under a custom link.

i have:

Downloads ( link to # )
- cat01
- cat02
- cat03
- cat04

the UI works nice.
but i think that the link in the menu item it's wrong.
the link http://www.example.com/?dlm_download_category=cat01 leads me to a 404 error page.

contact me if you want full access to the hosting where i'm working on.

thanks for your work ;)

open source rocks

get direct url

which function would i use to get the actual full url of the added download by id? not the permalink one, but the actual full url to the actual name.

download_taxonomies.class set_transient

The use of set_transient seems to be racking up my option_id count. I may submit a patch at some point, but this is not a major issue.

I assume it is the set_transient in download_taxonomies.class.php line 49 - 51. I'm not very familiar with this function apart from the brief that is in the codex.

I'm curious if this is necessary for every page load. I haven't had a chance to dig in and see why it's being used, but if it's not necessary on every page load perhaps a good alternative would be to use wp_schedule_event(). This will definitely cut down the options to a minimum update rather than every page load.

This is most definitely NOT a complaint! Just trying to be constructive with a plugin I appreciate! Great Work!

Download ID's

It appears that on the Downloads dashboard in the ID column the ID's are getting listed twice.

Example: Download A has an ID of 949 and it shows in the ID column as 949949

Additionally, when adding new downloads it appears to assign a random ID and then each download after the ID is subsequently increased by 2.

Example: Site A has Download A (ID 643), Download B (ID 645), Download C (ID 647)

Is it possible to have ID's start 1,2,3,4 as it did via the old Download Monitor?

Do not log searchengines

Hello,

Would it be possible to add the option not to have the searchbots being added to the logfiles as donwloads?

Thank for the great plugin!

Unable to edit category

The current Edit Category section within Downloads > Categories does not work with WP 3.3.1. That includes a category name change or change whether the category has a parent or not.

Featured Downloads

For some reason, when I select the "Featured" option for one of my downloads and saved it, the download was converted to a post. And there is no way to convert it back to a download.

cannot redeclare get_downloads() issue

Hi

I want to move from WP Download Manager to Download Monitor. When I delete WP Download Manager and install Download Monitor I get this error: Fatal error: Cannot redeclare get_downloads() (previously declared in wp-content/plugins/download-monitor/shortcodes.php:257) in /wp-content/plugins/wpdm-archive-page/wpdm-archive-page.php on line 226

How can I fix this? Really want to use Download Monitor :)

Allow filetypes

Does anyone know where we can modify the types of files that can be uploaded by Download Monitor? I'm trying to upload an .xfdl file, but it's giving me a security error.

Thanks

[download]My Content[/download]

Just trying out this new version of Download Monitor - still using the legacy version on some sites.

The template system in this version of Download Monitor is great.

However it would be really handy if you could wrap content (text/images) in the [download] shortcode to make it into a link.

eg [download id="1"]<img src="my-image.jpg">[/download]

Download does not exist! Error

I have well over a hundred downloads on my site: http://www.budestrings.co.uk/downloads/ all of which work apart from one. it is a doc in a category (rockschool exercises) of mostly mp3 files, and whenever i click on the download link i get a 'download does not exist' page. i have tried deleting and replacing the download including renaming it and the file, in the process, and even repaired the database, but keep getting the same error. the local copy of the file works fine.

also, is it possible to display a download category's name rather than the id in the address bar of the browser?

many thanks, jan

Change latin1_swedish_ci to utf8_general_ci

Hello,
If columns:

  • title
  • filename
  • file_description
    from table wp_download_monitor_files

are set to latin1_swedish_ci, It is impossible to set filesname with polish chars, for example: zażółć gęślą jaźń.
I changed them for my own usage to utf8_general_ci.
Whether they could be changed in the future?

Cannot use object of type WP_Error

While import database from old download monitor using Download Monitor Legacy Importer
I got this error
Fatal error: Cannot use object of type WP_Error as array in /home/xxxx/public_html/internal/wp-content/plugins/download-monitor-legacy-importer/includes/class-dlm-legacy-importer.php on line 257

Direct Link & Resume Link

Hello
it is anyway to make downloads resumable ?
it is possible to only count then redirect links that remote and in other server ? i want to link with 200Mb .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.