Hi lazyboy,

Can you please consider adding quota by taxonomy term. That would be awesome for sites with forums.

Thanks,
introfini

Comments

lazyboy’s picture

Assigned: Unassigned » lazyboy

introfini

Would that mean that the quota module must regulate how many taxonomy terms a user can create per hour/day/month etc ? I just need to check whether I can hook into the taxonomy hooks, otherwise it will be nigh impossible. I'll come back to you on this one.

trevorleenc’s picture

@introfini - could this module suit your purposes? I use it on a classified ads site and it works GREAT!

http://drupal.org/project/taxonomy_limit

lazyboy’s picture

Hi introfini

Here is what I have found:

There is a hook called hook_taxonomy (http://api.drupal.org/api/function/hook_taxonomy/6) which provides me with enough info to create quota's based on taxonomy. That's the good news. The bad news is that when taxonomy is created by a user, Drupal doesn't store the uid of the user who created that term. This means that it is impossible for me to count how many terms were created in the last minute/hour/day/month etc for a specific uid, and therefor I cannot apply a quota :( Perhaps a "feature" request to the Drupal devs might help things along, but if they do implement uid against term, that'll only be available in version 7 earliest...

So in summary, i cannot create quota's for taxonomy :(

Regards
lazyboy

introfini’s picture

Hi lazyboy,

I’m sorry but I didn’t make myself clear. What I was talking about is limiting the number of posts inside the forum vocabulary.

Example:
I have 2 forums, forum_A and forum_B.
I want role_X to be allowed to post 3 posts by day in the forum_A but only 1 post in forum_B.

Thanks very much for taking the time to look at this and sorry for not being clear enough.

Regards,
introfini

P.S.: I will try to look at this myself and post if I accomplish something.

lazyboy’s picture

introfini

Hmmm ok. So would that then mean, that you want your taxonomy terms seen as "content types" ? I say that, because then the QBR can limit by role by taxonomy term. In that case, you would create quota like: RoleX 3 taxonomytermY per day Something like that ? (by taxonomytermY I don't mean that the user can create 3 taxonomy terms (see earlier post), I just mean that the user can create 3 posts containing that taxonomy term per day, and then it stops).

Regards
lazyboy

introfini’s picture

Yes, I think that would work.

Regards,
introfini

P.S.: The last features added are great!