cheers everybody !
we are running a medical website, and we would like to grant user points according to participation in a specific taxonomy. i,e: any user who participates in that specific taxonomy with any type of content (page, image, comment) would be appointed points. not according to the content type.
Is that possible. i would be the happiest man in the world if any body could help here :)
Comments
Comment #1
kbahey commentedThis is doable, but requires a new module.
Basically, the module would check the terms that the node belongs to, and award points based on that.
For someone who is a developer, the API described in the README.txt file should be easy to follow. Also look at the Userpoints Contributed modules for examples on how this is used.
Comment #2
q8doc commentedthank you khalid. Does this module really exist? or can you give me a nice mod that i can use to get this done- to make this marvellous module even better!
you see, I am still a newbie !
Comment #3
kbahey commentedDoes not exist as far as I know.
But look in the code from 5.x-3.x-dev of User Points Contributed modules project, and you will see lots of examples that you can use as starting points.
You can call taxonomy_node_get_terms function on the node, and find out which term(s) it belongs to, and then award points based on those terms.
When your module is complete, you can attach it to this issue, and I will include it in this project.
Comment #4
dries arnoldsI would very much like this as a submodule of User Points Contrib. It seems like it could be a common enough request to warrant a submodule.
I'm not a module developer myself, but it would definately be a logical function I think. You could for instance award users who post a topic of comment in a specific subforum.
Comment #5
berdirSorry for pinging the participants.
Now that Drupal 7 is out, there is no support for Drupal 5 and the
corresponding modules anymore. Therefore, I'm closing all old issues
which are still open.
I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature
is still needed or the bug still exists and open a new issue in that
case.