Open up sources/Boards.php
Find & Delete: //*********************************************/ // Show Current Users Viewing Shoutbox //*********************************************/ if ($ibforums->vars['sb_showviewingsb'] == 1) { $t_time = time() - 900; $DB->query("SELECT g.prefix,g.suffix,s.member_name, s.member_id FROM ibf_sessions s, ibf_groups g WHERE location LIKE '%Shoutbox%' AND g.g_id=s.member_group AND s.login_type <> 1 AND s.running_time>'$t_time'"); $guests = 0; $sbmembers = 0; $cached = array(); while ( $result = $DB->fetch_row() ) { if ($result['member_id'] == 0) { $guests++; } else { if (empty( $cached[ $result['member_id'] ] ) ) { $cached[ $result['member_id'] ] = 1; $activesb .= "<a href='{$ibforums->vars['board_url']}/index.php?&act=Profile&MID={$result['member_id']}'>{$result['prefix']}{$result['member_name']}{$result['suffix']}</a> "; $sbmembers++; } } } if ($sbmembers == 0) { $activesb = "None"; } $stats_html .= $this->html->ActiveShoutboxUsers($activesb, $sbmembers); }
Find: $link = $ibforums->base_url."showuser=".$stats['LAST_MEM_ID']; $DB->query("SELECT * FROM ibf_shoutbox"); $total_shouts = $DB->get_num_rows(); $ibforums->lang['total_word_string'] = str_replace( "<#shouts#>", "$total_shouts" , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#posts#>" , "$total_posts" , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#reg#>" , $stats['MEM_COUNT'] , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#mem#>" , $stats['LAST_MEM_NAME'] , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#link#>" , $link , $ibforums->lang['total_word_string'] ); $stats_html .= $this->html->ShowStats($ibforums->lang['total_word_string']); Replace With: $link = $ibforums->base_url."showuser=".$stats['LAST_MEM_ID']; $ibforums->lang['total_word_string'] = str_replace( "<#posts#>" , "$total_posts" , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#reg#>" , $stats['MEM_COUNT'] , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#mem#>" , $stats['LAST_MEM_NAME'] , $ibforums->lang['total_word_string'] ); $ibforums->lang['total_word_string'] = str_replace( "<#link#>" , $link , $ibforums->lang['total_word_string'] ); $stats_html .= $this->html->ShowStats($ibforums->lang['total_word_string']); Find & Delete: if ($ibforums->vars['sb_showlastestsb'] == 1) { $DB->query("SELECT g.prefix, g.suffix, m.id AS mid, s.* FROM ibf_shoutbox s, ibf_members m, ibf_groups g WHERE s.name=m.name AND m.mgroup=g.g_id ORDER BY id DESC LIMIT 1"); $r = $DB->fetch_row(); $r['prefix'] = stripslashes($r['prefix']); $r['suffix'] = stripslashes($r['suffix']); $r['message'] = stripslashes($r['message']); $r['message'] = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{50})/i"," \\1",$r['message']); if ($ibforums->vars['sb_showcolors']==1 && $ibforums->member['sb_showcolors'] == 1) { $r['message'] = "{$r['message']}"; } $stats_html .= $this->html->last_shout("Shout By: {$r['name']} - ". $std->get_date($r['time_time'], 'LONG'). "{$r['message']}"); } Save & Close sources/Boards.php