Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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,
 




____________
~~~ Andrea ~~~
User #379756 on Linux Counter
"If you can't apt-get something, it isn't useful or doesn't exist!!"
 
buldoSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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>';
            }

 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add New Bots 
 
[moved to docs]
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add New Bots 
 
Many thanks!  
I'll test it later...  
 




____________
~~~ Andrea ~~~
User #379756 on Linux Counter
"If you can't apt-get something, it isn't useful or doesn't exist!!"
 
buldoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add New Bots 
 
It works perfectly!
Thanks KugeLSichA
 




____________
~~~ Andrea ~~~
User #379756 on Linux Counter
"If you can't apt-get something, it isn't useful or doesn't exist!!"
 
buldoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add New Bots 
 
you´re welcome  
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron