vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   TomBot v1.1 vB AI User Bot (https://vborg.vbsupport.ru/showthread.php?t=48053)

Platinumgamer 01-26-2003 10:07 PM

**Edit: Never mind this, it works perfectly:)

Hi,

I have installed this hack as was stated in the install file, yet when I try to run botloarder.php all I get is the following:

Loading startup.xml

Warning: fopen("/platinum/public_html/forums/aiml/startup.xml", "r") - No such file or directory in /home/platinum/public_html/forums/alice/src/admin/botloaderfuncs.php on line 508
could not open XML input

Can someone please tell me what I'm doing wrong? Everything is CHMODDed to '777' and all files are uploaded properly, but all I get is the aforementioned error. Sorry to be a bother.

Thanks!

Steve Machol 01-26-2003 10:15 PM

Quote:

Originally posted by Steve Machol
Great hack but I have one slight problem. The script always addes an empty image to every reply:

<img src="" alt="" border="0">

Any ideas how I get rid of this?

Here's a pic of the problem I'm having. Everyone of the bot's posts has this. Any ideas?

snakes1100 01-26-2003 10:32 PM

Steve
Well that's suppose to be calling a smile, at least the works for most of us lol.

To address the problem that some get for fopen, this is most likely do to one of two things:

Either your host don't have the fopen option enabled in php.ini

or

Like me, im running htaccess and its blocking access to open the talk.php file.

Im still trying to get a work around im happy with, but its begining to irk me. I like this hack alot and would appreciate any help from a htaccess guru?

thanx

Steve Machol 01-26-2003 10:40 PM

Quote:

Originally posted by snakes1100
Steve
Well that's suppose to be calling a smile, at least the works for most of us lol.

Thanks but actually I am getting the smilies just fine. This one is always an extra:

<img src="" alt="" border="0">

...at the beginning of the post.

See the new pic.

Martin64 01-26-2003 10:46 PM

No, that's not it. That's the post icon. :)

Steve: open tomstalkerbot.php.

FIND AND DELETE:

,iconid

FIND AND DELETE:

,'10'

Or you could just change the iconid to an existing id, but I recommend deleting it or all your bot's posts will have the same icon.

Steve Machol 01-26-2003 10:46 PM

Here's something weird. If I edit the post there is no img code in it. If I twen save it without making any changes the <img src="" alt="" border="0"> disappears. :confused:

snakes1100 01-26-2003 10:47 PM

Yeah heres a pic from mine

Steve Machol 01-26-2003 10:50 PM

Quote:

Originally posted by Martin64
No, that's not it. That's the post icon. :)

Steve: open tomstalkerbot.php.

FIND AND DELETE:

,iconid

FIND AND DELETE:

,'10'

Or you could just change the iconid to an existing id, but I recommend deleting it or all your bot's posts will have the same icon.

Hmmm....I did this and now the bot isn't responding at all. Let me try this again.

Martin64 01-26-2003 10:53 PM

Well, it won't respond if your message has less than 10 characters so that might be it. :)

Steve Machol 01-26-2003 10:54 PM

Nope, that's not it. It was well over 10 characters.

Martin64 01-26-2003 10:54 PM

That's very odd. I tested it right now to be sure, and it's working for me...

snakes1100 01-26-2003 10:55 PM

either of you any good with htaccess?

Steve Machol 01-26-2003 10:55 PM

Quote:

Originally posted by Steve Machol
Hmmm....I did this and now the bot isn't responding at all. Let me try this again.
I worked the second time. I must have made a mistake in the editing. Thanks!

Martin64 01-26-2003 10:57 PM

No problem Steve, glad I could help :)

snakes1100: what's the problem?

snakes1100 01-26-2003 10:59 PM

thanx martin
well basically, i have my forums folder htaccess protected, when i do this i get the fopen error when i try to post, the bot dont respond.

if i removethe htaccess the bot is fine because the htaccess isnt blocking the talk.php file.

anything i can do to exclude the files its calling for from the htaccess file?

bromyaur 01-26-2003 11:02 PM

finally got it working for a second lol

I made a post and he replied with this, I saw a post in this thread way back about changing a setting in the phpini file. Where exactly do I find the phpini file. I dont have root access so am I able to even edit this file?

<br />
<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/bromyaur/public_html/brutal/alice/src/graphnew.php</b> on line <b>125</b><br />
<br />
<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/bromyaur/public_html/brutal/alice/src/graphnew.php</b> on line <b>231</b><br />

Martin64 01-26-2003 11:08 PM

snakes1100: If you haven't done it already, CHMOD the .htaccess file to 644.

snakes1100 01-26-2003 11:11 PM

yeah thats fine? anything else you could think of?

Martin64 01-26-2003 11:16 PM

Hmm...what's in your htaccess file?

snakes1100 01-26-2003 11:17 PM

right now i have this:


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp

nuno 01-26-2003 11:17 PM

Hey Steve, what's wrong with my account at OB?

NTLDR 01-26-2003 11:31 PM

Quote:

Originally posted by bromyaur
finally got it working for a second lol

I made a post and he replied with this, I saw a post in this thread way back about changing a setting in the phpini file. Where exactly do I find the phpini file. I dont have root access so am I able to even edit this file?

