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

[NEW PLUGIN] Bonus Plus

+6 votes
asked Aug 6 in Plugins by esqeudero
edited Aug 6 by esqeudero

Dear all,

I am referring to this post: http://www.question2answer.org/qa/65788/bonus-points-needs-some-improvements

I have coded on q2a 1.7.5 and it seems everything goes well. You also test it and share your comments. Suggestions are welcome.



Q2A version: 1.8 customized

2 Answers

0 votes
answered Aug 7 by Piotr Baranowski

This is cool plugin - but how user will receive "note" about bonusing? Can You write more about functionality?
BTW. Well done, great - new plugins are extremely needed to set q2a to "live" state again... :)
commented Aug 7 by esqeudero
This plugin has written from admin perspective.

You can add a custom widget or page based on this plugin using plugin's functiıons such as

function q2a_bonusplus_reasonname($reasonid)

function q2a_bonusplus_receiver_history($userid)

function q2a_bonusplus_bonuser_history($userid)

These function are already described in plugins plugin.php file.
0 votes
answered Aug 8 by eserc
It is a cool plugin, actually.

How can I add page to this plugin to show bonus point history of a user ?
commented Aug 9 by esqeudero
use this function q2a_bonusplus_receiver_history($userid).
It retrieves an array of {bonuserid, receiverid, amount, reasonid, bonusnote, bonustime}.

And using this function q2a_bonusplus_reasonname($reasonid), you can convert reasonid to reasonname.