Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

modify the point system

+2 votes
I want to implement a new point system where you gain one point for every word in the answer and lose one point for every word in the question. I feel like this would encourage longer answers. Is there any way I could go about implementing this?
asked Jan 17, 2011 in Q2A Core by edward
But often, questions need to be long to explain what they are asking...

Well anyway in theory this is possible, you'd need to set all the regular points to zero, except "ask" and "answer" set to 1. Then in the back end code there should be some functions where points are calculated, you'd need to modify it to multiply the point by the number of words in the answer. gidgreen (the developer) can probably answer this one better...
I suggest you try to educate users with 'how best to...' suggestions rather than load the points for/against.

It'll never be perfect, and it's better to have natural questions and answers rather than stuff structured for points advantage - besides, who really gives a **** about the points anyway?

1 Answer

+1 vote

It's an interesting question, but would require quite a fair amount of development to make it work. You could add new columns to qa_userpoints, and keep those columns updated whenever a question or answer was created, edited, hidden or deleted. All the relevant functions are in qa-app-post-create.php and qa-app-post-update.php. You would then need to make the appropriate modifications to the query in qa_db_points_update_ifuser(...) in qa-db-points.php.

answered Jan 18, 2011 by gidgreen