i just install the Karma in my production forum, every thing seems good, but after about 10 hours i find about 85% of members are not participate Karma.
i am using latest version and this is the cron file that i am use:
i changed the value 0 to be 1 and return back all members to Karma, but i think still there is a problem ethir with me or woth code.
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'karma_cron');
// ######################### REQUIRE BACK-END ############################
//require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
//exclude from the karma, users that are inactive, if such a thing has been set
if (!is_object($vbulletin->db))
{
exit;
}
if($vbulletin->options['karma_lastactivity'])
{
$vbulletin->db->query_write("UPDATE `" . TABLE_PREFIX . "user` SET `karma` = 0 WHERE((" . TIMENOW . "-lastactivity)/(24*3600)>" . $vbulletin->options['karma_lastactivity'] . ")");
}
?>