Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Downloads (http://www.bvlist.com/forumdisplay.php?f=16)
-   -   SMF v 2.0.9 shoutbox (http://www.bvlist.com/showthread.php?t=10123)

WhyMe 23rd November 2014 00:36

SMF v 2.0.9 shoutbox
 
1 Attachment(s)
sql made my self
File Edits
./index.php
Find:
PHP Code:

require_once($sourcedir '/Security.php'); 

Add After:
PHP Code:

require_once($sourcedir '/Subs-Shoutbox.php'); 

Find:
PHP Code:

call_user_func(smf_main()); 

Replace With:
PHP Code:

call_user_func(Shoutbox_Load(smf_main())); 

Find:
PHP Code:

'viewquery''viewsmfile' 

Replace With:
PHP Code:

'viewquery''viewsmfile''shoutbox' 

Find:
PHP Code:

'sendtopic' => array('SendTopic.php''EmailUser'), 

Add After:
PHP Code:

'shoutbox' => array('Shoutbox.php''Shoutbox'), 

./Sources/Admin.php

Find:
PHP Code:

'featuresettings' => array( 

Add Before:
PHP Code:

'shoutbox' => array(
                    
'label' => $txt['sba_link'],
                    
'file' => 'ManageShoutbox.php',
                    
'function' => 'ManageShoutbox',
                    
'icon' => 'support.gif',
                ), 

/Sources/ManagePermissions.php
Find:
PHP Code:

'karma_edit' => array(false'general''moderate_general'), 

Add After:
PHP Code:

            'karma_edit' => array(false'general''moderate_general'),
            
'shoutbox_view' => array(false'shoutbox''shoutbox'),
            
'shoutbox_post' => array(false'shoutbox''shoutbox'),
            
'shoutbox_edit' => array(false'shoutbox_panel''shoutbox_panel'),
            
'shoutbox_delete' => array(false'shoutbox_panel''shoutbox_panel'),
            
'shoutbox_prune' => array(false'shoutbox_panel''shoutbox_panel'),
            
'shoutbox_ban' => array(false'shoutbox_panel''shoutbox_panel'), 

Find:
PHP Code:

'general'

Add After:
PHP Code:

                'shoutbox',
                
'shoutbox_panel'

Find:
PHP Code:

'view_basic_info'

Add After:
PHP Code:

                'shoutbox',
                
'shoutbox_panel'

Find:
PHP Code:

$context['non_guest_permissions'] = array( 

Add After:
PHP Code:

        'shoutbox_post',
        
'shoutbox_edit',
        
'shoutbox_delete',
        
'shoutbox_prune',
        
'shoutbox_ban'

./Sources/Load.php
Find:
PHP Code:

$context['browser']['is_ie'] = $context['browser']['is_ie4'] || $context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] || $context['browser']['is_ie6'] || $context['browser']['is_ie7'] || $context['browser']['is_ie8']; 

Replace With:
PHP Code:

$context['browser']['is_ie'] = !$context['browser']['is_opera'] && !$context['browser']['is_gecko'] && !$context['browser']['is_web_tv'] && preg_match('~MSIE \d~'$_SERVER['HTTP_USER_AGENT']) == 1

Find:
PHP Code:

$context['browser']['ie_standards_fix'] = !$context['browser']['is_ie8']; 

Replace With:
PHP Code:

$context['browser']['ie_standards_fix'] = $context['browser']['is_ie4'] || $context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] || $context['browser']['is_ie6'] || $context['browser']['is_ie7']; 

./Themes/default/index.template.php
Find:
PHP Code:

}

function 
template_body_below()


Add Before:
PHP Code:

if (function_exists('template_shoutbox')) template_shoutbox('main'); 

./Themes/default/languages/Modifications.english.php
Find (at the end of the file):

PHP Code:

$txt['sba_title'] = 'Shoutbox';
$txt['sba_link'] = 'Shoutbox';

$txt['permissiongroup_shoutbox'] = 'Shoutbox';
$txt['permissiongroup_simple_shoutbox'] = 'Shoutbox';
$txt['permissionname_shoutbox_view'] = 'View Shoutbox';
$txt['permissionname_shoutbox_post'] = 'Post messages in Shoutbox';
$txt['permissiongroup_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissiongroup_simple_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissionname_shoutbox_edit'] = 'Edit messages in Shoutbox';
$txt['permissionname_shoutbox_delete'] = 'Delete messages in Shoutbox';
$txt['permissionname_shoutbox_prune'] = 'Empty Shoutbox';
$txt['permissionname_shoutbox_ban'] = 'Ban users in Shoutbox'

enjoy


All times are GMT +2. The time now is 07:25.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.