i am trying to give each node type submission a category like when someone submits a blog it will appear under the blog under the blog term, news for news, etc... and i can't figure out how to do it... i add the terms to the vocab, then i am only able to put all terms under one category...
so this may seem a little(or alot) amateurish from me, but how can i do it?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | userpoints_basic_categories.patch | 9.5 KB | Anonymous (not verified) |
| #4 | userpoints_basic_categories.patch | 4.61 KB | Anonymous (not verified) |
Comments
Comment #1
jredding commentedSorry but this is not how the categories function. Categories are used by custom modules to place points within individual categories the userpoints_basic module only places points within the userpoints_basic category.
If you would like to give "blog" points for blog posts and "news" points for news points then you would simply need to modify userpoints_basic to allow each different type of node to have a different category. This would be a simple addition to the administrative page as well as a change in the hook_nodeapi when the points are granted.
Currently this is not on the roadmap but a patch is always welcome. Take a stab at it, I think you'll find that its not as hard as you think.
Comment #2
pnlnl commentedI would if i could but i can't (for the moment), thanks anyway for showin me the way, i'll have a look over at it as soon as i can..
Comment #3
jredding commentedI'm going to close the support request then.
When you get time to start playing around post back with your findings and other questions. Good Luck!
Comment #4
Anonymous (not verified) commentedI needed this for a project - managed to get it working for the 'Points for basic events' section in the settings.
As well as setting amount of points given for content creation per type, you can now select which term/category you want those points to be allocated to.
It's not currently implemented for comments. I'll post again if I make any more improvements, meanwhile, here's a patch for the userpoints_basic.module which needs reviewing if someone could thx - my first submitted patch so be gentle ;)
Comment #5
Anonymous (not verified) commentedOK here's a patch with it enabled for comments (tested when adding comment) and comment moderation (untested but code is there to send the category id through when moderating so should work).
Comment #6
kbahey commentedI am not sure if this is generic enough for inclusion. It forces the use of categories in a way. It also changes lots of places in the code, making maintenance harder. If it is optional, and more modular, then maybe.
Comment #7
berdirSorry for spamming the participants in this issue. Due to the release of Drupal 7 and the lack of time from the maintainers, I'm closing all remaining 5.x issues for Userpoints.
Feel free to re-open this issue or create a new one for 6.x or even better 7.x if this bug is still open or feature is missing for these versions.