Page 1 of 2 12 LastLast
Results 1 to 10 of 18
Like Tree4Likes

Thread: Online Bot

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    21
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default Online Bot

    help me how to make an online bot at lavalair to maintain have online on my site thanks

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

    Default

    PHP Code:
    $botid 18;// change this to your bot user id
    $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."'");

    arnage and rockman like this.

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


  3. The Following 3 Users Say Thank You to something else For This Useful Post:

    Alpin Pbcs (28-05-12), rockman (07-12-11), subzero (28-05-12)

  4. #3
    Junior Member
    Join Date
    May 2011
    Posts
    21
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default

    Quote Originally Posted by something else [Only registered and activated users can see links. Click Here To Register...]
    PHP Code:
    $botid 18;// change this to your bot user id
    $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."'");

    thanks where can i insert that?

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

    Default

    in your core.php in the function addonline()

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


  6. The Following User Says Thank You to something else For This Useful Post:

    rockman (10-12-11)

  7. #5
    Member
    Join Date
    Mar 2012
    Posts
    43
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    thank you but its not working please help

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

    Default

    $tm = time();

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


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

    Default

    this just for 1 bot id right? how about if i want to put 5 bot id?

  10. #8
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    I will make this work for my script lol
    Other words Rebuilt the idea and place 20 Bots lmao
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

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

    Default re

    in my old script mobilzonez i implemented this on the index page

    PHP Code:
        $brws explode(" ",$HTTP_USER_AGENT);
    $ubr $brws[0];
    $uip getip();
    $uid "2";//guest
    $HTTP_USER_AGENT mysql_escape_string($HTTP_USER_AGENT);
    $HTTP_USER_AGENT getenv("HTTP_USER_AGENT");
    $agent $_SERVER['HTTP_USER_AGENT'];
    $ip$_SERVER["REMOTE_ADDR"];
    $jul "1308828763";
    $uip getip();
    $index $index[0];

    $rampagetime time() + (addhours());
    addvisitor();
     
    $res=mysql_query("INSERT INTO ibwf_online SET activetime='".$jul."',  userid='".$uid."', brows='".$agent."', ip='".$ip."'");
    addonline($uid,"Guest On Index Page","index.php","$agent","$ip"); 

    or a better version of the code is this

    PHP Code:
    <?php
    $indiatime 
    time() + (10.5 60 60);
    $agent=$_SERVER["HTTP_USER_AGENT"];
    $tm=time();
    if (
    strpos($agent'Firefox') || strpos($agent'MSIE') || strpos($agent'Safari') || strpos($agent'Googlebot')){
         
    $flag 1;
    }
    if(
    strpos($agent'Mobi') || strpos($agent'mobi') || substr_count($agent'Nokia') || substr_count($agent'Sony')){
        
    $flag=0;
    }
    if(
    $flag==1){ 
    header("Content-type: text/html");

    else {
    header("Content-type: application/vnd.wap.xhtml+xml");


    header("Cache-Control: no-store, no-cache, must-revalidate");
    $blah=mysql_connect("localhost","ibwf_forum","user");
    //$blah=mysql_connect("localhost","root","");
    if($blah){
    $blah1=mysql_select_db("ibwf_forum");
    }
    if(!
    $blah1){
        echo 
    "Couldn't connect to database.";
        exit();
    }

    //////////////////////////////
    echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    echo 
    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML Mobile 1.0//EN\""" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";

    $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","");
    }
    Last edited by ozziemale31; 28-05-12 at 13:24.
    arnage likes this.







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


  12. The Following User Says Thank You to ozziemale31 For This Useful Post:

    subzero (28-05-12)

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

    Default

    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;

Page 1 of 2 12 LastLast

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