HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Awarding points for completing polls
I'm playing with Yaga and I like it very much. We're using the poll plug in and we want to both track who has or hasn't filled in the poll as well as award those who completed a poll.
I think Yaga could possibly do some of that, not sure how complicated it would be...
0
Comments
Yaga uses points, but they are actually a (by default unused) core feature.
So you can just call:
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thanks @Bleistivt! So that means that I have to go to the Polls plugin and add that line in the appropriate location and it would all work with Yaga showing points gained, I'll be able to set it in the rules for awards, etc.?
Yes, the hard part is finding the location where to add it.
I'd start searching here:
https://github.com/hgtonight/Plugin-DiscussionPolls/blob/master/class.discussionpolls.plugin.php#L88
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
More thanks to @Bleistivt! You have pointed me in the right direction and I am going to dive in and find the right place (I will first try it after line 107 -that's where I think it should go and try to figure it out on my own if I get errors).
As a general practice, you referred to Github rather than the source in the addon section of this forum - is it better to use Github or would it be just fine to use the source downloaded to my site?
I would highly suggest using the static method
Yaga::GivePoints
for a tighter integration if/when the system gets expanded. It currently uses the exact same prototype as the user model.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.