ZiNgA BuRgA
Fag
Posts: 3,357
Joined: Jan 2008
|
Limit Attachments Downloads Per Day Review
This is a plugin " review" requested by hamed.ramzi.
Firstly, I don't see any major issues with this plugin, which is good. My main criticisms are thus rather minor. But anyway, here goes:
- I have a feeling that duplicating this hook was a mistake:
(I'm guessing the second call is redundant)
- Ideally, use $db->write_query but try to avoid mixing it with $db->query:
-
Firstly, I'd do the thumbnail check before the query. Secondly, I'd recommend a key on uid and dateline (during CREATE TABLE).
-
Firstly, it seems unnecessary to load the language every time a formcontainer row is output (then again, it's the ACP, so performance isn't a big issue, plus it's a small file). Secondly, I don't quite feel comfortable with the check, since, potentially, places other than the usergroup editor may use $lang->misc. The biggest problem, however, is that it removes all other content in the Miscellaneous section of the edit usergroup page. Content should be appended with ".=", not assigned with "=" operator.
- It's unclear what happens if a user is in more than one usergroup - which limit applies? Perhaps consider adding to the 'attachdllimit' to the $groupzerogreater array (see bottom of inc/class_core.php).
My Blog
|
|
07-17-2011 11:24 AM |
|
hamed.ramzi
Junior Member
Posts: 12
Joined: May 2011
|
RE: Limit Attachments Downloads Per Day Review
i live zynga
very very thanx
|
|
09-15-2011 03:26 PM |
|
oceanfear
Junior Member
Posts: 1
Joined: Mar 2013
|
RE: Limit Attachments Downloads Per Day Review
I need this plugin but a working one any help?
|
|
03-03-2013 12:00 PM |
|