vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TalkerBot Add-on - Learning System (https://vborg.vbsupport.ru/showthread.php?t=60429)

dano 01-23-2004 12:01 PM

Quote:

Originally Posted by eXtremeTim
Yes thats from your external.php not being hacked correctly.

I really need some help and I am sure its simple. I think I am putting the formats of the threadids and such in wrong. Also, I was not exactly sure where to put the else if stuff as you just said put it in there. Can you help me and just treat me like a dumbass. :nervous:

bigtime 01-23-2004 03:07 PM

Which hacks are required to be installed before installing [vB3.0.0] - TalkerBot Add-on - Learning System?

I saw this but it is unclear to me what is required to be installed:

"Talkerbots and variants:
VB2:
C. birch https://vborg.vbsupport.ru/showthread.php?t=48053
VB3:
Rapid Gaming https://vborg.vbsupport.ru/show...?t=60013&page=1
Extremetim https://vborg.vbsupport.ru/showthread.php?t=60329

Teachbot for Vb2
https://vborg.vbsupport.ru/show...hlight=teachbot

And based around Program E.
Copyright 2002, Paul Rydell
Portions by Jay Myers

Program E is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version."


Thanks in advance!

Xyphen 01-23-2004 05:41 PM

Ok, something is wrong with my Bot.. I teach him stuff and he just comes up with his own stuff...

I teached him "Who is Ali?"

Answer "Ali is the owner of sitename."

Asked him "Who is Ali?"

response "I do not recognize the name.<br></br>

Oh now I see."

Teached him "What is your name?"

Answer "My name is Mr. Boto"

Asked him "What is your name?"

Response "My name is Program E."

eXtremeTim 01-23-2004 05:57 PM

some of that stuff will conflict. Its a matter of finding the right keywords.

dano 01-23-2004 06:14 PM

I give up, I have tried just about everything and can get it to work correctly. Oh well, guess my bot will never learn anything at all.

Thanks Tim for trying to help me out.

Xyphen 01-23-2004 08:41 PM

I don't think the learning addon works for me :(

dano 01-23-2004 09:13 PM

Quote:

Originally Posted by Xyphen
I don't think the learning addon works for me :(

Me neither. :(

Geographic2 01-24-2004 05:47 PM

Quote:

Originally Posted by bigtime
Which hacks are required to be installed before installing [vB3.0.0] - TalkerBot Add-on - Learning System?

I saw this but it is unclear to me what is required to be installed:

"Talkerbots and variants:
VB2:
C. birch https://vborg.vbsupport.ru/showthread.php?t=48053
VB3:
Rapid Gaming https://vborg.vbsupport.ru/show...?t=60013&page=1
Extremetim https://vborg.vbsupport.ru/showthread.php?t=60329

Teachbot for Vb2
https://vborg.vbsupport.ru/show...hlight=teachbot

And based around Program E.
Copyright 2002, Paul Rydell
Portions by Jay Myers

Program E is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version."


Thanks in advance!


Either of these will operate fine with this hack add-on for VB3.

VB3:
Rapid Gaming https://vborg.vbsupport.ru/show...?t=60013&page=1
Extremetim https://vborg.vbsupport.ru/showthread.php?t=60329


If you are using VB2, then use the VB2 version and the Teachbot hack by martin64.

;)

Geographic2 01-24-2004 06:22 PM

Quote:

Originally Posted by dano
Me neither. :(


To all those having trouble, extremeTim asked me if he could integrate this with the next version of Talkerbot, I think it's an excellent idea, and hopefully this will make the installation process easier for those having trouble. He's even fixed a couple of the quirks that I left out of my code, such as post count data. ;)

Geographic2 01-24-2004 06:35 PM

Quote:

Originally Posted by dano
I really need some help and I am sure its simple. I think I am putting the formats of the threadids and such in wrong. Also, I was not exactly sure where to put the else if stuff as you just said put it in there. Can you help me and just treat me like a dumbass. :nervous:



an if - else chain is a way to execute different code under different circumstances.

In this example of external.php we have these options JS, XML,RSS


Code:

if ($_REQUEST['type'] == 'JS' AND $vboptions['externaljs'])
{
//A BUNCH OF CODE
}
else if ($_REQUEST['type'] == 'XML' AND $vboptions['externalxml'])
{
}
else if (($_REQUEST['type'] == 'RSS' OR $_REQUEST['type'] == 'RSS2') AND $vboptions['externalrss'])
{
}


We want to insert that else if block I posted into that structure,
to make it easy... just go to the end of the file, find

Code:

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 22:41, Thu Jan 8th 2004
|| # CVS: $RCSfile: external.php,v $ - $Revision: 1.49 $
|| ####################################################################
\*======================================================================*/

and insert the else if block i posted for external.php right above the big comment block.


All times are GMT. The time now is 10:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01316 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete