Forum AI BOT (phpbb and php-nuke 7.6 patched)

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Forum AI BOT (phpbb and php-nuke 7.6 patched)
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   
The amount of searching i've done for this thing is close to obsessive :-)


I'm looking for a forum AI, namely the mod that was started adn left unfinished on phpbb.com.

I have previously downloaded the standalone version of the script, asin for phpbb that is not integrated, and tried installing it on the off chance it might work.

Needless to say it didnt, couldn't get the installer to fire up for some reason.

Has anyone managed to get the Forum AI mod working in a phpnuke enviroment? if so PLEASE get in touch, i would love to have this thing abusing my forums :-))

I noticede another post about a bot that just replies to the first line that is based on the forum AI available at phpbb.com. This is probably exactly what i am looking for, just I want it to continue conversation in selected forums...

TIA




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Try looking here:
[ Register or login to view links on this board. ]




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   re: Forum AI BOT (phpbb and php-nuke 7.6 patched)
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   
That's exactly it!

Did you manage to get the bot to work on php-nuke before you made the switch to MX-System ?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I had it working on 7.6. It worked perfectly for me. It does increase your db size. What is the MX-System? I am still running php-nuke.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#5   
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   


Originally posted by Dauthus @ Mon May 08, 2006 2:14 am:

Try looking here:
[ Register or login to view links on this board. ]



Sorry i thought that was your site.

I'll have a go at installing in in the next couple of days


TYVM!!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#6   re: Forum AI BOT (phpbb and php-nuke 7.6 patched)
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   
Ok i've uploaded all the files and tried Rubnning the install.php, all i get is a blank page icon_sad.gif
Anyone else had this problem?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   re: Forum AI BOT (phpbb and php-nuke 7.6 patched)
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   
Not sure if anyone can help me with this.

I'm unable to get the install.php file to run, so have manually creaded and edited the mysql tables in order to get it to work.

I can now configure the bot but am unable to get it to talk.


Anyone have any clues as to why?

There is a basic chat box to "test" the bot and that doesnt work either.... anyone got any ideas?


TIA




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#8   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
What Forum AI version did you get from that site?

Also, did you complete the post installation procedures?




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#9   re: Forum AI BOT (phpbb and php-nuke 7.6 patched)
Maclain
CZ Newbie
Maclain has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: May 07, 2006
0.00 posts per day
Posts: 11
Points: 253
   
forum AI 0.2.0-1

have not been able to ru install.php so have made the database alterations manually, but only been able to make the sql changes, none of the other stuff in that script has been done

added all code to relevant files except this one:

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#
      $template->assign_vars(array(
         'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("privmsg.$phpEx?folder=inbox") . '">')
      );

#
#-----[ ADD BEFORE ]------------------------------------------
#
      //
      // START PM SYSTEM FOR IAI
      //

      // Should IAI respond to this pm?
      if (
         (
            $mode != "edit"
         )
         &&
         (
            $to_userdata['user_id'] == $board_config['iai_userid']
         )
         &&
         (
            $board_config['iai_active_pm']
         )
      )
      {

         $iai_root_path = $phpbb_root_path . "mods/iai/";
         include($iai_root_path . 'includes/iai_functions.'.$phpEx);
            
         // Init IAI specific vars
         $iai_subject = ( ( !preg_match('/^Re:/',  $privmsg_subject) ) ? 'Re: ' : '' ) .  $privmsg_subject;

         // Get IAI reply
         $user_id = ($userdata['session_logged_in']) ? $userdata['user_id'] : 0;
         $topic_id = 0; // the null topic
         $sesh_id = $userdata['session_id']; // should NOT be null in any situation
         $numselects = 0;
         // set bot to reply to subject as well as message as long as subject is not a reply (i.e. has Re: out the front)
         $iai_reply_to = ( ( !preg_match('/^Re:/',  $privmsg_subject) ) ? $privmsg_subject . " " : "" ) . $privmsg_message;
         $iai_reply_to = str_replace("is " . $board_config['iai_username'], "are you", $iai_reply_to);
         $iai_reply_to = str_replace($board_config['iai_username'], "you", $iai_reply_to);
         $iai_reply = reply($iai_reply_to,$user_id,$topic_id,$sesh_id);
         $iai_message = $iai_reply->response;
         
         //
         // START Delete user's message from bot's inbox/user's outbox (it gets too full and wastes space otherwise).
         // Note that this wipes ALL PAST pms in the bot's inbox from the user. This ensures that any backlog of pms
         // sent while bot was inactive are also wiped.
         //
         $sql = "UPDATE " . USERS_TABLE . "
            SET user_unread_privmsg = user_unread_privmsg - 1
            WHERE user_id = " . $board_config['iai_userid'];
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message read status for user', '', __LINE__, __FILE__, $sql);
         }
         $sql = "SELECT privmsgs_id
            FROM " . PRIVMSGS_TABLE . "
            WHERE privmsgs_to_userid = " . $board_config['iai_userid'] . " AND (privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
         if ( !($result = $db->sql_query($sql)) )
         {
            message_die(GENERAL_ERROR, 'Could not obtain id list to delete all messages', '', __LINE__, __FILE__, $sql);
         }
         $mark_list = array();
         while ( $row = $db->sql_fetchrow($result) )
         {
            $mark_list[] = $row['privmsgs_id'];
         }
         unset($delete_type);

         if ( count($mark_list) )
         {
            $delete_sql_id = implode(', ', $mark_list);
         }

         $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . "
                  WHERE privmsgs_text_id IN ($delete_sql_id)";
         $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . "
               WHERE privmsgs_id IN ($delete_sql_id)
               AND privmsgs_to_userid = " . $board_config['iai_userid'] . "
               AND (privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";

         if ( !$db->sql_query($delete_sql, BEGIN_TRANSACTION) )
         {
            message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql);
         }

         if ( !$db->sql_query($delete_text_sql, END_TRANSACTION) )
         {
            message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql);
         }
         //
         // END delete sent pms
         //

         // run iai pm send function
         $iai_message = str_replace(".", ". ", $iai_message);
         $iai_message = str_replace("!", "! ", $iai_message);
         $iai_message = str_replace("?", "? ", $iai_message);
         iai_send_pm($userdata['user_id'], $iai_subject, $iai_message, 0);
      }
      //
      // END PM SYSTEM FOR IAI
      //

cause i cant find that file.

does that help?



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#10   
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Yea, privmsg.php is the same as modules/Private_Messages/index.php

But are you sure that is a ported version? A ported version should have said the name of the file as modules/Private_Messages/index.php, not privmsg.php

I will look at my archives and see what verion of this mod I had. I think it was 0.2.0. I ain't too sure because I haven't ran that mod in quite a while. It was a fun mod though. icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum