MyBB-Plugins Forums

Full Version: MyShoutbox 1.7
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
lol how did you do it? o.O
Edit:
oh in the php files of MySB, yeah that would work fine
(05-17-2009 07:32 AM)Pirata Nervo Wrote: [ -> ]That's because MyShoutbox is not meant to be run with the tabs plugin, I might release 1.2 tomorrow with a setting to choose if you want to use the no-edits features or not
Yes do that, please.
Or just do the same as snake did

Edit:
search for:
Code:
case 'index_top':
            if(!$templates->cache['index'])
                $templates->cache('index');
    
            $templates->cache['index'] = str_replace('{$tabmenu}',$mysb_shoutbox.'{$tabmenu}',$templates->cache['index']);
        break;
Replace with:
Code:
case 'index_top':
            if(!$templates->cache['index'])
                $templates->cache('index');
    
            $templates->cache['index'] = str_replace('{$tabmenu}',$mysb_shoutbox.'{$tabmenu}',$templates->cache['index']);
        break;

The above will work for the setting 'index_top'
Great work... I will update when I got time Wink
works perfectly with tabs plugin for me on TFS.
(upgraded some time ago.)
- Shadows.
lol Shadows your shoutbox is not on top of your forums. the affect is only when the sb is on the top Big Grin
Probably not at the top Tongue
oh ok xD yeah it's not at the top lol Tongue.
- Shadows.
(05-17-2009 08:30 PM)Pirata Nervo Wrote: [ -> ]Or just do the same as snake did

Edit:
search for:
Code:
case 'index_top':
            if(!$templates->cache['index'])
                $templates->cache('index');
    
            $templates->cache['index'] = [color=#FF0000]str_replace('{$tabmenu}',$mysb_shoutbox.'{$tabmenu}',$templates->cache['index']);[/color]
        break;
Replace with:
Code:
case 'index_top':
            if(!$templates->cache['index'])
                $templates->cache('index');
    
            $templates->cache['index'] = str_replace('{$tabmenu}',$mysb_shoutbox.'{$tabmenu}',$templates->cache['index']);
        break;

The above will work for the setting 'index_top'

the red one (to search for and replace) must be:
Code:
str_replace('{$forums}',$mysb_shoutbox.'{$forums}',$templates->cache['index']);
Tongue
you should also find: (line 1868)
Code:
            case 'index_top':
                if(!$templates->cache['index'])
                    $templates->cache('index');
        
                $templates->cache['index'] = str_replace('{$forums}',$error_msg.'{$forums}',$templates->cache['index']);
            break;
and replace with:
Code:
            case 'index_top':
                if(!$templates->cache['index'])
                    $templates->cache('index');
        
                $templates->cache['index'] = str_replace('{$tabmenu}',$error_msg.'{$tabmenu}',$templates->cache['index']);
            break;
for the banned user error message Wink
search and replace $tabmenu with $tabmenu will not work, lol
oops sorry, oh and the color tag doesn't work inside code tags lol
Reference URL's