Back to vBulletin 4.x Add-ons

vBCredits Delux II - vBShout Addon..
Mod Version: 1.00, by wolfe

vB Version: 4.2.x Rating: (0 vote - 0 average) Installs: 5
Released: 10 Jan 2014 Last Update: 10 Jan 2014 Downloads: 21
Supported DB Changes Uses Plugins Translations  

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 Code:
        <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 Code:
    function post_save_each($doquery true$return null)
    {
        global 
$vbphrase
underneath add
PHP Code:
        ($hook vBulletinHook::fetch_hook('dbtech_vbshout_add_credit')) ? eval($hook) : false
then find: line 1612
PHP Code:
    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 Code:
($hook vBulletinHook::fetch_hook('dbtech_vbshout_delete_credit')) ? eval($hook) : false
save and upload.

then upload the attached file

any issues let me know.

Download

File Type: %1$s vBCredits - vBShout.xml (2.8 KB, 22 downloads)

Screenshots

Click image for larger version
Name:	screenshot_019.jpg
Views:	121
Size:	53.1 KB
ID:	147784  

Similar Mods

Add-On Releases [vBC] vBCredits 2.0.0 - v3Arcade 2.0.x Gold Addon vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024