collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Webcast plugin  (Read 5758 times)

0 Members and 2 Guests are viewing this topic.

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Webcast plugin
« on: November 19, 2005, 11:31:18 am »
Hi all,

Is there a function for webcast in Bebot, or is there a plugin floating around somewhere? I am asking because we were using IGN for awile and our member online/offline status was sent to our webpage, updated by the bot via webcast.php.

How hard would this be to port over to Bebot?

Thanks

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Webcast plugin
« Reply #1 on: November 19, 2005, 01:05:06 pm »
I havent looked at IGN's webcast, however offhand it should be fairly easy to accomplish for BeBot.

The simplest method would probably be to just create an online database table and then access said table from the website.
Im sure someone is up for the task.

If you happen to have the webcast source code, feel free to post it as it will whoever takes this on a better idea of how that works.
BeBot Founder and Fixer Kingpin

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Webcast plugin
« Reply #2 on: November 19, 2005, 10:37:04 pm »
ok this is what i have.  The webside script just takes the user on/off information from the bot and then reads the user data from the xml script on the funcom user page.

--- Clip from IGN bot ---


if(!stristr($checkconfig,"$"."webcast"))
      {echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                     :: INSTALLING WEBCAST online list ::\n\n\n\n\n\n\n\n\n\n\n\n\n";pause(3);
      $checkconfig=str_replace('$'.'IGNname','$webcast = "";'."\r\n".'$webcastpass = "";'."\r\n".'$'.'IGNname',$checkconfig);
      $doupgrade = @fopen ($origfile."config.php","w");
      $fpu = fwrite($doupgrade,$checkconfig);echo $screenblank;
      fclose($doupgrade);
      }


///25/// loading the botname.config file and setting new globals and ingame setup variables.
      $readconfig="";
      $checkconfig="";
      $doupgrade="";
      include($origfile."config.php");
      $setup["webcast"]=$webcast;
      $setup["webcastpass"]=$webcastpass;

** Config.php just sets the values of $webcast (IE: Website address/file) and $webcastpass is the password.



///number/// handles auto-sending of online list to guildsite if chosen in setup.
      global $webcast,$webcastpass;
      if(!empty($webcast)){global   $cast;$cast++;if($cast>1000){$cast=0;
      $weblist=dirlist('logstamp/',"","",0,0,0,0);
      if(is_array($weblist)){$i=0;$result=Array();$result[0]="(start)";
      foreach($weblist as $k => $v){
      if(strlen(rawurlencode($result[$i]))>4000){$i++;}
      $result[$i].=str_replace(".logon"," on ",str_replace(".logoff"," off ",$k)).$v."\r\n";}
      //console("[IGN WEBCAST] :: uploading online lists to webserver ::\r\n");
      foreach($result as $v){$v=rawurlencode($v);
      $webresult=fileget ($webcast."?upload=".$v."&pass=".$webcastpass);}
      if($webresult==""){$webresult="no server or script found";
      console("[IGN WEBCAST] :: ".$webresult." ::\r\n");}}}}

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 324
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal