Kane Leins

Forum Replies Created

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

Kane Leins
Participant

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.


Kane Leins
Participant

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

in reply to: Using data from the object in HTML #67538

Kane Leins
Participant

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

in reply to: Using data from the object in HTML #67499

Kane Leins
Participant

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)