Quote:

Originally posted by NTLDR
The following in a .htaccess file should work too

Code:

php_flag allow_call_time_pass_reference on


Martin64 01-26-2003 11:32 PM

Quote:

Originally posted by snakes1100
right now i have this:


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp

Hmm...using both deny from all and allow from all? :)

That "deny from all" you're using denies everyone. I'm not sure what you're protecting, but I wouldn't recommend using it. Use this instead:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*

<Limit GET POST>
order deny,allow
deny from all
allow from localhost
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from localhost
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp

If that doesn't work, replace localhost with your server ip.

snakes1100 01-27-2003 12:11 AM

Quote:

Originally posted by Martin64


Hmm...using both deny from all and allow from all? :)

That "deny from all" you're using denies everyone. I'm not sure what you're protecting, but I wouldn't recommend using it. Use this instead:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* */alice* */*.php*

<Limit GET POST>
order deny,allow
deny from all
allow from localhost
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from localhost
</Limit>
AuthName www.mysite.org
AuthUserFile /home/deuteron/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/deuteron/public_html/_vti_pvt/service.grp

If that doesn't work, replace localhost with your server ip.

this gives me a total forbidden error page.
<Limit GET POST>
order deny,allow
deny from all
allow from localhost <----- had to change back to all

snakes1100 01-27-2003 12:13 AM

where would i insert this exactly, treid it in a few spots so far?

php_flag allow_call_time_pass_reference on

Martin64 01-27-2003 12:25 AM

Well, using both deny from all and allow from all doesn't make sense. If you remove deny from all it should work.

snakes1100 01-27-2003 12:45 AM

nope sure doesn't martin, still getting the fopen crap, think its time to recycle the bot.... :=(

NuclioN 01-27-2003 12:59 AM

Is anyone trying to let this bot work in VBchat-shoutbox as well?

Steve Machol 01-27-2003 02:16 AM

Quote:

Originally posted by nuno
Hey Steve, what's wrong with my account at OB?
You had a bad email address that was causing bounced emails.

Erwin 01-27-2003 02:47 AM

Installed. Works 100% the first time around, with no problems. :)

Tell your friend he's done a great job! :)

Erwin 01-27-2003 03:09 AM

Also, I'm moving this to "Full Releases" since it works, at least flawlessly, on my site. My users love him. :)

ManagerJosh 01-27-2003 04:33 AM

Could someone update the setup package? See:

https://vborg.vbsupport.ru/showthrea...695#post346695


A little bug NTLDR created :D

N9ne 01-27-2003 05:37 AM

Well, it got 1900 posts, the bot forum did, in what, a few hours...simple amazing...

Radgam 01-27-2003 08:40 AM

okay, never mind ;) I found the random command for smilies slightly further down in the coding...

But i have a different problem, the bot keeps using the same post icon :angry: ! Not related to the similies, the actual post icon, is always the same. Any ideas?

Erwin 01-27-2003 08:43 AM

It's random, but I think the bot has some way of choosing the right emoticons for certain posts because the happy and sad smilies seem to be standard in most forums.

Davey 01-27-2003 08:50 AM

This looks good dude, I tried it on your board; -- wonderful job!
This should be interesting, but I can't install it until Friday (which is when I get broadband :)).
I downloaded it at work but it looks complicated.
I'll take another look sometime.
Thanks for releasing, and I will vote this hack of the month when it next comes round.

Dave.

Radgam 01-27-2003 09:01 AM

Just wondered, sometimes the bot posts a
: - ) smile. Is that it's actual emotions and the rest of the time it's just a random pick of the list you give it? That smile code isn't in the $ emot list

Might need to change it so it refers to a smilies code actually install in my board ...

Ooh, and lastly,
1) sometimes the bot things a smile is part of my post... anyway to stop that?
2) Sometimes the bot forgets to put a space in between words, mainly when you get it to do maths, how do i sort that
3) Once the bot posted <br><br> is his sentence and sometimes it does returns in weird places.. any ideas?

chr@nox 01-27-2003 09:17 AM

installed it and sofar works okay..

but..when i run botloader.php it shows this results :

Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187

Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187

and that keeps going like 20.000 times..

then..at the last line it shows me

Notice: Undefined offset: 12 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
XML error: not well-formed (invalid token) at line 19771

anybody who can help me with this?

chr@nox 01-27-2003 10:12 AM

Quote:

Originally posted by chr@nox
installed it and sofar works okay..

but..when i run botloader.php it shows this results :

Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187

Notice: Undefined offset: 8 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187

and that keeps going like 20.000 times..

then..at the last line it shows me

Notice: Undefined offset: 12 in C:\Program Files\Apache Group\Apache2\htdocs\alice\src\admin\botloaderfunc s.php on line 187
XML error: not well-formed (invalid token) at line 19771

anybody who can help me with this?

got it fixed :P
working on localhost :)

great work man! i love this hack!

Radgam 01-27-2003 12:38 PM

is there a way to stop the bot adding <br> s to posts?


All times are GMT. The time now is 03:04 PM.

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.01822 seconds
  • Memory Usage 1,827KB
  • 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
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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