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: admin interface ?  (Read 5889 times)

0 Members and 1 Guest are viewing this topic.

Offline senare

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
admin interface ?
« on: June 16, 2006, 11:35:40 am »
I am a bit new but have been tinckering with bebot as an org bot a bit and now i am considering the possibilities to give something back aswell :)

on the todo list there is a post about wish list admin interface, there also seams as the news module have been giving a recent owerhaul so it should be pretty much ctr-c ctrl-v, so if no one is working on that i give it a look this weekend ?

also i was thinking that some off those modules would benifit from having a webb interface as well (as a complement not a sudstitute), as well as some modules who could be accesible from the webb as well (news on the org homepage online status for members ...) dont most orgs keep a web page as it is ?

so i am wondering how this could be orginazied so thet it would be modular / reusable / and all that ...

/MVH "Senare"

 

Offline senare

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: admin interface ?
« Reply #1 on: June 16, 2006, 02:45:42 pm »
oki to reply to my won post .. i am thinking that it might be possible to do it as a mod for phpbb phpbb ? This would have to be a quite a big mod but still ?

such futures as accessing forums ingame aswell as html help files for commands to bot etc ?
as this would mostly come down to som would mostly require some translation/interpentation off bbcode ?

/MVH "Senare"

« Last Edit: June 16, 2006, 03:41:38 pm by senare »

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
Re: admin interface ?
« Reply #2 on: June 16, 2006, 07:53:04 pm »
I'm running the bot on the same shell as forums, so I wrote a phpbb script, every 6h it'll display new posts (with clickable links) on the last 12h.

Code: [Select]
<?
  /*
   * Something written by Wolfbiter
   */
   
$phpbb = new phpbb($bot);

$cron["6hour"][] = &$phpbb;

class phpbb {
var $bot;
var $url;
var $switch;
   
function phpbb (&$bot) {
$this -> bot = &$bot;
$this->url = "http://path/to/forum/viewtopic.php?t=";
$this->switch=0;
//Forum titles and their forum ID
$this->forums=Array(
"Applications"=>8,
"Bullshit"=>14,
"Lounge"=>9,
"Org Business"=>2,
"Q&A"=>11,
"Raids"=>10,
"Toons"=>13,
"Tower / Base"=>3
);
}
function cron() {
if (!$this->switch)
$this->switch++;
else {
//Loop for all the forums
foreach ($this->forums as $title => $id) {
$phpbb = $this->bot->db->select("SELECT topic_id,topic_title from phpbb_topics where topic_time>".(int)(time()-43200)." AND forum_id=".$id." order by topic_time");
if (!empty($phpbb)) {
$blob = count($phpbb)." topics in <font color=#cccc00>".$title."</font> the past 12 hours";
foreach ($phpbb as $post) {
if (count($phpbb) > 3)
$blob.= "<br>".$post[1]." :: ".$this->urlcmd($post[0],"click to view");
else
$blob.= "<br>".$post[1]." :: ".$this->bot->make_blob("click to view",$this->urlcmd($post[0],"click to view"));
}
if (count($phpbb) > 3)
$output = count($phpbb)." topics in <font color=#cccc00>".$title."</font> the past 12 hours :: ".$this->bot->make_blob($blob,"click to view");
else
$output = $blob;
$this->bot->send_gc($output);
}
}
}
}
function urlcmd($link, $title) {return '<a href=\'chatcmd:///start '.$this->url.$link.'\'>'.$title.'</a>';}
  }
?>
Too many toons.

Offline senare

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: admin interface ?
« Reply #3 on: June 16, 2006, 10:01:38 pm »
yeah ... i saw ya post about that in the thread about ingame forum wolfbiter, but its not really what i needed .. i am after some discussion about the admin interface for bebot ... would it be commonly used/develpoed for if i started some sort off webb interrface for configuring ones bot ...

Are there any thoughts towards a more or less graphical setup/install ?

Will all config options be keept in memory or in the database ?

And more stuff like that ?

and if so how would one go about making it possible to add admin options for each module?

if u still dont get what i am talking about ?

here is a example off how i mean that it could be ....

nubis noob have recently started an org so he whants a org homepage for his org and a ofcourse a bot ... he download and installs phpbb and bebot. then i snatalls the mod X for bebot ... then he opens up the amdin page in his browser and selects wich commands he whants in GC and wich he whants in tell, who shall have admin rights. And then he makes a few post on the forum about who gets to be in the elite squade for the org ... he also makes a news item syaing that the org now has been founded and has a forum ons some webbadress ... he also sets up the welcome msg to be a tell with !news from the bot (all this from the webb interface)

later when his org mates log in to the game they will be greated by a tell from bot with the !news  they will click on the link provide wich takes em to a webpage .. there is the forum and the is a help page for all the commands for the bot etc ...

or something like that ... now i dont intend to write all that although i prolly could get som off it started thats way i whanted a discussion on how one could write that in such a fashion that it would be extendeble, is that any clearer ?

/MVH "Senare"

joey12344

  • Guest
Re: admin interface ?
« Reply #4 on: June 29, 2006, 07:04:22 pm »
Anyone got one of these for Invision power board? Or invisionfree.com compatible particulary :) Thanks

 

* 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: 179
  • 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