demarco

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
in reply to: Download Limits on one category #26340

demarco
Member

Hi,

Thank you for the info. We hope this would be able to make it into a future release, but for the time being we have hard-coded in a solution that seems to be working for us

Here is our quick / dirty solution for anyone trying to accomplish something similar, or for the author to use as a starting point for making this a feature:

Line 129:

        
        $user_dlc = (int)get_user_meta($current_user->ID,'wpdm_dd_user_dlc',true);
        if(has_term(9,'wpdmcategory',$p['ID'])) { 
            $user_dlc++; 
        }
        update_user_meta($current_user->ID,'wpdm_dd_user_dlc',$user_dlc);

We also changed the priority of some actions for more reliable checking of the taxonomy term:

add_action(“init”, “wpdm_common_actions”, 1);

and

add_action(‘wpdm_onstart_download’,’wpdm_dd_update_user_download’, 12);

Thank you

in reply to: Fatal Error on Activation #26300

demarco
Member

I changed our PHP version to 5.4 and it worked.

Thank you for the help!

Viewing 2 posts - 1 through 2 (of 2 total)