vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBCredits Delux II - vBShout Addon.. (https://vborg.vbsupport.ru/showthread.php?t=306869)

wolfe 01-09-2014 11:00 PM

vBCredits Delux II - vBShout Addon..
 
1 Attachment(s)
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.

wolfe 01-10-2014 05:05 PM

If anyone wants to improve this then feel free to as this is just a basic addon :)


All times are GMT. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01161 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete