![]() |
Tim: im installing now, ill report if the method works on my server aswell. brb. :)
|
the hack it self is working fine i just dont understand why the alice codeing will not install. the botloader.php runs but its not adding anything to the database :(
|
This hack rocks!!
@ C. Birch, when can we download it ? :confused: ;) Thanks |
you can not yet theres a prob with the installing of the alice code so i have taken the zip down.
But by the looks of it i have it working again now. |
it defo looks like i have it working again now :) has its adding things to my database :)
|
Is botloader being told where to add the info? As in what tables/db etc?
|
prob was 1 i said to run the botloader.php from the wrong folder well i had it in the wrong folder in the zip it should be run from the admin folder i told you to chmod to 777
and 2 the botloader.php file was bad in the zip it was ago 20 mb in size it should not be anywhere near that big. |
Quote:
|
YAY got it working :)
after botloader has done you sould see this at the bottom of the page: DONE LOADING Inserted 41125 categories into database WARNING! You should password protect the admin directory or remove the botloader.php script or people may be able to abuse your server. Click here to talk to the bot execution time: 424.973776 Templates per second=96.770676974666 Templates per minute=5806.24061848 If it says Inserted 0 categories into database its not added anything to the database |
But... when I ran botloader.php from the folder it was in the first zip... it said 41125 inserted... But nothing is in the tables in the db - are you sure it's workin? :)
|
Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D
|
:( its added everything it needs to the database but its still taking crap.
|
just smilies
|
As mentioned before, how did you get it to work on that forum in the first post? Just smileys is fun for one or two times but Alice has warning points already :D
|
ok prob is botloader.php when its installed the database made the bot id 2 the hack it self is calling for bot id 0
|
The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?
|
Quote:
|
this is my tomstalkerbot.php file can anyone see where it says where to call the bot and its id number?
<?php // this is a percentage, determining how often the bot makes a reply. 100 means it will reply every time // 50 means it will reply half the time $ttb_weighting = 100; $ttb = 1; // change to 0 to turn off; $ttb_memberid = 2171; $ttb_username = "TomBot"; $ttb_forumid = 144; $ttb_alicelocation = "http://www.ultimate-forums.co.uk/forums/alice/src/talk.php"; // END CONFIG if ($ttb==1 AND rand(1,100)<=$ttb_weighting AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; function gottb() { global $message, $DB_site,$ttb_memberid, $ttb_username, $threadid, $visible, $foruminfo, $ttb_alicelocation; $emot = array(":)",":(",":xmas:",":D",":baaa:",":cool:",": rolleyes:",":mad2:"); $emoticon = " " . $emot[rand(0,7)]; $ttb_message = $message; $ttb_message2 = $ttb_message; // can't be bothered to code correctly, no preg for you people $ttbc = $message; $ttbc = str_replace("[/quote]","",$ttbc); $tthc = $message; $tthc = str_replace("###","",$tthc); if ($tthc != $ttb_message) {return true;}; if ($ttbc != $ttb_message) { // get rid of quotes which will confuse the bot $ttb_message2 = preg_replace("#(\[quote\].*\[/quote\])#ies","",$ttb_message); $ttb_message2 = preg_replace("#(\[quote.*\].*\[/quote\])#ies","",$ttb_message2); $ttb_message2 = preg_replace("#(\[.+\])#ies","",$ttb_message2); } if (strlen($ttb_message2)>10) { $rss = preg_replace("#^(.*)\[/quote\]#ies","",$message); $ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r"); $response = fread($ff,10000); fclose($ff); $ttb_time = time() + rand(1,5); $ttb_message = " Quote:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars(" "))."','".addslashes($ttb_username)."','$ttb_membe rid','".$ttb_time."','1','".addslashes($ttb_messag e)."','1','1','666.666.666.666','10','1')"); $postid=$DB_site->insert_id(); indexpost($postid,1); if ($visible) { if ($threadinfo[replycount]%10==0) { $replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'"); $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($ttb_username)."' WHERE threadid='$threadid'"); } else { $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,last poster='".addslashes($ttb_username)."' WHERE threadid='$threadid'"); } } $DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',last poster='".addslashes($ttb_username)."' WHERE forumid IN ($foruminfo[parentlist])"); $DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."' WHERE userid='$ttb_memberid'"); } } ?> |
im guessing its indexpost($postid,1);
|
I think ive found the problem :). I must run botloader.php again however, ill report back in 30 minutes
|
YAY
got him working again on my forum :> |
Im just updateing all the files in zip with new ones and editing the install file and then i upload it again to be tested out :)
|
Nice job C.Birch,
Just kinda waiting like the rest for a stable version... :) |
i downloaded the bot.zip "the first one" and couldnt get it to work...so i read the forum here, and did the following to get my bot to say more than smilies... =)
1. I followed the directions like the install.txt said.. 2. I changed all the "alice and its sub dirs" CHmod to 777 3. I deleted the 20mb botloader.php 4. in the alice\src\admin, there are two files with the extestion name "11" i renamed them to "php" which one is the botloader. 5. i excuted the botloader from the alice\src\admin DIR well the script loaded and it did something... Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/lalalala/public_html/forums/alice/src/admin/botloaderfuncs.php on line 77 DONE LOADING Inserted 41126 categories into database well i tested the bot and its say things other then smilies... =) example: |
its on its way i hope its up and working again no my forums if you wish to look why i update the files, guests can post in the tombot forum btw.
|
Quote:
yep thats right thats what im just updateing the zip file with. |
Thanks C.Birch!
Will test it right now!! :D |
Me too, will report back ASAP (56k!)
|
see ya in 30 min then lol
|
Run everyone he is after us:
Quote: do you plan to take over the world? I can't disclose all of my plans yet. |
argh!, LOL. ill report back to *runs botloader for the 5th time this morning*
|
you should get adsl only takes a few min ;)
|
bTW. @ C.Birch, can TomBot reply in German by Default? :confused:
|
try at www.alicebot.org and see if they have german versons of the aiml files
if they do just upload only the aiml files in to the aiml folder in place of the others and then run botloader.php again to add the german versons to the database. |
this is an awesome hack.. I might install it :)
|
does the new zip work anyone?
|
@ C.Birch, ive found these files.
I havent installed the hack right now, so can i just replace the files with that one in the zip? Please have a look. :) |
im not to sure has the alice codeing is not mine but you can give it a try :)
|
but i can not see why it would not work has long has you upload the files in that zip to the aiml folder, try it and get back to me.
|
Quote:
Not avaible in my area, same as cable and anything else. |
All times are GMT. The time now is 05:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|