Hi a little addon for you to use with vBCredits Delux II for earning / loosing points for Shouts and Deleted Shouts.
do the following
edit includes/hooks_dbtech_vbshout.xml ADD:
Save and Upload
edit dbtech/vbshout/includes/class_dm_shout.php Find: line 1413
underneath add
then find: line 1612
underneath add
save and upload.
then upload the attached file
any issues let me know.
Download tuoitreit.vn_vBCredits - vBShout.xml (2.8 KB)
do the following
edit includes/hooks_dbtech_vbshout.xml ADD:
PHP:
<hook>dbtech_vbshout_add_credit</hook>
<hook>dbtech_vbshout_delete_credit</hook>
edit dbtech/vbshout/includes/class_dm_shout.php Find: line 1413
PHP:
function post_save_each($doquery = true, $return = null)
{
global $vbphrase;
PHP:
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_add_credit')) ? eval($hook) : false;
PHP:
function post_delete($doquery = true)
{
// Decrement shout counters
$this->registry->db->query_write("
UPDATE " . TABLE_PREFIX . "user
SET dbtech_vbshout_shouts = dbtech_vbshout_shouts - 1
WHERE userid = " . $this->existing['userid']
);
PHP:
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_delete_credit')) ? eval($hook) : false;
then upload the attached file
any issues let me know.
Download tuoitreit.vn_vBCredits - vBShout.xml (2.8 KB)