Add New Bots


Subject: Add New Bots
Hi all,
Is it possible to add new bots so they can be shown in "who is online" infos?
I mean insert new bot with its IP (ex. NewBot: 111.222.333.444).

Ciao,

Subject: Re: Add New Bots
hi Buldo

here are an examle

OPEN viewonline.php
FIND
Code: [Download] [Hide] [Select]
// Show Search Bot - END
$view_online = true;
$guest_users++;
$which_counter = 'guest_counter';
$which_row = 'guest_user_row';
}

BEFORE ADD
Code: [Download] [Hide] [Select]
if ($tmp_list[0] == "111" && $tmp_list[1] == "222" && $tmp_list[2] == "333" && $tmp_list[3] == "444")
{
//NewBot
$username = '<span style="font-weight:bold;color:' . $bots_color . '">NewBot</span>';
}


OPEN includes/page_header.php
FIND
Code: [Download] [Hide] [Select]
// Show Search Bot - END
}
}

$prev_session_ip = $row['session_ip'];

BEFORE ADD
Code: [Download] [Hide] [Select]
if ($tmp_list[0] == "111" && $tmp_list[1] == "222" && $tmp_list[2] == "333" && $tmp_list[3] == "444")
{
//NewBot
$online_botlist .= ( $online_botlist != '' ) ? ', ' . '<span style="font-weight:bold;color:' . $bots_color . '">NewBot</span>' : '<span style="font-weight:bold;color:' . $bots_color . '">NewBot</span>';
}


OPEN adm/index.php
FIND
Code: [Download] [Hide] [Select]
// Show Search Bot - END

$template->assign_block_vars("guest_user_row", array(

BEFORE ADD
Code: [Download] [Hide] [Select]
if ($tmp_list[0] == "111" && $tmp_list[1] == "222" && $tmp_list[2] == "333" && $tmp_list[3] == "444")
{
//NewBot
$name_guest = '<span style="font-weight:bold;color:' . $bots_color . '">NewBot</span>';
}

Subject: Re: Add New Bots
[moved to docs]

Subject: Re: Add New Bots
Many thanks! :wink:
I'll test it later... :mryellow:

Subject: Re: Add New Bots
It works perfectly!
Thanks KugeLSichA :up:

Subject: Re: Add New Bots
you´re welcome 8)


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1639s (PHP: 11% SQL: 89%)
SQL queries: 13 - Debug Off - GZIP Enabled