Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
Like Tree4Likes

Thread: Online Bot

  1. #11
    Senior Member ozziemale31's Avatar
    Join Date
    Jan 2007
    Location
    Sydney Australia
    Posts
    817
    Thanks
    27
    Thanked 265 Times in 90 Posts
    Rep Power
    0

    Default re

    Quote Originally Posted by sharil [Only registered and activated users can see links. Click Here To Register...]
    I think c0de sh0wn by s0mething else is m0re easy to understand. . Perhaps s0me0ne can update to 5 bot id? Or Can we just add an0ther bot id? $botid=18; $botid=19;
    PHP Code:
    //the actual code for the bots are here make user ids ie googlebot ,yahoobot etc idn=27 is the position of the userid on the dbase easy peasy 
    $HTTP_USER_AGENT=$_SERVER["HTTP_USER_AGENT"];
    $REMOTE_ADDR=$_SERVER["REMOTE_ADDR"];
    $flag=0;
    if(
    substr_count($agent"Googlebot")){
    $idn=27;
    }
    else if(
    substr_count($agent"Yahoo")){
        
    $idn=29;// user id in dbase
    }
    else if(
    substr_count($agent"msnbot")){
        
    $idn=83;
    }
    else{
        
    $flag=1;
    }
    if(
    $flag==0){
        
    getbrip($idn);
    addonline($idn,"Crawling forums list","");








    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..


  2. #12
    Junior Member
    Join Date
    Jun 2011
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    im only a noob and it can probrobly can be done with lot less coding but u mean sumat like this?
    Code:
    $botid = 18;// change this to your bot user id 
    $botid2 = 19;
    $botid3 = 20;
    $ran = rand(1,4); 
    if($ran==1)
    { 
    $rplace = "Online List"; 
    $rplace2 = "Forums";
    $rplace3 = "Home";
    }
    else if($ran==2)
    { 
    $rplace = "Home"; 
    $rplace2 = "Online List";
    $rplace3 = "Forums";
    }
    else if($ran==3)
    { 
    $rplace = "Home";
    $rplace2 = "Forums";
    $rplace3 = "Online List";
    }
    else if($ran==4)
    { 
    $sql = "SELECT id FROM ibwf_users ORDER BY RAND()  LIMIT 1"; 
    $items = mysql_query($sql); 
    while ($item = mysql_fetch_array($items)) 
    { 
    $whonick = getnick_uid($item[0]); 
    } 
    $rplace = "Viewing $whonick`s Profile"; 
    $rplace2 = "Viewing $whonick`s Profile";
    $rplace3 = "Viewing $whonick`s Profile";
    } 
    $rob = mysql_query("INSERT INTO ibwf_online SET userid='".$botid."', actvtime='".$tm."', place='".$rplace."'");
    if(!$rob){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace."' WHERE userid='".$botid."'");
    }
    $rob2 = mysql_query("INSERT INTO ibwf_online SET userid='".$botid2."', actvtime='".$tm."', place='".$rplace2."'");
    if(!$rob2){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace2."' WHERE userid='".$botid2."'");
    }
    $rob3 = mysql_query("INSERT INTO ibwf_online SET userid='".$botid3."', actvtime='".$tm."', place='".$rplace3."'");
    if(!$rob3){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace3."' WHERE userid='".$botid3."'");
    }
    Last edited by fullcircle; 28-05-12 at 22:45.

  3. #13
    Member
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unhappy

    Quote Originally Posted by fullcircle [Only registered and activated users can see links. Click Here To Register...]
    im only a noob and it can probrobly can be done with lot less coding but u mean sumat like this?
    Code:
    $botid = 18;// change this to your bot user id 
    $botid2 = 19;
    $botid3 = 20;
    $ran = rand(1,4); 
    if($ran==1)
    { 
    $rplace = "Online List"; 
    $rplace2 = "Forums";
    $rplace3 = "Home";
    }
    else if($ran==2)
    { 
    $rplace = "Home"; 
    $rplace2 = "Online List";
    $rplace3 = "Forums";
    }
    else if($ran==3)
    { 
    $rplace = "Home";
    $rplace2 = "Forums";
    $rplace3 = "Online List";
    }
    else if($ran==4)
    { 
    $sql = "SELECT id FROM ibwf_users ORDER BY RAND()  LIMIT 1"; 
    $items = mysql_query($sql); 
    while ($item = mysql_fetch_array($items)) 
    { 
    $whonick = getnick_uid($item[0]); 
    } 
    $rplace = "Viewing $whonick`s Profile"; 
    $rplace2 = "Viewing $whonick`s Profile";
    $rplace3 = "Viewing $whonick`s Profile";
    } 
    $rob = mysql_query("INSERT INTO ibwf_online SET userid='".$botid."', actvtime='".$tm."', place='".$rplace."'");
    if(!$rob){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace."' WHERE userid='".$botid."'");
    }
    $rob2 = mysql_query("INSERT INTO ibwf_online SET userid='".$botid2."', actvtime='".$tm."', place='".$rplace2."'");
    if(!$rob2){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace2."' WHERE userid='".$botid2."'");
    }
    $rob3 = mysql_query("INSERT INTO ibwf_online SET userid='".$botid3."', actvtime='".$tm."', place='".$rplace3."'");
    if(!$rob3){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace3."' WHERE userid='".$botid3."'");
    }
    No Fullcircle, i dont think it will works for if used code above. should be add some more on the code. rand () is for place. rand() actually referred to places not botid and cannot add 2 places in 1 one code.Please corect if im wrong.
    Last edited by sharil; 29-05-12 at 01:18.

  4. #14
    Senior Member something else's Avatar
    Join Date
    Feb 2008
    Location
    if($something){echo 'Status code 404'; }else{ echo 'coding-talk.com';}
    Posts
    1,818
    Thanks
    209
    Thanked 447 Times in 202 Posts
    Rep Power
    0

    Default

    PHP Code:
    $bots = array(12345);// change this to your bot user id
    foreach ($bots as $botid) {
    $ran rand(1,4);
    if(
    $ran==1){
    $rplace "Online List";
    }else if(
    $ran==2){
    $rplace "Home";
    }else if(
    $ran==3){
    $rplace "Forums";
    }else if(
    $ran==4){
    $sql "SELECT userid FROM ibwf_online ORDER BY RAND()  LIMIT 1";
    $items mysql_query($sql);
    while (
    $item mysql_fetch_array($items))
    {
    $whonick getnick_uid($item[0]);
    }
    $rplace "Viewing $whonick`s Profile";
    }

    $rob mysql_query("INSERT INTO ibwf_online SET userid='".$botid."', actvtime='".$tm."', place='".$rplace."'");
    if(!
    $rob){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace."' WHERE userid='".$botid."'");

    }
    ///random text here to get rid of opera bug and this forum :/ 
    icedroplet1987 likes this.

    [Only registered and activated users can see links. Click Here To Register...]


  5. #15
    Member
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks s0methng else 4 da c0de. .

  6. #16
    Member
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by something else [Only registered and activated users can see links. Click Here To Register...]
    PHP Code:
    $bots = array(12345);// change this to your bot user id
    foreach ($bots as $botid) {
    $ran rand(1,4);
    if(
    $ran==1){
    $rplace "Online List";
    }else if(
    $ran==2){
    $rplace "Home";
    }else if(
    $ran==3){
    $rplace "Forums";
    }else if(
    $ran==4){
    $sql "SELECT userid FROM ibwf_online ORDER BY RAND()  LIMIT 1";
    $items mysql_query($sql);
    while (
    $item mysql_fetch_array($items))
    {
    $whonick getnick_uid($item[0]);
    }
    $rplace "Viewing $whonick`s Profile";
    }

    $rob mysql_query("INSERT INTO ibwf_online SET userid='".$botid."', actvtime='".$tm."', place='".$rplace."'");
    if(!
    $rob){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace."' WHERE userid='".$botid."'");

    }
    ///random text here to get rid of opera bug and this forum :/ 

    Aleady implement this code.. work well for me, but this bot id only shown in all online list. How to differentiate between male & female so that it will also count in male online & female online.

  7. #17
    Member
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Any0ne can advice?

  8. #18
    Senior Member
    Join Date
    May 2007
    Location
    newcastle
    Posts
    535
    Thanks
    37
    Thanked 44 Times in 20 Posts
    Rep Power
    0

    Default

    add this to your addonline function in core .make as many bots as you want.

    Code:
    mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='1'");
    mysql_query("INSERT INTO ibwf_online SET userid='1', place='".$place."', actvtime='".$tm."'");  
    
    mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='2'");
    mysql_query("INSERT INTO ibwf_online SET userid='2', place='".$place."', actvtime='".$tm."'");
    
    mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='3'");
    mysql_query("INSERT INTO ibwf_online SET userid='3', place='".$place."', actvtime='".$tm."'");
    
    mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='4'");
    mysql_query("INSERT INTO ibwf_online SET userid='4', place='".$place."', actvtime='".$tm."'");
    change the WHERE id='" "); and userid=' ' , to any users id number.
    [Only registered and activated users can see links. Click Here To Register...]


    [Only registered and activated users can see links. Click Here To Register...]

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. online male and online female not working help plz
    By brand in forum Site / Script testing and error fixing
    Replies: 4
    Last Post: 06-12-11, 09:52
  2. Online member And Online User
    By wasted05 in forum Coding Forum
    Replies: 3
    Last Post: 29-08-11, 01:55
  3. Online time/age/total online time
    By manavworld in forum Coding Forum
    Replies: 2
    Last Post: 30-04-10, 10:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19