Hello Everyone,
After looking at the Karma component and plug-in i must say i was very impressed and thought what a great component but it needed a few little extra pieces, so i spoke to the developer about a custom modification to the suite. Bear in mind this is suited to my site so alot of the features are not all round sadly, but for those who want a system that will automatically generate points to users for doing certian tasks this may be helpful for you.
The component uses a mambot to check which component is being called and for what task, and based on that task it then generates x number of points (set through component configeration) to the user.
At the moment, points are award able for Registration (Only through CB), Updating your profile (CB), submitting content, submitting a web-link, and submitting a forum post through the latest fireboard forum.
There are also custom fields in the config and some code that allows you to add or remove x number of points, this is more for growth but if you wanted to use it you would have to insert it directly into the component itself, like a hack i suppose.
The system also generates logs, so you can click on a member and see how many points were added for what task, and there is also a module that shows the logged in users current monthly and total points and a log history of what points were awarded for in the module, where the number of log entries is settable in the module.
I hope this helps some people, because the fields are the same the top karma yearly and monthly modules should still work, but you have to download them, i havent included them in the zip file.
The file can be downloaded from
www.reviewyou.com.au/Karma2_UnzipFirst.zip
If anyone likes it and finds it useful, consider a paypal donation to cover costs, but hope it helps.
To manually add/remove points, you can use the CLASS_karma class and the functions addPoints() and remPoints().
Parameters are:
addPoints($userid, $points, $description) remPoints($userid, $points, $description)
eg.
require_once( $mosConfig_absolute_path .
'/components/com_karma/karma.class.php' ); CLASS_karma::addPoints($my->id, 2, "Description goes here");
To get a point equivalent from a custom configuration point, you can use the getConfig() function.
Parementers are:
getConfig($name)
eg.
$points = CLASS_karma::getConfig("custom1")