Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • texteditor

    (@texteditor)

    Please add me as a maintainer too. I found a way to allow hyphens and underscores by default, but I would like to have this and other overrides available as options as what was done in this plugin.

    texteditor

    (@texteditor)

    I have the exact same error starting with
    `Warning: require_once(loader.php): failed to open stream: No such file or directory in ….’\

    I have to revert the plugin to 0.9.7

    Please fix this and take down the ‘Update Available’ notification until this is fixed. Thanks.

    ferreira2u – I was able to do this. Please contact me.
    https://ww.wp.xz.cn/support/topic/show-download-title-in-csv

    Thread Starter texteditor

    (@texteditor)

    Never mind. I made it work. I would like to submit my change to GitHub – Others may want to show the Download Title in their CSV export. Thanks.

    Greetings, Download Monitor version 1.6.2 appears to conflict with Custom Content Type Manager (CCTM) custom fields. No way to insert shortcode, no way to insert or upload a file. Lightbox open and just ‘hangs’. Using WordPress 4.1

    I cleared all caches, optimized DB, deactivated and reactivated plugins, etc.

    NOTE: version 1.5.1 of Download Monitor works PERFECTLY with CCTM, WordPress 4.1

    Thanks

    Greetings. I can do these changes for hire. I have customized some queries for our usage of Download Monitor already.

    Thread Starter texteditor

    (@texteditor)

    Never mind! I have it working. It is an INNER JOIN query change in class-dlm-admin.php

    In the “Export Logs” function lines 468 – 611 here are the modifications

    $items = $wpdb->get_results(
    			$wpdb->prepare(
    		    	"SELECT p.ID, p.post_title, d.ID, d.download_id,d.type,d.version_id,d.user_id,d.user_ip,d.user_agent,d.download_date,d.download_status,d.download_status_message FROM $wpdb->download_log AS d
                    INNER JOIN $wpdb->posts AS p ON p.ID = d.download_id
    		    	WHERE d.type = 'download'
                    " . ( $filter_status ? "AND d.download_status = '%s'" : "%s" ) . "
    	            " . ( $filter_month ? "AND d.download_date >= '%s'" : "%s" ) . "
    	            " . ( $filter_month ? "AND d.download_date <= '%s'" : "%s" ) . "
    		    	ORDER BY d.download_date DESC",
                    ( $filter_status ? $filter_status : "" ),
                    ( $filter_month ? date( 'Y-m-01', strtotime( $filter_month ) ) : "" ),
                    ( $filter_month ? date( 'Y-m-t', strtotime( $filter_month ) ) : "" )
                )
            );
    
            $rows   = array();
            $row    = array();
            $row[]  = __( 'Title', 'download-monitor' );
            $row[]  = __( 'Download ID', 'download-monitor' );
            $row[]  = __( 'Version ID', 'download-monitor' );
            $row[]  = __( 'Filename', 'download-monitor' );
            $row[]  = __( 'User ID', 'download-monitor' );
            $row[]  = __( 'User Login', 'download-monitor' );
            $row[]  = __( 'User Email', 'download-monitor' );
            $row[]  = __( 'User IP', 'download-monitor' );
            $row[]  = __( 'User Agent', 'download-monitor' );
            $row[]  = __( 'Date', 'download-monitor' );
            $row[]  = __( 'Status', 'download-monitor' );
            $rows[] = '"' . implode( '","', $row ) . '"';
    
    		if ( ! empty( $items ) ) {
    			foreach ( $items as $item ) {
    				$row    = array();
    				$row[]  = $item->post_title;
    				$row[]  = $item->download_id;
    				$row[]  = $item->version_id;
    
    				$download = new DLM_Download( $item->download_id );
            		$download->set_version( $item->version_id );
    
            		if ( $download->exists() && $download->get_the_filename() )
            			$row[]  = $download->get_the_filename();
            		else
            			$row[]  = '-';
    
    				$row[]  = $item->user_id;
    
    				if ( $item->d.user_id )
            			$user = get_user_by( 'id', $item->user_id );
    
            		if ( ! isset( $user ) || ! $user ) {
    	        		$row[]  = '-';
    	        		$row[]  = '-';
            		} else {
            			$row[]  = $user->user_login;
    	        		$row[]  = $user->user_email;
            		}
    
    				$row[]  = $item->user_ip;
    				$row[]  = $item->user_agent;
    				$row[]  = $item->download_date;
    				$row[]  = $item->download_status . ( $item->download_status_message ? ' - ' : '' ) . $item->download_status_message;
    				$rows[] = '"' . implode( '","', $row ) . '"';
    			}
    		}

    Agreed. Would you be able to add support for tags in the next release? I would be willing to test and help if needed.

    I agree. Can link rating be integrated into this plugin, whether it is dependent on another plugin or its own system?

    Thanks!

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