• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

vBCredits Delux II - vBShout Addon

Admin

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.
frin.jpg

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

Facebook Comments

New posts New threads New resources

Back
Top