User Control Panel
Advertisements

HELP US, HELP YOU!

ALICE bot and opening search URLS

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Programming Challenges and AI thoughts
View unanswered posts
Author Message
carnuke
Newbie
Newbie


Joined: 13 Apr 2005
Posts: 3

Reputation: 13

PostPosted: Wed Apr 13, 2005 1:45 pm    Post subject: Reply with quote

Hello. I have an an Alice chatterbot and I want to make a category that passes a search to wikipedia and presents a link for the search page.

This is my category

Code:
<br /><category<br />   <pattern>LOOKUP *</pattern><br />  <template><br />     <![CDATA[<br /><a target="_new"   href="http://en.wikipedia.org/wiki/Special:Search?search= <set name="topic"><star/></set>">]]> Try Wikipedia article.      <![CDATA[</a>]]><br />  </template><br /></category><br /><br />


Mmm, it doesn't work. Any botologists out there have any knowledge how to do this?

TIA

Richard
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Wed Apr 13, 2005 6:37 pm    Post subject: Reply with quote

is comment data, isn't it?

Try taking that all out....
Code:
<template><br /><a target="_new" href=".......">click here</a><br /></template>

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Apr 13, 2005 6:51 pm    Post subject: Reply with quote

CDATA isnt comments text inside a CDATA section is ignored by the parser, thst way you can include html...or xml as text... in xml


http://www.w3schools.com/xml/xml_cdata.asp

your example cer would think woudl work

_________________
[ matt ]
Back to top
carnuke
Newbie
Newbie


Joined: 13 Apr 2005
Posts: 3

Reputation: 13

PostPosted: Wed Apr 13, 2005 7:02 pm    Post subject: Reply with quote

Thanks for your replies. The link in my code works perfectly, BUT it does not extract the value of * and append it to the end of the search string. Thats the part that wont work. Grrr..

any other ideas ??

Thanks.
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Apr 13, 2005 7:06 pm    Post subject: Reply with quote

i think its because its in your CDATA

"> Try Wikipedia article. ]]>


or something....?

_________________
[ matt ]
Back to top
carnuke
Newbie
Newbie


Joined: 13 Apr 2005
Posts: 3

Reputation: 13

PostPosted: Wed Apr 13, 2005 8:34 pm    Post subject: Reply with quote

Erm... probably not the result breaks the code:

displays

Try Wikipedia article.

in the reply
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Thu Apr 14, 2005 2:37 am    Post subject: Reply with quote

you didnt close the first tag.

says


should say



???
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Programming Challenges and AI thoughts All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group