Bots search engines on the board index (IP.Board 2.2.x and IP.Board 2.3.x)
Modification shows on active users list how much bots are currently browsing forums.

Go to: ACP -> look & Feel -> {Your Skin} -> Edit Template HTML -> Board Index -> ActiveUsers
Replace all content to:
<tr><td class="formsubtitle" colspan="2">{$active[TOTAL]} {$this->ipsclass->lang['active_users']}</td>
</tr>
<tr>
<td class="row1" width="1%"><{F_ACTIVE}></td>
<td class="row2">
<b>{$active[GUESTS]}</b> {$this->ipsclass->lang['guests']}, <b>{$active[MEMBERS]}</b> {$this->ipsclass->lang['public_members']} <b>{$active[ANON]}</b> {$this->ipsclass->lang['anon_members']}, <b>$active[BOTS]</b> {$this->ipsclass->lang['search_bots']}
<div class="thin">{$active[NAMES]}</div>
{$active['links']}
</td>
</tr>
<!--IBF.WHOSCHATTING-->
Save changes
Open: /cache/lang_cache/x/lang_boards.php, where x is your language folder.
Find:
'public_members' => "users",
or
$lang['public_members'] = "users";
Add below respectively for the first version:
'search_bots' => "bots",
or
$lang['search_bots'] = "bots";
Save and upload file
Open: /sources/lib/func_boardstats.php
Find:
$active = array( 'TOTAL' => 0 ,'NAMES' => "",
'GUESTS' => 0 ,
'MEMBERS' => 0 ,
'ANON' => 0 ,
Replace to:
$active = array( 'TOTAL' => 0 ,'NAMES' => "",
'GUESTS' => 0 ,
'MEMBERS' => 0 ,
'ANON' => 0 ,
'BOTS' => 0 ,
Find:
if ( $this->ipsclass->vars['spider_anon'] ){
if ( $this->ipsclass->member['mgroup'] == $this->ipsclass->vars['admin_group'] )
{
$active['NAMES'] .= "{$result['member_name']}*{$this->sep_char}
";}
}
else
{
$active['NAMES'] .= "{$result['member_name']}{$this->sep_char}
";}
Replace to:
if ( $this->ipsclass->vars['spider_anon'] ){
if ( $this->ipsclass->member['mgroup'] == $this->ipsclass->vars['admin_group'] )
{
$active['NAMES'] .= "{$result['member_name']}*{$this->sep_char}
";$active['BOTS']++;
}
}
else
{
$active['NAMES'] .= "{$result['member_name']}{$this->sep_char}
";$active['BOTS']++;
}
Find:
$active['TOTAL'] = $active['MEMBERS'] + $active['GUESTS'] + $active['ANON'];
Replace to:
$active['TOTAL'] = $active['MEMBERS'] + $active['GUESTS'] + $active['ANON'] + $active['BOTS'];
Save and upload file
Article category: IP.Board


Facebook
Google+
Twitter
Digg
Blip
