[addon]IAI

This shoutbox, fully integrates in phpbb2, support smilies and bbcode
this shoutbox is a shoutbox written for phpbb2, therefor it makes uses of templates and language files

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby Aces on Sat 18. Sep, 2004 17:46

I will admit I am having some problems installing the Forum AI bot anyway, but I thought I would see what happens when I tried to intall shout with AI add-on mod....

Unfortunately it seems to have various discrepancies from the Forum AI 0.2.0 that I downloaded. The first one is:

Code: Select all
#
/shoutbox.php
#
#-----[ FIND ]------------------------------------------
#
      $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
      $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
      $sql = "INSERT INTO " . SHOUTBOX_TABLE. " (shout_text, shout_session_time, shout_user_id, shout_ip, shout_username, shout_bbcode_uid,enable_bbcode,enable_html,enable_smilies,iai_shout)
            VALUES ('$message', '".time()."', '".$userdata['user_id']."', '$user_ip', '".$userdata['username']."', '".$bbcode_uid."',$bbcode_on,$html_on,$smilies_on,'".$iai_message."')";
#


it is admittedly very similar to what i actually find (please note iai_shout & $iai_message bits above)
....

Code: Select all
   $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
      $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
      $sql = "INSERT INTO " . SHOUTBOX_TABLE. " (shout_text, shout_session_time, shout_user_id, shout_ip, shout_username, shout_bbcode_uid,enable_bbcode,enable_html,enable_smilies)
            VALUES ('$message', '".time()."', '".$userdata['user_id']."', '$user_ip', '".$username."', '".$bbcode_uid."',$bbcode_on,$html_on,$smilies_on)";


so I thought I'd go on and replace it anyway....

Then there is the following discrepancy:

Code: Select all
#
/shoutbox_max.php
#
#-----[ FIND ]------------------------------------------
#
      include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx);
      $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
      $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
      $sql = "INSERT INTO " . SHOUTBOX_TABLE. " (shout_text, shout_session_time, shout_user_id, shout_ip, shout_username, shout_bbcode_uid,enable_bbcode,enable_html,enable_smilies)
            VALUES ('$message', '".time()."', '".$userdata['user_id']."', '$user_ip', '".$userdata['username']."', '".$bbcode_uid."',$bbcode_on,$html_on,$smilies_on)";


but in the file the closest statement to it is:

Code: Select all
require_once($phpbb_root_path . 'includes/functions_post.'.$phpEx);
      $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : '';
      $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
      $sql = "INSERT INTO " . SHOUTBOX_TABLE. " (shout_text, shout_session_time, shout_user_id, shout_ip, shout_username, shout_bbcode_uid,enable_bbcode,enable_html,enable_smilies)
            VALUES ('$message', '".time()."', '".$userdata['user_id']."', '$user_ip', '".$username."', '".$bbcode_uid."',$bbcode_on,$html_on,$smilies_on)";


Is require_once the same as include_once? and either way is it a good idea to go ahead and replace it with the new code?
Aces
Poster
Poster
 
Posts: 1
Joined: Mon 23. Aug, 2004 20:46

Previous

Return to Fully integrated shoutbox [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron