Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
120 views
in Q2A Core by
edited by

We want to do a poll on our site: https://gateoverflow.in/ , in which we want our active users to take part. We thought of allowing those users to participate in the poll who have 'x' number of minimum points (for example, 500) and there are many ways to accumulate these points such as by asking a question, giving answers, by performing editing tasks. For users who are active in content viewing on the site, Is it possible to give some points to such users based on their login activity/ visits on the site? or if i can say like this can we have an option to give some points to users for visits every day?.

by
It is a bit confusing how you use the word "points". You first say you get points by asking questions (as the standard points system does), but then you speak about points for activity, which is something that doesn't exist.

I understand the activity issue you talk about. It is just not part of Q2A. You'll have to code that logic.

However, I don't understand if you would like that activity to increase the standard point system or if you just want to use some other custom point mechanism that gives X tokens per question view and, when those tokens get to 500, those users will be allowed to access the poll.
by
@pupi1985 thanks for your response. I have edited out the confusing part, the question that i wanted to put is not related to poll.
It is Simply " Can we have an option to give points for users who visits the site everyday every day?."                                                                                                                                                                                 
 A similar question like what i am asking was posted years ago but does not have any response: https://www.question2answer.org/qa/20211/how-to-add-point-for-user-logged-everyday

1 Answer

+2 votes
by

I've created this pull request: https://github.com/q2a/question2answer/pull/486. It allows plugins to interact with the points system directly. You can try to implement it on your own and see how it goes. This means, modifying the Q2A accordingly, and also implement the plugin logic to increment points.

A significantly less efficient alternative is to take a look at how the Points Recalculator plugin works. I'm sure that site has it installed. Similarly, to the previous approach, the plugin that wants to increment points will need to interface with the PR plugin to perform the point increment.

...