vBCredits Delux II - vBShout Addon

Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
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:
PHP:
        <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
PHP:
    function post_save_each($doquery = true, $return = null)
    {
        global $vbphrase;
underneath add
PHP:
        ($hook = vBulletinHook::fetch_hook('dbtech_vbshout_add_credit')) ? eval($hook) : false;
then find: line 1612
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']
        );
underneath add

PHP:
($hook = vBulletinHook::fetch_hook('dbtech_vbshout_delete_credit')) ? eval($hook) : false;
save and upload.

then upload the attached file

any issues let me know.
vBCredits Delux II - vBShout Addon

Download tuoitreit.vn_vBCredits - vBShout.xml (2.8 KB)
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
973
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
916
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
3K
Sjêu nhân hazz
S
Back
Top