2011-07-06, 09:05 PM
hello; is there any plugin to limit user attachment download?
for example user group 1 can download only 3 file in day
I edit this plugin but I have problem in line 60 can anyone help me?
After activation and When you want to download files :
SQL Error:
1054 - Unknown column 'dateline' in 'where clause'
Query:
SELECT COUNT(*) AS attachments_count FROM mybb_attachments WHERE uid='9' AND dateline >='1309936079'
----------------
line 60:
for example user group 1 can download only 3 file in day
I edit this plugin but I have problem in line 60 can anyone help me?
After activation and When you want to download files :
SQL Error:
1054 - Unknown column 'dateline' in 'where clause'
Query:
SELECT COUNT(*) AS attachments_count FROM mybb_attachments WHERE uid='9' AND dateline >='1309936079'
----------------
line 60:
$query = $db->simple_select("attachments", "COUNT(*) AS attachments_count", "uid='{$mybb->user['uid']}' AND dateline >='".(TIME_NOW - (60*60*24))."'");