Kane Leins

Forum Replies Created

Viewing 4 posts - 26 through 29 (of 29 total)
Jan 5, 2018 at 4:07 pm
#67547
Participant
Kane Leins
OP

Used the .htaccess method, nothing changed. Then the plug in, nothing changed. Please advise. Let me know if you need an admin acct and I will set one up for you.

Jan 5, 2018 at 3:53 pm
#67544
Participant
Kane Leins
OP

We’ve never had any issue with our SSL and mixed content warnings, I believe it is coming from this line ($.get(‘<?php echo ‘index.php?_nonce=’.wp_create_nonce(‘__wpdm_view_count’).’&id=’.get_the_ID(); ?>’);) in download-manager.php

/**
     * @usage insert code in wp footer
     */
    function wpFooter(){
        if(is_singular('wpdmpro')){
            ?>
            <script>
                jQuery(function($){
                    $.get('<?php echo 'index.php?_nonce='.wp_create_nonce('__wpdm_view_count').'&id='.get_the_ID(); ?>');
                    $('a.wpdm-lightbox').nivoLightbox();
                });
            </script>
            <?php
        }
    }

Please advise

Jan 5, 2018 at 2:49 pm
#67538
Participant
Kane Leins
OP

Still not tracking downloads and several http / https errors. Please see my other post -> https://www.wpdownloadmanager.com/support/topic/mixed-content-warning/

Jan 3, 2018 at 11:47 pm
#67499
Participant
Kane Leins
OP

If anyone else has issue with inconsistent behavior from the documentation, here was my solution.
1. Create an ACF or other custom field and paste in the id number in the post page -> $packageID = get_field(‘user_submitted_app_download_id’);
2. Get the data for the item (download package) like this -> $package = wpdm_get_package($packageID); you can run a print_r on the $package to output the object and find what you want in the array
3. Then you can access whatever you want like this -> $page_link = $package[‘page_url’]; and output like <?php echo $page_link; ?>

Im sure I totally missed the boat, and there may be an easier built in way, but this worked for me.

Viewing 4 posts - 26 through 29 (of 29 total)