L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 05:15:48 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Webcast plugin
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Webcast plugin  (Read 340 times)
0 Members and 1 Guest are viewing this topic.
mookie
Rookie
**
Offline Offline

Posts: 27


Webcast plugin
« on: November 19, 2005, 05: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
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Webcast plugin
« Reply #1 on: November 19, 2005, 07:05:06 AM »

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.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
mookie
Rookie
**
Offline Offline

Posts: 27


Webcast plugin
« Reply #2 on: November 19, 2005, 04: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");}}}}
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: Webcast plugin
« previous next »
 
Jump to:  

Recent
online not working after ...
by Temar
[Today at 05:09:48 PM]

Bot not working after tod...
by Alreadythere
[Today at 01:04:41 PM]

Tokens Calulator
by Temar
[December 03, 2008, 01:09:03 PM]

Bebot does not work with ...
by IKShadow
[December 03, 2008, 08:54:04 AM]

!items database
by Temar
[December 03, 2008, 07:27:59 AM]

massive_pvp_time_table 1
by Sudoka
[December 03, 2008, 06:49:07 AM]

Log playtime from buddys ...
by IKShadow
[December 02, 2008, 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]
Stats
Members
Total Members: 1246
Latest: Vingus
Stats
Total Posts: 11193
Total Topics: 1508
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 11
Total: 15
Temar
vikor
upstart
daltarak

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.357 seconds with 28 queries. (Pretty URLs adds 0.023s, 4q)
Loading...