Search Results for 'all downloads'

Viewing 25 results - 2,601 through 2,625 (of 4,372 total)
  • Author
    Search Results
  • #73944

    Hi,

    Maybe you used custom code update in the file. After the plugin update, the file changed. So the link is disabled. For custom code update, You need to copy the file from \plugins\download-manager\tpls\wpdm-all-downloads.php and put this file into the active theme/download-manager/ wpdm-all-downloads.php, then the update will not affect the template file. More details here.

    Now, After the update you can use cols="page_link,file_count,download_count|categories|update_date|download_link" with the shortcode so the page link will be desplayed with the title. So you can use page_link instead of title in the cols.

    Thanks

    #73844

    stilmi
    Member
    This reply has been marked as private.
    #73821

    stilmi
    Member

    I don´t want to download add-ons and install it again, if they were installed before and disappear after updates, which was the case in here !? This is to my mind extremely inconvenient, because I have to remember all installed items and the user is confused and is asking me, where are the menu items to edit his downloads.

    #73803

    Dewey Perro
    Member
    This reply has been marked as private.
    #73799

    stilmi
    Member
    This reply has been marked as private.
    #73647

    In reply to: Slow download speed


    IVA Groep
    Member

    Allready tried that.
    Download speed is set to 4096KB/s also tried a higher speed but no performance change.
    Also Resumable Downloads and Output Buffering are enabled. still low speeds.

    #73625

    In reply to: Downloads not showing


    Shahriar
    Moderator

    Hi,

    User dashboard doesn’t show all downloads. Please use [wpdm-all-packages] shortcode to show all downloads in a tabular format.

    Here is shortcode doc https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/

    You can use TinyMCE Button Add-on ( https://www.wpdownloadmanager.com/download/advanced-tinymce-button/ ) to insert shortcode easily.

    Thanks.

    #73579

    Victor Maat
    Member
    This reply has been marked as private.
    #73556

    In reply to: Setting frontend


    Shahriar
    Moderator

    Hi,

    I have created frontend upload ( create new package ) form here http://www.luxury-italian-office.com/fashion-brands/frontend-upload/
    It is working without any issue. I have used frontend-upload as page slug here. You can’t use download as your page slug because it is the URL base for your packages/downloads.

    You are using an older version of Download Manager. Please install the updated version to get the best experience. You can download it here https://www.wpdownloadmanager.com/user-dashboard/purchases/

    Thanks.

    #73526

    AlesiaN
    Member

    Hi Simon, I was about to post the same issue. Even more, for me 95% of packages show the empty page.
    For those that show up the link is not working. Just a plain text. I had to disable the membership and allowed all downloads for now, as it is look empty 🙁

    #73499

    Victor Maat
    Member

    I’ve installed DMpro with the membership add-on, tinymice shortcode add-on and extended shortcodes add-on.

    On my site I need 3 users who can only access their own assigned category.
    In the membership add-on I’ve added 3 plans: beginner, advanced and refresher
    I’ve created 3 members with each having access to 1 plan (so 1 beginner user, 1 advanced, 1 refresher)
    In the downloads I’ve created 3 categories, one for each plan.
    In each category I’ve added 1 test file.

    In the download settings I’ve selected “When user is not allowed to download: Hide everything”

    I’ve created a page that can only be accessed when logged in and added the following shortcode, using the tinymice creator:
    [wpdm-all-packages categories="beginner,advanced,refresher," items_per_page=10]

    When I visit the page as one of the members (let’s say advanced) I can see all packages that are created in the following format:

    Title – Category – Date added – Download link

    Only the download link for my own category is available, the rest is showing: “Subscribe – available for beginner or refresher only”
    But I can still see the other package titles and icons, categories and date added

    How can I change it so that only the one category for this user is showing, and the rest is completely hidden?

    Am I missing something?

    Victor

    #73350

    jonoread
    Participant

    How do I get my pages which contain shortcode and manually created (eg http://unofficialmills.co.uk/podcasts/2007-podcasts/) to look more like the automatically created category pages (eg http://unofficialmills.co.uk/downloads/2007-podcasts/)

    It looks a lot neater but i don’t know what settings to tweak.

    #73324

    Hi there, hope you’re all well.

    Some time ago you did some custom work for us on our site https://jacobi.net/

    We currently have the following setup

    1. Files stored on our server.
    2. Our script can be run to populate the packages and package categories as well as setting template.
    3. Site visitor browses categories to get to package and fills out the access request form.
    4. Once access request is received we set a password and then send it out via the system.

    Step 2 isn’t working too well at the moment and we need to look at it to fix it.

    However our clients requirement for the online downloads library has now changed.

    They want to just get an email requesting a specific file and then they will send Box links manually in response to that email.

    So my question is – Can we refine steps 1/2 so that we can populate our site based on the box.com stored contents? OR do you have an import script that sets package categories based on the directories that the files are stored in?

    Any help would be much appreciated, it’s been a while since this was working correctly.

    Thanks,

    Ben

    #73058

    Hi,
    Sorry for late reply.
    Use the following shortcode:

    [wpdm_category id="Category Slug(s)" toolbar="1" paging="1" order_by="title" order="desc" items_per_page="10" template="link-template-panel-1-3" cols=4 colspad=2 colsphone=1]

    change the category slug with your one. Details here.

    Thanks

    #73047

    Hi,

    WordPress provides API which allows developers to interact with sites remotely. You may use the REST API v2 of WordPress and follow this to add support for custom post types. As we use custom post type, you can easily get all the downloads file in json format with the API.

    Thanks

    #72974

    Hi,

    Maybe you use custom template file in the theme folder for all downloads. Please send login to check the the issue. or removing the theme file /themes/rexus-child/download-manager/wpdm-all-downloads.php would solve the problem.

    Thanks

    #72950

    iTesla
    Participant

    Hello
    I think i found a error on that day i use a plugin which shows errors and options to fix them.

    2018-03-26 23:44:49
    Fatal Error: Error: Class 'WPDM_Stats' not found
    wp-content/plugins/wpdm-pdf-stamper/wpdm-pdf-stampers.php 112

    Could this be the cause?

    Also i installed the latest update without error on this new host but same i get a blank page when try downloading, i enabled debug and this is the error i see.

    [04-Apr-2018 00:19:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xxxx/public_html/wp-content/plugins/download-manager/wpdm-core.php on line 398
    [04-Apr-2018 00:19:09 UTC] PHP Notice:  Trying to get property of non-object in /home/xxxx/public_html/wp-content/plugins/download-manager/wpdm-core.php on line 399

    p.s. i was busy moving from GoDaddy my site was very slow on 27 march after the problem with downloads.

    #72906

    I have made two groups for download with the relevant user role. So the files are only showed to the user role which actually should have access to. This i have tested and works fine. But if i visit the download page as guest (not logged in) then all files are shown to the guest user with login button. I want to show nothing to guests without any user role. How can i avoid this?

    #72879

    Steve Culp
    Member

    https://www.ebinsuranceinc.com/test/

    So using this plugin with the Call To Action 4 template. I have 5 pages with different amounts of downloads. I’m getting issues with gaps and spaces depending on my column counts in my shortcode and all I can figure is that it is because of my document titles being different lengths and making the “box” different heights, so it’s not making even and balanced columns and leaving gaps. I have the example page above showing this. How can this be fixed because it does not look good?

    #72854

    In reply to: CSS Change Template


    Michael K.
    Participant
    This reply has been marked as private.
    #72846

    In reply to: CSS Change Template


    Michael K.
    Participant
    This reply has been marked as private.
    #72842

    In reply to: CSS Change Template


    Michael K.
    Participant
    This reply has been marked as private.
    #72821

    In reply to: CSS Change Template


    Michael K.
    Participant
    This reply has been marked as private.
    #72818

    In reply to: WPDM – Amazon s3

    The code tags removed all white space.

    Defined constants file:

    /etc/aws_secrets/site.secrets.php
    <?php
    define(‘AWS_CLOUDFRONT_ACCESS_KEY_ID’,’*************’);
    define(‘AWS_CLOUDFRONT_KEY_PATH’ , ‘/etc/aws_secrets/cloudfront_privk.pem’);
    define(‘MY_DOMAIN’ , ‘.example.com’);
    define(‘AWS_CLOUDFRONT_USER_DOWNLOADS’,’***********.cloudfront.net’);
    define(‘AWS_USER_ACCESS_KEY_ID’,’****************’);
    define(‘AWS_USER_SECRET_ACCESS_KEY’,’********************************’);
    define(‘AWS_REGION’,’us-west-2′);
    ?>

    // Add to the end of functions.php in your WordPress theme
    add_action(‘init’, ‘setMyCookies’);

    function setCloudFrontCookies(){

    /*
    * We’re on app.example.com or http://www.example.com, files are on S3.
    * We need to send requests to files.example.com, becuase browsers will not
    * accept cookies for S3 or xxxxxxx.cloudfront.net sent from example.com
    *
    * Therefore, we will set cookies for .example.com,
    * so that they’re sent to the CloudFront subdomain files.example.com.
    *
    *
    * User request needs to go like this:
    *
    *
    * User visits *.example.com (our site)
    * After authenticating user, our site *.example.com sets cookies for
    * .example.com and redirects to files.example.com
    * DNS sends request to cloudfront. Cloudfront gets files from S3.
    *
    * Step: 1
    *
    * Set Route 53 (DNS) CNAME record for files.example.com that points to our
    * cloudfront distribution: xxxxxxx.cloudfront.net.
    * Now requests sent to files.example.com from our site will go to cloudfront.
    *
    * Step: 2
    * In our cloudfront xxxxxxx.cloudfront.net add CNAME files.example.com
    * Now xxxxxxx.cloudfront.net will respond to requests sent to files.example.com
    */

    // Settings
    //
    // Location of all defined constants used below
    require_once (‘/etc/aws_secrets/site.secrets.php’);
    //
    // AWS SDK User
    // Create an IAM user with cloudfront all access for use by the SDK
    $user_access_key_id = AWS_USER_ACCESS_KEY_ID;
    $user_secret_access_key = AWS_USER_SECRET_ACCESS_KEY;

    // AWS Cloudfront Access Key ID
    // NOT a regular IAM user.
    // In your root account look for “My Security Credentials”.
    // Or, from here:
    // https://console.aws.amazon.com/iam/home#/security_credential
    // Look for Your Security Credentials,Cloudfront Key Pairs, Access Key ID
    $key_pair_id = AWS_CLOUDFRONT_ACCESS_KEY_ID;
    // The private key .pem file associated with this Access Key ID.
    $private_key = AWS_CLOUDFRONT_KEY_PATH;

    // Region is a subset of the availbiity zone
    // If availbility zone = us-west-2b, then region is us-west-2
    $region = AWS_REGION;

    // MY_DOMAIN = .example.com
    $my_domain = MY_DOMAIN;

    // http*:// permits both https and http.
    // You can add a restriction in your Distribution Behavior to redirect all http to https.
    // Then this code is portable across distributions.
    $cloudfront_base_url = ‘http*://’ . $my_domain . ‘/’;

    // Path to cookie protected content.
    // Change * to your path after the base url http*://.example.com/
    //http*://.example.com/$cookie_path
    $cookie_path = ‘*’;

    // Full URL for cookie protected content
    $allowed_resource = $cloudfront_base_url . $cookie_path;

    // Cloudfront requires all policies to expire
    // This is the policy level expires
    $policy_expires_after = (86400 * 7); // 1 week

    // Set your own $expires at the cookie level to zero to make it a session cookie.
    // Easier to debug a session cookie.
    // And users do not need to be told to clear their cookies to get a new policy,
    // if you change the cookie policy.
    // Users will get the new policy on login.
    $expires = 0;

    // Initialize AWS SDK for PHP
    $site_path = get_home_path();
    $aws_path = ‘vendor/autoload.php’;
    $aws_package_path = $site_path . $aws_path;
    require_once $aws_package_path;

    $sdk_params =
    [
    ‘region’ ► $region,
    ‘version’ ► ‘latest’,
    ‘credentials’ ► new \Aws\Credentials\Credentials
    (
    $user_access_key_id,
    $user_secret_access_key
    )
    ];
    $sdk = new \Aws\Sdk($sdk_params);
    $cloudfront = $sdk->createCloudFront();

    // Setup CloudFront cookie #1: CloudFront-Key-Pair-Id
    $cookies = [ ];
    $cookies[ ‘CloudFront-Key-Pair-Id’ ] = $key_pair_id;

    // Setup CloudFront cookie #2: CloudFront-Policy
    $raw_policy =
    [
    ‘Statement’ ►
    [
    [
    ‘Resource’ ► $allowed_resource,
    ‘Condition’ ►
    [
    ‘DateLessThan’ ►
    [
    ‘AWS:EpochTime’ ► (time() + $policy_expires_after)
    ]
    ]
    ]
    ]
    ];

    $policy = json_encode($raw_policy);
    $cookies[ ‘CloudFront-Policy’ ] = base64_encode($policy);

    // CloudFront cookie #3: CloudFront-Signature
    $url_signing_params =
    [
    ‘url’ ► $allowed_resource,
    ‘policy’ ► $policy,
    ‘key_pair_id’ ► $key_pair_id,
    ‘private_key’ ► $private_key
    ];

    $signed_url = $cloudfront->getSignedUrl($url_signing_params);
    // We just need the “Signature” query string part of the signed URL
    parse_str(parse_url($signed_url, PHP_URL_QUERY), $signed_url_arr);
    $signature = $signed_url_arr[ ‘Signature’ ];
    $cookies[‘CloudFront-Signature’] = $signature;

    // Set cookies
    foreach ($cookies as $cookie_name ► $cookie_value)
    {
    setcookie($cookie_name, $cookie_value, $expires, $cookie_path, $my_domain);
    }

    }

    function setMyCookies() {
    setCloudFrontCookies();
    }

    #72817

    In reply to: WPDM – Amazon s3

    I can see my buckets, but clicking on them does nothing. I see the red “Loading…” and then nothing.

    Btw, I have mounted my S3 buckets inside my server at /mnt/s3/ using the aws s3fs fuse filesystem package.
    So, I can see, copy, delete, my files and directories just like any local file.

    For example, downloads are at:
    /mnt/s3/userdownloads/

    What I am hoping would get developed in this plugin would be Cloudfront together with S3, so that Cloudfront will serve my protected content.

    What I have working is that I copy private user-specific content to:

    /mnt/s3/userdownloads/private_content/username

    The url is then userdownloads.example.com/private_content/username/

    This content is protected by signed cookies.

    Here is the code that I have working that does all this.

    I hope it can be integrated with the WPDM package permissions.

    Defined constants file, change for your site, and set your own $cookie_path as desired:

    
    /etc/aws_secrets/site.secrets.php
    <?php
    define('AWS_CLOUDFRONT_ACCESS_KEY_ID','*************');
    define('AWS_CLOUDFRONT_KEY_PATH' , '/etc/aws_secrets/cloudfront_privk.pem');
    define('MY_DOMAIN' , '.example.com');
    define('AWS_CLOUDFRONT_USER_DOWNLOADS','***********.cloudfront.net');
    define('AWS_USER_ACCESS_KEY_ID','****************');
    define('AWS_USER_SECRET_ACCESS_KEY','********************************');
    define('AWS_REGION','us-west-2');
    ?>
    
    // Add to the end of functions.php in your WordPress theme
    add_action('init', 'setMyCookies');
    
    function setCloudFrontCookies(){
    
        /*
         * We're on app.example.com or www.example.com, files are on S3.
         * We need to send requests to files.example.com, because browsers will not
         * accept cookies for S3 or xxxxxxx.cloudfront.net sent from example.com
         *
         * Therefore, we will set cookies for .example.com,
         * so that they're sent to the CloudFront subdomain files.example.com.
         *
         * 
         * User request needs to go like this:
         *
         *
         * User visits *.example.com (our site)
         * After authenticating user, our site *.example.com sets cookies for
         *  .example.com and redirects to files.example.com
         * DNS sends request to cloudfront.  Cloudfront gets files from S3.
         *
         * Step: 1
         *
         * Set Route 53 (DNS) CNAME record for files.example.com that points to our
         * cloudfront distribution: xxxxxxx.cloudfront.net. 
         * Now requests sent to files.example.com from our site will go to cloudfront.
         *
         * Step: 2
         * In our cloudfront xxxxxxx.cloudfront.net add CNAME files.example.com
         * Now xxxxxxx.cloudfront.net will respond to requests sent to files.example.com
        */
       
        // Settings
        //
        // Location of all defined constants used below
        require_once ('/etc/aws_secrets/site.secrets.php');
        //
        // AWS SDK User
        // Create an IAM user with cloudfront all access for use by the SDK
        $user_access_key_id = AWS_USER_ACCESS_KEY_ID;
        $user_secret_access_key = AWS_USER_SECRET_ACCESS_KEY;
    
        // AWS Cloudfront Access Key ID
        // NOT a regular IAM user. 
        // In your root account look for "My Security Credentials".
        // Or, from here:
        // https://console.aws.amazon.com/iam/home#/security_credential
        // Look for Your Security Credentials,Cloudfront Key Pairs, Access Key ID
        $key_pair_id = AWS_CLOUDFRONT_ACCESS_KEY_ID;
        // The private key .pem file associated with this Access Key ID.
        $private_key = AWS_CLOUDFRONT_KEY_PATH;
       
        // Region is a subset of the availbiity zone
        // If availbility zone = us-west-2b, then region is us-west-2
        $region = AWS_REGION;
    
        // MY_DOMAIN = .example.com
        $my_domain = MY_DOMAIN;
       
        // http*:// permits both https and http.
        // You can add a restriction in your Distribution Behavior to redirect all http to https.
        // Then this code is portable across distributions.
        $cloudfront_base_url = 'http*://' . $my_domain . '/';
       
        // Path to cookie protected content.
        // Change * to your path after the base url http*://.example.com/
        //http*://.example.com/$cookie_path
        $cookie_path = '*';
       
        // Full URL for cookie protected content
        $allowed_resource = $cloudfront_base_url . $cookie_path;
    
        // Cloudfront requires all policies to expire
        // This is the policy level expires
        $policy_expires_after = (86400 * 7); // 1 week
    
        // Set your own $expires at the cookie level to zero to make it a session cookie.
        // Easier to debug a session cookie. 
        // And users do not need to be told to clear their cookies to get a new policy,
        // if you change the cookie policy.
        // Users will get the new policy on login.
        $expires = 0;
       
        // Initialize AWS SDK for PHP
        $site_path = get_home_path();
        $aws_path = 'vendor/autoload.php';
        $aws_package_path = $site_path . $aws_path;
        require_once $aws_package_path;
    
        $sdk_params =
        [
            'region' ► $region,
            'version' ► 'latest',
            'credentials' ► new \Aws\Credentials\Credentials
            (
                $user_access_key_id,
                $user_secret_access_key
            )
        ];
        $sdk = new \Aws\Sdk($sdk_params);       
        $cloudfront = $sdk->createCloudFront();
    
        // Setup CloudFront cookie #1: CloudFront-Key-Pair-Id
        $cookies = [ ];
        $cookies[ 'CloudFront-Key-Pair-Id' ] = $key_pair_id;
    
        // Setup CloudFront cookie #2: CloudFront-Policy
        $raw_policy =
        [
           'Statement' ►
           [
              [
                 'Resource' ► $allowed_resource,
                 'Condition' ►
                 [
                    'DateLessThan' ►
                    [
                        'AWS:EpochTime' ► (time() + $policy_expires_after)
                    ]
                 ]
              ]
           ]
        ];
       
        $policy = json_encode($raw_policy);
        $cookies[ 'CloudFront-Policy' ] = base64_encode($policy);
    
        // CloudFront cookie #3: CloudFront-Signature
        $url_signing_params =
        [
            'url' ► $allowed_resource,
            'policy' ► $policy,
            'key_pair_id' ► $key_pair_id,
            'private_key' ► $private_key
        ];
    
        $signed_url = $cloudfront->getSignedUrl($url_signing_params);
        // We just need the "Signature" query string part of the signed URL
        parse_str(parse_url($signed_url, PHP_URL_QUERY), $signed_url_arr);
        $signature = $signed_url_arr[ 'Signature' ];
        $cookies['CloudFront-Signature'] = $signature;
    
        // Set cookies
        foreach ($cookies as $cookie_name ► $cookie_value)
        {
            setcookie($cookie_name, $cookie_value, $expires, $cookie_path, $my_domain);
        }
    
    }
    
    function setMyCookies() {
        setCloudFrontCookies();
    }
    
Viewing 25 results - 2,601 through 2,625 (of 4,372 total)