wolfe
01-09-2014, 11:00 PM
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:
<hook>dbtech_vbshout_add_credit</hook>
<hook>dbtech_vbshout_delete_credit</hook>
Save and Upload
edit dbtech/vbshout/includes/class_dm_shout.php Find: line 1413
function post_save_each($doquery = true, $return = null)
{
global $vbphrase;
underneath add
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_add_cred it')) ? eval($hook) : false;
then find: line 1612
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']
);
underneath add
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_delete_c redit')) ? eval($hook) : false;
save and upload.
then upload the attached file
any issues let me know.
do the following
edit includes/hooks_dbtech_vbshout.xml ADD:
<hook>dbtech_vbshout_add_credit</hook>
<hook>dbtech_vbshout_delete_credit</hook>
Save and Upload
edit dbtech/vbshout/includes/class_dm_shout.php Find: line 1413
function post_save_each($doquery = true, $return = null)
{
global $vbphrase;
underneath add
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_add_cred it')) ? eval($hook) : false;
then find: line 1612
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']
);
underneath add
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_delete_c redit')) ? eval($hook) : false;
save and upload.
then upload the attached file
any issues let me know.