Quote:
Originally Posted by TsirhCitna
I'm trying to limit members with 0 posts to only be able to download 1 file until they have posts.
I'm using the limitaccess_byposts but no matter what I put in limitaccess_byposts_bytesavail it always says:
Sorry, you do not have sufficient download allowances available at the moment
Allowances: 1 files/0 used, 1 bytes/0 bytes used
Access is limited until you have posted 1 times
Current post count: 0
|
My apologies. There is a bug in the extra.
Go to vb/admincp/products and plugins/plugin manager
Edit the plugin Links and Downloads Manager - Limit allowances of users with low post counts attached to hook ldm_prcheck_user_allowances
Change the line
Code:
$allow['bytesavail'] = ldm_decode_bytes($links_defaults['limitaccess_byposts_bytesenable']);
to
Code:
$allow['bytesavail'] = ldm_decode_bytes($links_defaults['limitaccess_byposts_bytesavail']);