Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Downloads
Reply
  #1  
Old 23rd November 2014, 00:36
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Thumbs up SMF v 2.0.9 shoutbox
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
Attached Files
File Type: rar shout.rar (35.3 KB, 46 views)

Last edited by WhyMe; 23rd November 2014 at 00:37. Reason: reason
Reply With Quote
The Following User Says Thank You to WhyMe For This Useful Post:
Protheush (7th December 2014)
Reply

Tags
shoutbox , smf

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 16:48. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.