Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
499 views
in Q2A Core by

In /qa-include/pages/user-profile.php you see that bonus points can only be assigned by admins. q2a 1.8.0

There is no option under /admin/permissions to change this, yet.

The hack you need so that moderators can assign bonus points: 

1. Open /qa-include/pages/user-profile.php
2. Find line: 
if ($loginlevel >= QA_USER_LEVEL_ADMIN && qa_clicked('dosetbonus')) {
3. Change it to: 
if ($loginlevel >= QA_USER_LEVEL_MODERATOR && qa_clicked('dosetbonus')) {
4. Find line: 
if ($loginlevel >= QA_USER_LEVEL_ADMIN) {
5. Change it to:
if ($loginlevel >= QA_USER_LEVEL_MODERATOR) {
6. Upload file to your server.

Now it works. 

It would be great if the core could integrate such a permission.

Note: If you have plugins that change the user profile, make sure to reflect those changes there too.

by
I liked this idea! why only moderator can give point? anyone above expert should be able to give extra point to users. admin should be able to decide who can give extra point, have option to set in control panel.

I feel you should submit patch for this, let Scott decide if he want to take or not.

Thanks!

Please log in or register to answer this question.

...