Open up index.php Find & Delete: //-------------------------------- // D-Shoutbox Global Latest Shouts //-------------------------------- $DB->query("SELECT m.id AS mid, m.avatar, m.dshouts, s.* FROM ibf_shoutbox s, ibf_members m WHERE s.name=m.name ORDER BY id DESC LIMIT ".$ibforums->vars['sb_gsnum']); while($r= $DB->fetch_row()) { $r['message'] = stripslashes($r[message]); $r['message'] = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{35})/i"," \\1",$r['message']); $r['message'] = str_replace("", "", $r['message']); if ($ibforums->vars['sb_showcolors'] == 1) { $r['message'] = "".$r['message'].""; } if (($ibforums->member['id'] == "0" || $ibforums->member['id'] == "" || $ibforums->member['name'] == "Guest" || $ibforums->member['name'] == "") && ($ibforums->vars['sb_guestviewsb'] != "1")) { $ibforums->shoutbox = stripslashes($ibforums->vars['sb_error_msg_1']); } else { $dlshouts .= "{$r['name']} -- {$r['message']}"; $ibforums->shoutbox = $dlshouts; } } $colors = explode( "|", $ibforums->vars['sb_shoutcolors'] ); foreach ($colors as $color) { $ibforums->sbdropdcolors .= "sbdropdcolors .= $color == $ibforums->member['sb_defaultcolor'] ? "selected>$color\n" : ">$color\n"; $ibforums->sbradiocolors .= "sbradiocolors .= $color == $ibforums->member['sb_defaultcolor'] ? "checked>" : ">"; } if ($ibforums->member['sb_shoutboxtype'] == 2) { $ibforums->dshoutbox_glink = " vars['board_url']}/index.php?act=Shoutbox','DShoutbox','width=377,height=450,resizable=no,location=no,menubar=no,status=no,left=0,top=0,screenX=0,screenY=0,scrollbars=yes'); return false\">D-Shoutbox"; } else if ($ibforums->member['sb_shoutboxtype'] != 2) { $ibforums->dshoutbox_glink = " D-Shoutbox"; } Find: //-------------------------------- // Expire subscription? //-------------------------------- Add Above: //-------------------------------- // D-Shoutbox //-------------------------------- require ROOT_PATH."sources/Shoutbox/sbfuncs.php"; $sbfunc = new SBFUNC; $sb = $DB->query("SELECT * FROM ibf_shoutbox_settings"); $shoutbox = $DB->fetch_row($sb); $ibforums->sbcolors = $sbfunc->get_sbcolors(); $ibforums->dshoutbox_glink = $sbfunc->get_glink(); $ibforums->globalshouts = $sbfunc->global_shouts(); Find: 'Shoutbox' => 'Shoutbox', 'sbextras' => 'sbextras', Replace With: 'Shoutbox' => 'Shoutbox/Shoutbox', 'sbextras' => 'Shoutbox/Extras',
Find: //-------------------------------- // D-Global Bar Manager //-------------------------------- $glinks = " "; $DB->query("SELECT * FROM ibf_globalbar ORDER BY display DESC LIMIT 1"); $gln = $DB->fetch_row(); $glnid = $gln['display']; $DB->query("SELECT * FROM ibf_globalbar ORDER BY display ASC"); while ( $gb = $DB->fetch_row() ) { if ($gb['url'] == 'index.php?act=Shoutbox' && $ibforums->member['sb_shoutboxtype'] == 2) { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href='#' onclick=\"window.open('{$gb['url']}','DShoutbox','width=377,height=450,resizable=no,location=no,menubar=no,status=no,left=0,top=0,screenX=0,screenY=0,scrollbars=yes'); return false\">{$gb['name']}</a>"; if ($glnid != $gb['display']) { $glinks .= " · "; } } else if ($gb['target'] == 'new') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href='{$gb['url']}' target='_blank'>{$gb['name']}</a>"; if ($glnid != $gb['display']) { $glinks .= " · "; } } else if ($gb['target'] == 'popup') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href=# onclick=\"window.open('{$gb['url']}','','width={$gb['popupw']},height={$gb['popuph']},scrollbars=yes,toolbar=yes,menubar=no,history=yes,resizable=no,left=0,top=0'); return false\">{$gb['name']}</a>"; if ($glnid != $gb['display']) { $glinks .= " · "; } } else if ($gb['target'] == 'same') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href='{$gb['url']}'>{$gb['name']}</a>"; if ($glnid != $gb['display']) { $glinks .= " · "; } } } $ibforums->globalbar .= $glinks; Replace With: //-------------------------------- // D-Global Bar Manager //-------------------------------- $glinks = " "; $DB->query("SELECT * FROM ibf_globalbar ORDER BY id DESC LIMIT 1"); $gln = $DB->fetch_row(); $glnid = $gln['id']; $DB->query("SELECT * FROM ibf_globalbar ORDER BY display ASC"); while ( $gb = $DB->fetch_row() ) { if ($gb['target'] == 'new') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href='{$gb['url']}' target='_blank'>{$gb['name']}</a>"; if ($glnid != $gb['id']) { $glinks .= " · "; } } else if ($gb['target'] == 'popup') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href=# onclick=\"window.open('{$gb['url']}','','width={$gb['popupw']},height={$gb['popuph']},scrollbars=yes,toolbar=yes,menubar=no,history=yes,resizable=no,left=0,top=0'); return false\">{$gb['name']}</a>"; if ($glnid != $gb['id']) { $glinks .= " · "; } } else if ($gb['target'] == 'same') { if ($gb['image']) { $glinks .= "<img src='{$ibforums->vars['img_url']}/{$gb[image]}' border='0'> "; } $glinks .= "<a href='{$gb['url']}'>{$gb['name']}</a>"; if ($glnid != $gb['id']) { $glinks .= " · "; } } } $ibforums->globalbar .= $glinks;
Save & Close index.php