<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[PhpBB 3] Ajax Chat 0.8.3 configurazione]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho installato ieri questa fantastica chat sul mio forum. Ho trovato su sourceforge a il modo per dare dei comandi al bot, cosa molto interessante, ma pure seguendo alla lettera quello che scrivono mi da errore:<br />
Parse error: syntax error, unexpected '}', expecting '{' in /membri/petmaniaitalia/chat/lib/class/AJAXChat.php on line 660 e non parte la chat, sicuramente sbaglio qualcosa vi riporto di seguido quello che dicono di fare.</p>
<p dir="auto">To make your chatbot respond to certain keywords, follow these steps.<br />
Remeber that you should not use windows notepad to edit PHP code. Get an editor like Notepad++ to edit php code or you may encounter problems.<br />
Open lib/class/AJAXChat.php and do a search for this:</p>
<pre><code>
function insertParsedMessage($text)

```At the end of this function (about line 762 or so) is this:

</code></pre>
<p dir="auto">} else {<br />
// No command found, just insert the plain message:<br />
$this-&gt;insertCustomMessage(<br />
$this-&gt;getUserID(),<br />
$this-&gt;getUserName(),<br />
$this-&gt;getUserRole(),<br />
$this-&gt;getChannel(),<br />
$text<br />
);</p>
<pre><code>    }

      }
</code></pre>
<pre><code class="language-Right"></code></pre>
<p dir="auto">include("chatbot.php");</p>
<pre><code class="language-Save,">enter this code into the chatbot.php page

</code></pre>
<p dir="auto">&lt;?php</p>
<p dir="auto">// Chat bot messages<br />
if(stristr($text, 'help me'))<br />
{<br />
// KEYWORDS TRIGGER START<br />
$this-&gt;insertChatBotMessage(<br />
$this-&gt;getPrivateMessageID(),<br />
"\nHow may I help you?\n" //This is what the chatbot says when the visitor enters help me anywhere in a sentence!<br />
);<br />
}<br />
// KEYWORD TRIGGER END</p>
<p dir="auto">?&gt;</p>
<pre><code></code></pre>
]]></description><link>https://connect.gt/topic/123859/phpbb-3-ajax-chat-0-8-3-configurazione</link><generator>RSS for Node</generator><lastBuildDate>Fri, 22 May 2026 22:51:43 GMT</lastBuildDate><atom:link href="https://connect.gt/topic/123859.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Mar 2010 20:38:50 GMT</pubDate><ttl>60</ttl></channel></rss>