Posted by michtoen on February 4, 2009 at 4:10pm
Jump to:
| Project: | Quota by role |
| Version: | 6.x-7.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
If a content type is set to x forever, the user always see "you can't create..." in its profile.
Its only a cosmetical thing, the quota itself works.
Comments
#1
I fixed this (and added information about total quota left) by going into quota_by_role.module and changing the line after
if ($per == t('forever'))to (all one line)
$output .= '<li>' . t('@content_type: You are allowed @limit posts and have @left posts left.', array('@content_type' => $r->content_type, '@left' => $r->limit_to - $total_count, '@per' => $per, '@limit' => $r->limit_to)) . '</li>';Sorry, don't know how to write patches.
#2
BS"D
Thanks for this! Just implemented it and it works perfectly so that my users see correct quota.
#3
has dev been patched?