In our project we want to allow users to do a
specific amount of things according to their level of suscription in CBSubs. For instance:
- "user junior" can write 3 com_content articles,
- "user professional" can write 5 articles
- and "user premium" can write 10
We want to do that not only with com_comtent but with other custom joomla extensions that we have created.
I was wondering if you have any idea about how to do that.
My initial idea is:
- - to create a CB_FIELD called max_articles.
- - This field is non editable by user
- - With autoaction I change this field everytime user changes it's type of suscription. For instance, if the user it becomes a CBSubs "user professional" autoaction will set this value to 5. If user cancel hes/shes subscription the CB_FIELD value turns to 0 (and unpublish previous articles).
- - I do a joomla plugin that before the user can add a "article" checks the CB_FIELD "max articles" and if the user have done 5 it will redirect to a page that says that he/she needs to upgrade hes/shes membership.
What do you think? do you have a better idea?
Thanks very much.
By the way forum readers: autoactions rocks! if you haven't tested try it:
autoactions