User Award System Infusion for PHP-Fusion v7 |
What it does: This is a complete Awards infusion to add/delete awards, add/delete awards given to users, and let users show their awards on their profile and forum posts. |
Installation:
Core File Modification:
|
CONFIGURATION:
function grabaward($awards_id){ echo "</span><br /><br />\n"; echo "</span>\n"; | |
AUTOMATIC AWARDS:
//Add Award Function
function add_award($user_id, $admin_id, $awards_id, $award_time){
//$admin_id for this should be 1, unless you create a user called "Automation" or such, and use that ID. So you know any ID that was automatic, exc.
//Awards Time, like any time should just be time() function.
$resultawards = dbquery("INSERT INTO ".DB_PREFIX."award_system (`increment_id`, `user_id`, `admin_id`, `awards_id`, `award_time`) VALUES (NULL, '".$user_id."', '".$awards_id."', '".$admin_id."', '".$award_time."')");
} |
|
original readme design by pmm | |
Web: www.php-fusion.co.uk or www.ugleh.com | Version:2.0 |