Add New Bots »  Show posts from    to     

Icy Phoenix


Old Docs - Add New Bots



buldo [ Sat 16 Sep, 2006 21:04 ]
Post 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,


KugeLSichA [ Mon 18 Sep, 2006 16:17 ]
Post subject: Re: Add New Bots
hi Buldo

here are an examle

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

BEFORE ADD
Code: [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: [Hide] [Select]
// Show Search Bot - END
}
}

$prev_session_ip = $row['session_ip'];

BEFORE ADD
Code: [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: [Hide] [Select]
// Show Search Bot - END

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

BEFORE ADD
Code: [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>';
}


KugeLSichA [ Mon 18 Sep, 2006 16:17 ]
Post subject: Re: Add New Bots
[moved to docs]


buldo [ Mon 18 Sep, 2006 20:27 ]
Post subject: Re: Add New Bots
Many thanks!
I'll test it later...


buldo [ Mon 18 Sep, 2006 21:35 ]
Post subject: Re: Add New Bots
It works perfectly!
Thanks KugeLSichA


KugeLSichA [ Mon 18 Sep, 2006 21:58 ]
Post subject: Re: Add New Bots
you´re welcome




Powered by Icy Phoenix