PDA

View Full Version : Administrative and Maintenance Tools - vb Linkchecker Bot 1.1


Pages : [1] 2

sarkar
09-08-2008, 10:00 PM
MaxWCoders present vB Link Checker Bot 1.1

===========
DESCRIPTION
===========

1) Checks Rapidshare.de , Rapidshare.com , Sendspace.com , Megaupload.com , Depositfiles.com and Mediafire.com links using cURL.
2) Works for post with all BBCodes.
3) Bins the post if more than specified percent of dead links are found , pms the user about it and posts in that topic
4) If all links are alive it adds specified message at the end of the post and the description.
5) If some links are live and some are dead i.e less than specified % , it makes a thread in a specified forum about it
6)Has a debug mode, to help you debug the errors.
7)Bot doesn't timeout due to MySQL timeout or PHP timeout.
8)It is a product, can be imported and settings can be changed easily.
9)Methods are accessible with keywords.

VBBot Installation How-To
=========================

1. Upload vbbot.php to your root folder where your VB installation is
Note : If you had older version of the bot, delete vbbot.php (or the folder) and replace it by new one.

2. Goto your ACP and go to 'Plugins & Products' and then click on 'Manage Products'

3. In the top box eneter the location of the product-link_bot.xml file on your computer
and then click the 'Import' button.

4. You have just installed the VB Link Checker bot.

5. If you had older version of the bot, delete vbbot.php (or the folder) and replace it by new one.


Setting up and configuring your VB Link Checker
===============================================

1. Create a new user that will be used for your Link Checker Bot. Make sure the bot has
the appropriate permissions for where it will be posting. (ie, VIP/Private forums)

2. Create the forums you will be using for good and bad links if you have not done so already.

3. Goto vBulletin Opions and select the MaxWCoders LinkChecker Bot.

4. All the options/setting are pretty self explanatory and each option has the description
of what the setting are for and do. Refer the the bottow of this Read Me of finding the
correct IDs you will need if you are not sure where to look.

5. Once you have everything set up hit the save button at the bottom.


Security
========
1. For security reasons, it is highly recommended you rename your bot to something else for instance 63454.php

Running your Link Checker Bot
=============================

1. You can run the bot by setting up a Cron job to run at a set time so you will not have to
run it manually. This can be found in your cPannel of your server.

2. You can call it manually by running vbbot.php (ie. http://www.siteurl.com/vbbot.php)

How to find all of your needed IDs.
===================================

How to find your forum ID:
Just goto the forum in question and the URL will look like the one below.

http://www.yourwebsite.com/forumdisplay.php?f=18 <--- The number at the end of the URL
will be the forum ID. In this example
it is 18.

---------------------------------------------------------------------------

How to find your user ID
Find the user that is going to be your bot and click on the user name.
Now look at the URL in the address bar. It should look something like the one below

http://www.yourwebsite.com/member.php?u=2 <--- The number at the end of the URL will be
the user ID. In this example the user ID
is 2.

================================================== ===================================


https://vborg.vbsupport.ru/external/2008/12/104.jpg
https://vborg.vbsupport.ru/external/2008/12/105.jpg
https://vborg.vbsupport.ru/external/2008/12/106.jpg

Bot in action
https://vborg.vbsupport.ru/external/2008/09/51.jpg
https://vborg.vbsupport.ru/external/2008/09/52.jpg
https://vborg.vbsupport.ru/external/2008/09/53.jpg

Script support on
www.maxwcoders.com

Read the glossary included in the RAR and ZIPs.

Get them at
http://www.maxwcoders.com/bots/downloads/vbbot11.rar

Changelog:
1.0 - 1.1 -> Bug fixes and Product installer

Bugs:

Unfortunately due to time constraints due to exams, I am not able to find the bug fix for the PM bug. Whenever bot tries to PM a certain member with PM disabled, or something similar, it returns a big error. So far only fix for it is, disable PM for that topic and run it again. Maybe after my exams, I can have a better look. Other than that, the new version is just fine :)

bxbigt
09-09-2008, 03:50 AM
LOL My buddy got this like 3 days ago and been working on this , Do you have Dman's permission to be posting this ???

Vi3t4Lov3
09-09-2008, 03:52 AM
wow... I'm not install yet, but the information very interesting . anyone try it yet?
thanks for share...

ShawneyJ
09-09-2008, 03:53 AM
wow looks good thanks, book marked for later ;)

sarkar
09-09-2008, 03:56 AM
@bgbixt, yes i have Dman's permission to post this.

bxbigt
09-09-2008, 03:57 AM
Thats cool , because I heard that this was supposed to be a private hack...

sarkar
09-09-2008, 03:59 AM
It was supposed to be a private hack, but got leaked somehow... Anyway i am also an admin on MaxWCoders to check :)

Skavenger
09-09-2008, 04:15 AM
Thanks, I'm going to try this in a few days. It would be nice to have a product of this.

puertoblack2003
09-09-2008, 04:18 AM
wow this is interesting i'm going to test this on my test forum..no one can ever get this stable.should be in beta

sarkar
09-09-2008, 04:29 AM
It is a stable mod and works fine on a live board.

puertoblack2003
09-09-2008, 04:54 AM
It is a stable mod and works fine on a live board.


i most say props to you:up: The only thing i encountered the pms, instead of generating one pm with the list of bad links its doing it one by one whcih i now have 20 pm's ..I guess something you can fix..

Floris
09-09-2008, 04:57 AM
First goto phpmyadmin and execute this queries:

ALTER TABLE `vb_thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;
ALTER TABLE `vb_thread` ADD `ignore_check` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `time_check` ;

Where vb_ is the forum table prefix.

The vB product can run these queries, and takes table prefix into account.

Floris
09-09-2008, 04:59 AM
It was supposed to be a private hack, but got leaked somehow... Anyway i am also an admin on MaxWCoders to check :)
Somehow?

The only way I can see this being leaked is via another admin on that site or one of the developers (hired(?)) sharing it with friends. Time to revisit the admin list and rethink who you hire as a developer., I guess.

puertoblack2003
09-09-2008, 05:02 AM
also found another issue in the pm when showing the bad links to the post the url to the post is broken for example : http://your_site.com82719/ thats how is showing in pm

sarkar
09-09-2008, 05:24 AM
About the PM thing i cant do anything you will have to survive it
And the URL in PM thing works fine...
$showurl = 'http://yourdomain.com/forum/showthread.php?t='; //Your URL url needs to be in this format
the variable $showurl needs to be in this format
There is a bug fix please update everyone..

puertoblack2003
09-09-2008, 05:59 AM
About the PM thing i cant do anything you will have to survive it
And the URL in PM thing works fine...
$showurl = 'http://yourdomain.com/forum/showthread.php?t='; //Your URL url needs to be in this format
the variable $showurl needs to be in this format
There is a bug fix please update everyone..

ok that worked...:up: dont know what happened! so far so good :)

Hornstar
09-09-2008, 06:10 AM
Thanks, this is quite a good release as it does come in handy when you have many RS links on your site. Thanks.

puertoblack2003
09-09-2008, 06:21 AM
few more things! sorry to be a pain but I'm helping you,This have potential.

1- the forum id for the trash post, i put the forum id # now everything goes to the post that i designated to.But if you in forum home, when i click on the post that was placed in the trash, it does not take me to theat post it takes me to another post other then the trash post.

2- report forum id, Id# chosen, but nothing is not going to that post at all..

pm is ok

-pb

sarkar
09-09-2008, 06:49 AM
Somehow?

The only way I can see this being leaked is via another admin on that site or one of the developers (hired(?)) sharing it with friends. Time to revisit the admin list and rethink who you hire as a developer., I guess.

Actually earlier it was a paid modification. So guy bought it and spread it all over. So we decided why does that guy get credit? We then released, both the versions i.e. vBulletin and IPB bots on our site and are working on SMF and MyBB.

That is how the bot got leaked.

rapidphim
09-09-2008, 06:53 AM
can you please let me know how many query this hack used? thanks.

sarkar
09-09-2008, 06:56 AM
@puertoblack2003 i cant understand what are you talking about can you pm me the real urls and what you mean in pm ?
@rapidphim - This mod adds two columns to thread table.

rapidphim
09-09-2008, 06:58 AM
sorry for being dumb, but I'd like to know how many query this hack uses and will it slow down the server while checking the assigned forum(s)? Sorry for asking this since I am on a shared host and chance of being suspended for CPU overload is really high.

sarkar
09-09-2008, 07:16 AM
It uses 6-7 queries i guess (estimate) and cpu load increases in average by 10-20%

rapidphim
09-09-2008, 01:43 PM
darn, that's quite a bit of usage. I'd love to use this hack, but I have to pass it on :-(

puertoblack2003
09-09-2008, 03:02 PM
@puertoblack2003 i cant understand what are you talking about can you pm me the real urls and what you mean in pm.

it don't matter rather its here or pm, you still won't understand it. lets someone else tell ya...i wont put this on my live forum yet..

to all for i didn't notice any high queries it was fast and quick

sarkar
09-09-2008, 05:54 PM
it don't matter rather its here or pm, you still won't understand it. lets someone else tell ya...i wont put this on my live forum yet..

to all for i didn't notice any high queries it was fast and quick

Ok thats ur call. Yeah sometimes it does come to high queries when it encounters many links in a topic (and especially when servers come up and down like rs did today)

edermix
09-09-2008, 11:48 PM
I do not understand, I made the following settings, according to the settings of my Vbulletin:

First goto phpmyadmin and execute this queries:

ALTER TABLE `vb_thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;
ALTER TABLE `vb_thread` ADD `ignore_check` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `time_check` ;

Where vb_ is the forum table prefix.

After doing this, I did this:

maxwcoders (http://www.maxwcoders.com/forum/viewtopic.php?f=19&t=17&st=0&sk=t&sd=a&start=10#p78)

Then start the script:

www.bestuniom.net/vbbot.php

And the following message appeared:

Using Method where it seems that all topics have been checked.

And there appeared no message to boot on my Forum / topics. What do I do? It has more to do any setup?

Sorry for my English. I am Brazilian and I do not see much of the English language.

furst
09-10-2008, 12:16 AM
I wish it was easier to install and just went live with some default settings. I'm too lazy to do all that.

puertoblack2003
09-10-2008, 02:37 AM
I do not understand, I made the following settings, according to the settings of my Vbulletin:



After doing this, I did this:

maxwcoders (http://www.maxwcoders.com/forum/viewtopic.php?f=19&t=17&st=0&sk=t&sd=a&start=10#p78)

Then start the script:

www.bestuniom.net/vbbot.php

And the following message appeared:

And there appeared no message to boot on my Forum / topics. What do I do? It has more to do any setup?

Sorry for my English. I am Brazilian and I do not see much of the English language.



just use this providing you not using any prefix

ALTER TABLE `thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;
ALTER TABLE `thread` ADD `ignore_check` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `time_check` ;

Dman91
09-10-2008, 03:03 AM
@edermix Did you run SQL Queries. Are you sure the forums to check you have entered are not categories ?
@pb - You mean reports are not working ? It will report a post only when less than $perd links are dead. And i will have a look at the trash thing you are telling today.

Kaycee123
09-10-2008, 05:20 AM
This is an excellent mod -works fantastic for a site like ours that has hundreds of external links!!!

Thank you so much - its working great :D:D:D

Dman91
09-10-2008, 05:48 AM
Glad i could help you to get it working :)

rmxs
09-10-2008, 11:45 AM
Cool...how can i add up to 10 forums for check?

steve1966
09-10-2008, 11:56 AM
Hi please can you help me with this i got this message when i ran the query

Error
SQL query:

ALTER TABLE `vb_thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;



MySQL said:

#1146 - Table 'my_forum1.vb_thread' doesn't exist

from where do i find to

change it to mach the prefix of your database tables.

thanks

rmxs
09-10-2008, 12:18 PM
Works good byt when i read PM from bot i saw this error on the top Warning: Invalid argument supplied for foreach() in [path]/private.php on line 1523

rmxs
09-10-2008, 12:38 PM
Hi please can you help me with this i got this message when i ran the query

Error
SQL query:

ALTER TABLE `vb_thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;



MySQL said:

#1146 - Table 'my_forum1.vb_thread' doesn't exist

from where do i find to

change it to mach the prefix of your database tables.

thanks
login to phpmyadmin and look on the right if the tables have any prefix like vb_

Now with this query you try to alter in
my_forum1.

rmxs
09-10-2008, 12:40 PM
Onother problem

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/rmxs/domains/rmxsmania.com/public_html/Vb/bot/bot.php on line 170
No Relevant Links Found : 13213 (http://www.rmxsmania.com/Vb/showthread.php?t=13213)

There is a link byt its not clickable (like in code)

sarkar
09-10-2008, 01:06 PM
Cool...how can i add up to 10 forums for check?

Forums to check syntax
`forumid` = 2 OR `forumid` = 3 - This will check both forum id 2 and 3
`forumid` != 2 OR `forumid` != 3 - This will all forums EXCEPT forum id 2 and 3

sarkar
09-10-2008, 01:12 PM
Onother problem

There is a link byt its not clickable (like in code)

Replace:

$qu2 = mysql_query("SELECT `pagetext`, `userid` , `username` FROM `".$prefix."post` WHERE `postid` = '$pid'");

With this:

$qu2 = mysql_query("SELECT `pagetext`, `userid` , `username` FROM `".$prefix."post` WHERE `postid` = '$pid'") or die(mysql_error());

And please report back what you get.

Works good byt when i read PM from bot i saw this error on the top Warning: Invalid argument supplied for foreach() in [path]/private.php on line 1523

This error will be fixed in the next release.

bL@CKw!d0w
09-10-2008, 01:12 PM
I make a pitcure for this link checker :D

sarkar
09-10-2008, 01:23 PM
LOL @ BW

Where do we use it ?

steve1966
09-10-2008, 02:12 PM
login to phpmyadmin and look on the right if the tables have any prefix like vb_

Now with this query you try to alter in
my_forum1.


hi please could you includer a screenshot as i dont know where to look thanks

sarkar
09-10-2008, 02:24 PM
https://vborg.vbsupport.ru/external/2008/09/44.jpg

U see here the table prefix is vb_

If u dont have anythin, then ur table prefix is blank.

steve1966
09-10-2008, 02:37 PM
https://vborg.vbsupport.ru/external/2008/09/44.jpg

U see here the table prefix is vb_

If u dont have anythin, then ur table prefix is blank.

thanks it worked my prefix was blank

sarkar
09-10-2008, 02:42 PM
thanks it worked my prefix was blank

No problems. Always here to help.

steve1966
09-10-2008, 02:49 PM
Juts one more question please i have recieved the pm to report my dead links

http://myforum/forums/vbbot/showthread.php?t=137

and i have thislink above but when i click on it the link is dead have i forgot to edit something in the php file ? thanks

Dman91
09-10-2008, 02:59 PM
I dont understand, please explain more clearly... and pm me your bot.php file.

steve1966
09-10-2008, 03:18 PM
I dont understand, please explain more clearly... and pm me your bot.php file.


Hi i have pm you my file here is the mesaage i recieve when i click on this link

http://my forum/forums/vbbot/showthread.php?t=256

it does not connect to anywhere



I have moved your topic to trash
Hey,I'm the LC Bot.
Your topic has been moved to trash since the links in it were dead.
Please check it out.If u suppose the I am wrong, don't PM me, but PM any of the staff members of the site
http://my forum/forums/vbbot/showthread.php?t=256

Dman91
09-10-2008, 03:24 PM
steve,
$showurl = 'http://www.yourdomain.com/forums/vbbot/showthread.php?t='; //Your URL
needs to be
$showurl = 'http://www.yourdomain.com/forums/showthread.php?t='; //Your URL
Regards,
Dman

steve1966
09-10-2008, 03:25 PM
many thanks

steve1966
09-10-2008, 03:28 PM
last question should the working links on my forum show now as checked because i have not seen any posts that say the links have been checked the bot has sent the dead links to trash

Dman91
09-10-2008, 03:29 PM
It should...

steve1966
09-10-2008, 03:35 PM
i used my userid here is that correct ?

$botid = '1'; //Userid of bot

thanks

Dman91
09-10-2008, 03:39 PM
yeah thats fine.

steve1966
09-10-2008, 03:56 PM
It should...

i have looked to see if there is a posts that says linked checke d i still cannot find one ?

fordsho
09-10-2008, 04:25 PM
Hello Dman installed and a great hack just ran into 1 problem.

Bot ran for around 30mins then stopped.

Now every time i try to run the bot now i get the following error.


Using Method where time_check is 0
Active : http://rapidshare.com/files/45298518/HPTDH.part01.raror

Fatal error: Call to undefined function curl_init() in /home/forum/public_html/vbbot.php on line 64

Dman91
09-10-2008, 06:18 PM
Ask your administrator to install cURL in PHP.

rmxs
09-10-2008, 07:08 PM
Replace:

$qu2 = mysql_query("SELECT `pagetext`, `userid` , `username` FROM `".$prefix."post` WHERE `postid` = '$pid'");

With this:

$qu2 = mysql_query("SELECT `pagetext`, `userid` , `username` FROM `".$prefix."post` WHERE `postid` = '$pid'") or die(mysql_error());

And please report back what you get.



This error will be fixed in the next release.
Till now after 500 threads check no error

rmxs
09-10-2008, 07:15 PM
I try to find in the code what happening when in post with 10 links 2 its dead..byt nothing found..
FInally whats happening?

iPodHacking.com
09-10-2008, 07:48 PM
Hey i am getting this error
Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/vbbot.php on line 37

Can anyone help?

pierians
09-10-2008, 07:49 PM
Thnx a lot!
Works perfect on 3.7.1

rmxs
09-10-2008, 07:49 PM
Hey i am getting this error
Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/vbbot.php on line 37

Can anyone help?
Replace with this

Links checked on ' . date('d/m/y'). ' by Link Check Bot'; //This will append this at the end of the checked post

rmxs
09-10-2008, 07:52 PM
If i make this `forumid` = 2 OR `forumid` = 3 OR `forumid` = 4 OR `forumid` = 5 OR `forumid` = 6

Its ok for more forums search?

iPodHacking.com
09-10-2008, 08:00 PM
I am still getting the same error. Even when replaceing that

rmxs
09-10-2008, 08:19 PM
Replace also this...

// Start of user defined variables
$trash = '209'; //Forum id of trash
$botid = '3'; //Userid of bot
$botname = 'Port_Wolf_Check'; //Username of bot
$check = '`forumid` = 222'; //Forums to check
$pa = '

Make sure that you dont have delete any ; or $

iPodHacking.com
09-10-2008, 08:23 PM
Ok i did that now i get this
"Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/mysite/public_html/vbbot.php on line 26

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 123

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 128
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 146

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/mysite/public_html/vbbot.php on line 293"

rmxs
09-10-2008, 08:33 PM
Ok i did that now i get this
"Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/mysite/public_html/vbbot.php on line 26

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 123

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 128
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 146

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/mysite/public_html/vbbot.php on line 293"
Ok create a folder at your forum root with name exp. BOT chmod this folder to 777

Change line ~28 with require_once "../includes/config.php"; //assumes this is in vb folder

you access now with domain.com/BOT/bot.php

iPodHacking.com
09-10-2008, 08:45 PM
ok thanks. Now i get this
Bot is running

Is that normal

iPodHacking.com
09-10-2008, 08:50 PM
also does this check links in [code] tags?

rmxs
09-10-2008, 08:55 PM
Yes work on code..

If you get this message there is the log file in the folder try this /bot.php?deletefile

and then run the bot again

fordsho
09-10-2008, 08:58 PM
Ask your administrator to install cURL in PHP.

Thanks Dman rebuilding apache now.

fordsho
09-10-2008, 09:07 PM
OK question what is the best way to set the bot to run every 24hrs.

Im guessing Scheduled Task Manager and set one to run every 24hrs then one to delete every 23hrs sound good?

iPodHacking.com
09-10-2008, 09:15 PM
Yes work on code..

If you get this message there is the log file in the folder try this /bot.php?deletefile

and then run the bot again

OK thanks

iPodHacking.com
09-10-2008, 09:16 PM
Also. Do i have to run the script manually to make it check the links. Or does it do it by its self?

f4vn
09-10-2008, 10:46 PM
What happen if my board's thousands of threads and ~10 links in each thread ... when you run this bot may be it become a DDoS tool :D

iPodHacking.com
09-10-2008, 11:26 PM
Hey when i run the vbbot.php the first time i get this error"Warning: require_once(/includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/bot/vbbot.php on line 28

Fatal error: require_once() [function.require]: Failed opening required '/includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/bot/vbbot.php on line 28"

And if i press refresh it says :Bot is running.
But it hasn't checked any links after running for 3 hours. So i think there might be an error

FRANKTHETANK 2
09-10-2008, 11:35 PM
I keep getting this error when I run my sql queries.

Error

SQL query:

ALTER TABLE `thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist`

MySQL said: Documentation
#1060 - Duplicate column name 'time_check'

Any Idea's

edermix
09-11-2008, 12:19 AM
Thank you friends, succeed, but still left me some doubts:

-- Active status active on the links that are inactive, the right not appear deria Bouncing?

-- The length of time of MySQL is very short: 15 seconds, changed here:

echo 'Now script will pause for 15 seconds';
Sleep (15);

For 50 (sleep) but did not work, I have to be deleting this file and restarting always, to finish?

Thank you!

sarkar
09-11-2008, 01:09 AM
Hey when i run the vbbot.php the first time i get this error"Warning: require_once(/includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/mysite/public_html/bot/vbbot.php on line 28

Fatal error: require_once() [function.require]: Failed opening required '/includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/bot/vbbot.php on line 28"

And if i press refresh it says :Bot is running.
But it hasn't checked any links after running for 3 hours. So i think there might be an error

If its in the directory called exp use ./includes/config.php

I keep getting this error when I run my sql queries.

Error

SQL query:

ALTER TABLE `thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist`

MySQL said: Documentation
#1060 - Duplicate column name 'time_check'

Any Idea's

U have to do it once.

sarkar
09-11-2008, 01:19 AM
Also. Do i have to run the script manually to make it check the links. Or does it do it by its self?

You can set up a cron and make it run every xx hours or minutes

OK question what is the best way to set the bot to run every 24hrs.

Im guessing Scheduled Task Manager and set one to run every 24hrs then one to delete every 23hrs sound good?

Use cron. Its ur call. It depends on ur board size and no of threads and posts to check. Our next version would have the product installer and so I think u can use the vB Task Manager then.

What happen if my board's thousands of threads and ~10 links in each thread ... when you run this bot may be it become a DDoS tool :D

Password protect the directory where the bot lies.. somewhere likke inside admincp a directory called secretstuff :D and password protect it, so that no one else can misuse it.

Skavenger
09-11-2008, 02:11 AM
Our next version would have the product installer
I'll be waiting for that :)

rmxs
09-11-2008, 06:48 AM
Sugestion:

What i thing its good for all.
When you make the product i dont know how you thing is the working progress byt all i thing we have 10 or more differect link categories like music movies or software..

User select to run the script...
Script reply With enter the forum number to check enter the trash can number..

with this way every forum can have differect trash can and th user doesnt need to change all the time the trash id.

What you thing?

rmxs
09-11-2008, 07:03 AM
Something that i forget..

How can i change check method?

pierians
09-11-2008, 07:04 AM
The script freezes after five minutes of checking and then i have to run the
vbbot.php?deletefile script and then the vbbot.php again manually.

What is the problem?

EDIT

I Don't even get the "Now script will pause for 15 seconds" message, the script just freezes.

Dman91
09-11-2008, 08:35 AM
@rxms you cannot change the check method one all new topics have been checked run the bot once again to check old topics...
Question : Would you guys like a feature to change methods ?
@pierians you are facing the classic rs error. (It happens when rs links dont respond to fix this)
You can either ignore this topic or delete it (to know how to ignore read the faq in maxwcoders.)
how did i find out what topic its hanging at ?
i replaced

$tid = $re1['threadid'];
by

$tid = $re1['threadid'];
echo $tid;
exit();
so it would just tell me the value of $tid and stop and you can make the necessary action now replace

$tid = $re1['threadid'];
echo $tid;
exit();
by

$tid = $re1['threadid'];
Edit : You have just given me an idea for debug mode - thanks

steve1966
09-11-2008, 08:36 AM
its a shame this did not work for me as I imported my board from phpbb all posts from that earlier time was not being picked up and it sent hundreds of working links to the junk

i had to restore my forum because there was far too many links for me to move back

Dman91
09-11-2008, 08:38 AM
Yeah because i told you had an option to prune old posts (most of them would have dead links)

pierians
09-11-2008, 08:52 AM
so it would just tell me the value of $tid and stop and you can make the necessary action now replace

$tid = $re1['threadid'];
echo $tid;
exit();
by

$tid = $re1['threadid'];
Edit : You have just given me an idea for debug mode - thanks

So, to see if i got it right, the only thing i have to do, to stop hanging, is to replace this code


$tid = $re1['threadid'];
echo $tid;
exit();

with that one?


$tid = $re1['threadid'];

Dman91
09-11-2008, 08:54 AM
Yes after you have deleted/ignored topic

pierians
09-11-2008, 09:08 AM
Hmm, when it frozed i runned the deletescript so i don't excactly know which threads are problematic...
So this doesn't help me a lot :-(

Sorry i now saw that you told me how to do this in your previous post.

The thing i'm doing now, for the script to complete one full search of my site, is:
I've opened 2 tabs one is the vbbot.php and the other is vbbot.php?=delete
and i've made those tabs automatically refresh every five minutes.

rmxs
09-11-2008, 11:06 AM
Question : Would you guys like a feature to change methods ?Ok lets say that i check my forums today..and tomorow rapidshare delete from theold posts some links...what happends if the bot doesnt allow me to scan?..

I thing method must be in hours not in checks ex dont rescan the same topics same day in 2 days etc..Byt this musy be a user option

pierians
09-11-2008, 11:50 AM
Could you add netload.in to the servers in your update?

Nightcast
09-11-2008, 01:49 PM
Thanks, but I will wait for the update.

Dman91
09-11-2008, 04:43 PM
@pierians add this after megaupload (or wherever u want just not the last)
array("netload\.in\/datei[0-9a-z]{32}\/", "download_load"),

pierians
09-11-2008, 04:58 PM
@pierians add this after megaupload (or wherever u want just not the last)
array("netload\.in\/datei[0-9a-z]{32}\/", "download_load"),
THNX!

I have problem with mediafire and ifile files.
They are active but the bot send the threads to thrash...

iPodHacking.com
09-11-2008, 06:42 PM
When i run the delete script i get this error
"Warning: unlink(botruns.txt) [function.unlink]: Permission denied in /home/mysite/public_html/vbbot.php on line 16
File Deleted"

I manually deleted the botruns.txt
And i got this error
Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/mysite/public_html/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/mysite/public_html/vbbot.php on line 26

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/vbbot.php on line 147

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/mysite/public_html/vbbot.php on line 294

This needs major help.

FRANKTHETANK 2
09-11-2008, 06:44 PM
I got it to do the queries now it's time to move on to the next step

FRANKTHETANK 2
09-11-2008, 10:57 PM
I just can't get this to work I'm getting the same problem as IPodHacking.com. And when I did what you said to do to fix the problem it still didn't work. Any other idea's or suggestions.

musicconvict
09-12-2008, 12:16 AM
thank you very much

iPodHacking.com
09-12-2008, 12:47 AM
arse error: syntax error, unexpected T_STRING in /home/*******/public_html/vbbot.php on line 37

// Start of user defined variables
$trash = '46'; //Forum id of trash
$botid = '36'; //Userid of bot
$botname = 'Link Checker Bot'; //Username of bot
$check = '`forumid` != 46 ; //Forums to check
$pa = '
Links checked on '. date('d/m/y'). ' by link checker bot'; //This will append this at the end of the checked post
$ppa = '<br /> Links checked on ' . date('d/m/y'). ' by link checker bot'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
$perd = '75'; //Percent decision variable.
$tr = "More than $perd percent on the links are dead that is why the topic is moved to trash"; // This is the reply in the topic.
$pmt = 'I have moved your topic to trash'; // PM Title
$reportforumid = '5'; //This is where bot will make new topics stating reports
$showurl = 'http://mysite/forumdisplay.php?f=46'; //Your URL
//Check Line 226 to edit PM message.
//End of user defined variables. Don't edit below this line. No really don't.

And i can't figure it out.

sarkar
09-12-2008, 01:08 AM
Hey iPodHacking, can u PM me your bot.php?

And for the errors above for u and Frank I think its a chmod problem, try chmodding the bot and the folder it is in to 777 (or 755 on some hosts) and try it out.

Dman91
09-12-2008, 03:06 AM
Ifile it wasnt included ? Can you give me the file URL of mediafire which bot bins incorrectly.

edermix
09-12-2008, 03:42 AM
My vbbot not send the MP's to users. Everything is set up, how do I?

rmxs
09-12-2008, 04:33 AM
My vbbot not send the MP's to users. Everything is set up, how do I?
Post your bot.php file..

Kaycee123
09-12-2008, 04:43 AM
I ran this last night and it worked great. I'm just a bit confused about exactly how this runs. Just a couple of questions:

When I try to run it again today, I just get a message "Bot is running". Does that mean that the bot is constantly checking links?? Or do I need to run it manually every day? If I delete the botruns.txt file manually I can run the program again but then everyone gets pm's again about their links.

When I look in the botruns.txt file it only has a 1 - is that what its supposed to have?

What does the program do with threads it has already checked? Will it check them again each time it is run? I set the forum where the dead ones were being moved to as one of the forums that isn't checked.

I set up a report forum and got a message the first time I ran it, but nothing since then. Is that normal?

pierians
09-12-2008, 12:48 PM
Ifile it wasnt included ? Can you give me the file URL of mediafire which bot bins incorrectly.

This is the link

http://www.mediafire.com/download.php?uoibezdidyw

steve1966
09-12-2008, 01:00 PM
Yeah because i told you had an option to prune old posts (most of them would have dead links)

yes you are right i am not blaiming this mod its just the way i have my board set up it not working for me

i will try it again when it has been fixed of any bugs it may have now

rmxs
09-12-2008, 05:54 PM
Suggestion..

When the bot fount a dead link and make report post i thing its good idea to add also one line to the original post 1 dead link

Kaycee123
09-12-2008, 09:53 PM
I make a pitcure for this link checker :D

Great - I'm going to use it as Linkbot's avatar loll. Thanks

Dman91
09-13-2008, 05:40 AM
Kaycee read the faq in maxwcoders it will answer most of the questions.
@pierians try decreasing sleep time of topic from 100 to 75

Skierpetros
09-13-2008, 11:58 AM
i use it but it teel me now bot is running "???

esperone
09-13-2008, 12:16 PM
This works great for me and scanned over 5,000 posts with no problem but for some reason the bot doesn't append the "Links checked on .... by link checker bot" message to the posts.

Any ideas?

Thanks for this mod.

Dman91
09-13-2008, 01:24 PM
No ideas tbh... PM me your bot.php file
@Skierpetros - Read the FAQ at MaxWCoders

edermix
09-13-2008, 04:12 PM
Post your bot.php file..

Ok my dear:

86845

Very Thanks. I look forward to in their analysis

Cust0ms
09-13-2008, 06:25 PM
Hello,
Is it possible to move posts with dead links to specyfic forum?

esperone
09-13-2008, 06:28 PM
Hello,
Is it possible to move posts with dead links to specyfic forum?

yes. read the install instructions and it tells you there

Cust0ms
09-13-2008, 07:34 PM
When I try to run script I receive such error:
Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/www/domains/myboard.nl/public_html/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/www/domains/myboard.nl/public_html/vbbot.php on line 26
Using Method where it seems that all topics have been checked.

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/www/domains/myboard.nl/public_html/vbbot.php on line 294

Can anyone help me?

vietdjclub
09-14-2008, 02:18 AM
i created full setting via vbulettin option, i also change the method to check. reduce SQL query

CHECK DEMO Full BOT WITH ACP (http://www.vietdjclub.com/djs/showthread.php?p=625#post625)

iPodHacking.com
09-14-2008, 03:59 AM
WarezVB's Dead Link Checker Bot is much better. This one has so many problems...

edermix
09-14-2008, 04:37 AM
i created full setting via vbulettin option, i also change the method to check. reduce SQL query

CHECK DEMO Full BOT WITH ACP (http://www.vietdjclub.com/djs/showthread.php?p=625#post625)

Well, here is to ask for download?

WarezVB's Dead Link Checker Bot is much better. This one has so many problems...

This is integrated with Vbulletin? What address?

uzeyir
09-14-2008, 04:39 AM
i created full setting via vbulettin option, i also change the method to check. reduce SQL query

CHECK DEMO Full BOT WITH ACP (http://www.vietdjclub.com/djs/showthread.php?p=625#post625)

download link ? :o

Dman91
09-14-2008, 04:58 AM
Well vietdjclub you cannot say you reduced the queries all you are doing is using vb api (which will also use queries maybe more or maybe less... ) Nevertheless you did a good job adding an acp which many people wanted. Well the method to check i never understood what were you changing.
@iPodHacking : We have never forced you to use this bot and we recommend you dont use this bot otherwise it will cause problems on your board. Problems? Just because you dont know how to edit simple php/read the readme this bot has problems? wow. Again, we recommend you dont use the next versions too. Thank You.

sarkar
09-14-2008, 05:10 AM
WarezVB's Dead Link Checker Bot is much better. This one has so many problems...

Not to be rude, but Dman is correct. We had posted the bot here, and it was u who came here and installed the bot. We never told you that you have to do it. So if u don't like it uninstall it and move out of here. Thats all I can say.

Yeah it may be having problems, since its our first go at a vBulletin modification and it can be solved only from user feedback.

esperone
09-14-2008, 08:57 AM
ive had no problems apart from appending and i have that sorted now. truly is a great mod.

sarkar
09-14-2008, 09:06 AM
Thanks esperone.

edermix
09-14-2008, 12:46 PM
Ok my dear:

86845

Very Thanks. I look forward to in their analysis

Thanks esperone.

Please HELP!

iPodHacking.com
09-14-2008, 01:33 PM
Not to be rude, but Dman is correct. We had posted the bot here, and it was u who came here and installed the bot. We never told you that you have to do it. So if u don't like it uninstall it and move out of here. Thats all I can say.

Yeah it may be having problems, since its our first go at a vBulletin modification and it can be solved only from user feedback.

It was my friend who posted the first time. I'm the owner of WarezVB. Our bot supports Rapidshare, Mediafire, Megaupload, Netload, File Factory and Easy-Share. It scans the first post of every thread. If it finds a dead links sends the thread to the Graveyard and sends a PM to the user telling him to update his links (it actually tells him what link was dead). You can also set the number of threads to check per run (it runs via cron job). I don't plan on releasing mine.

https://vborg.vbsupport.ru/external/2008/09/20.png

Well I hope you'll get all the bugs worked out... I would definitively use it, if I didn't have my Dead Link Checker bot.

Dman91
09-14-2008, 03:54 PM
Our does the same except for the threads to run and no ACP atm... (getting worked soon) and the the links which are dead (Which i think is unnecessary use of resources and users can check it themselves. It may not matter in small boards but in big boards it really does.) and it works great with a cronjob and yeah there are no bugs as far as i know. Your friend doesnt know how to edit php files that is why he thinks the mod is buggy

Cust0ms
09-14-2008, 04:30 PM
It was my friend who posted the first time. I'm the owner of WarezVB. Our bot supports Rapidshare, Mediafire, Megaupload, Netload, File Factory and Easy-Share. It scans the first post of every thread. If it finds a dead links sends the thread to the Graveyard and sends a PM to the user telling him to update his links (it actually tells him what link was dead). You can also set the number of threads to check per run (it runs via cron job). I don't plan on releasing mine.
Could you public this mod, please?

hscorp
09-14-2008, 06:01 PM
i got this error alot


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 210
Checked Topic ID : 42

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 43

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 44

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 45

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 46

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 48

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 49

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 50

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 51

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 54

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 55

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 56

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 57

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 58

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 59

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 60

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 61

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 62

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 63

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 64

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 65

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 71

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 67

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 68

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 69

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 70

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 72

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 73

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 74

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 75

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 76

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 77

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 79

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 80

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 81

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 82

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 83

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/e/x/e/123/html/chetos/forum/vbbot.php on line 170
No Relevant Links Found : 84

and it continue to infinty it doesn't stop

whats the problem???

misr.cc
09-14-2008, 07:54 PM
Thanks Man it's work great

== Install ?? Nomin MOTM ==

Edit :- how i can stop it ??
every time i try to run it
i see this ( Bot is running. )

any help ??

iPodHacking.com
09-14-2008, 09:09 PM
OK i decided to have another go at this file. I have been able to work out most of the errors i was getting based on feedback.

but i am still getting this last error and i have no clue why.I have done all the SQL queries and stuff.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 147

inteller2k7
09-14-2008, 10:04 PM
I was curious as to this error:
Fatal error: Call to undefined function curl_init() in /home/forum/public_html/vbbot.php on line 64
i take it this means curl is not installed?

Thanks

esperone
09-14-2008, 10:31 PM
Edit :- how i can stop it ??
every time i try to run it
i see this ( Bot is running. )

any help ??

just add ?deletefile to the end of the bot.php file

(ie. http://www.yoursite.com/vbbot.php?deletefile)

The .txt file will be deleted. Now just run the bot file again and it will restart.

See the authors website which is in the installation file included with the mod.


Hscorp , did you add the mysql tables like the author said to do?

misr.cc
09-14-2008, 11:11 PM
just add ?deletefile to the end of the bot.php file

(ie. http://www.yoursite.com/vbbot.php?deletefile)

The .txt file will be deleted. Now just run the bot file again and it will restart.

See the authors website which is in the installation file included with the mod.


Thanks :) Fixed :D

hscorp
09-15-2008, 12:14 AM
just add ?deletefile to the end of the bot.php file

(ie. http://www.yoursite.com/vbbot.php?deletefile)

The .txt file will be deleted. Now just run the bot file again and it will restart.

See the authors website which is in the installation file included with the mod.


Hscorp , did you add the mysql tables like the author said to do?
yea it was working good with first 25 topics

FRANKTHETANK 2
09-15-2008, 12:51 AM
This is the problem I keep getting any one willing to help me?

When i go to this link
http://www.gaminghax.com/forum/exp.BOT/vbbot.php

I get this error

Warning: require_once(/includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/gamingha/public_html/forum/exp. BOT/vbbot.php on line 28

Fatal error: require_once() [function.require]: Failed opening required '/includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gamingha/public_html/forum/exp. BOT/vbbot.php on line 28

But when I refresh it it says
Bot is running


All i get is a screen saying bot is running. What do I do next, how do I tell that it's working, were do I go to see if it's working.

Dman91
09-15-2008, 02:48 AM
Frankthetank 2 .. check your post on MaxWCoders
HSCorp your mysql connection is timing out... tell your server admin to raise it or wait for next version which will auto connect
The person who got curl_init unknown function, curl is not installed.

Kaycee123
09-15-2008, 05:37 AM
I have tried to set this so that the bot doesn't recheck the forum where the expired links were already put from a previous scan. However, it still is rechecking all those links - have I set something wrong?

// Start of user defined variables
$trash = '146'; //Forum id of trash
$botid = '1015'; //Userid of bot
$botname = 'Linkbak'; //Username of bot
$check = '`forumid` != 47 OR `forumid` != 146';//Forums to check
$pa = '
Links checked on ' . date('d/m/y'). ' by link checker bot'; //This will append this at the end of the checked post
$ppa = '<br /> Links checked on ' . date('d/m/y'). ' by link checker bot'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
$perd = '1'; //Percent decision variable.
$tr = "More than $perd percent on the links are dead that is why the topic is moved to Expired Links"; // This is the reply in the topic.
$pmt = 'I have moved your topic to Expired Links'; // PM Title
$reportforumid = '147'; //This is where bot will make new topics stating reports
$showurl = 'http://www.iwillfollowu2.com/showthread.php?t='; //Your URL
//Check Line 226 to edit PM message.
//End of user defined variables. Don't edit below this line. No really don't.



Also, I try running that delete command to remove the botsrun.txt file but it doesn't remove it.

Dman91
09-15-2008, 06:16 AM
indeed, it was my bad
Replace this by
$check = '`forumid` != 47 OR `forumid` != 146';//Forums to check
Whenever you use != to check, use AND
this
$check = '`forumid` != 47 AND `forumid` != 146';//Forums to check

acco
09-15-2008, 11:23 AM
Has anyone come across a problem with PM's from the link checker?

I get this error msg in firefox when accessing my PM's only from the link checker (it's not a vbulletin error)

The page you are trying to view cannot be

shown because it uses an invalid or unsupported form of compression.

Any ideas?

Talked to 3 of my mods & all except for one say the same thing, they get an error when accessing the PM's from LC.

Checking the database & the PM's are their ok.

Dman91
09-15-2008, 11:31 AM
Well, you are the first one facing this problem and tbh i dont know why is this error caused you may wait for next version.

Kaycee123
09-15-2008, 01:16 PM
indeed, it was my bad
Replace this by
$check = '`forumid` != 47 OR `forumid` != 146';//Forums to check
Whenever you use != to check, use AND
this
$check = '`forumid` != 47 AND `forumid` != 146';//Forums to check

OK, that makes sense - thanks!

FRANKTHETANK 2
09-15-2008, 06:40 PM
If you can't get support here i suggest going to their site and getting support that way. With in five minutes of talking to Dman he got my link checker working. Here is their link.

http://www.maxcoders.com

I can't wait for the updates :)

One question though. What exactly do I do if I want it to check my entire board since I have 1000's of links.

Psylithium
09-15-2008, 08:19 PM
Awesome for a warez site ;D.

Tested, works great.

Thanks.

pnosko31
09-15-2008, 10:26 PM
was working great then all of a sudden:

Fatal error: Call to undefined function: curl_init()

(yes I have curl - and it worked just fine for a few hundred threads till it decided to crap out on me...)

acco
09-16-2008, 12:03 AM
Well, you are the first one facing this problem and tbh i dont know why is this error caused you may wait for next version.

I think I may of found the reason for why I get errors with the pm system & LC but I'm not hot on this stuff & I wouldn't know why my forum use a slightly different way when it comes to this little snippit of code within your php.

$pma = "a:1:{s:2:\"cc\";a:1:{i:$uid;s:4:\"$uname\";}}";

looking at PM's pulled from the read pms hack I see this for working PM's a:1:{s:2:"cc";a:1:{i:1;s:6:"acco";}}
and this from the LCa:1:{s:2:"cc";a:1:{i:1;s:4:"acco";}}

Am I on to it?

Thanks
acco

pnosko31
09-16-2008, 01:17 AM
was working great then all of a sudden:

Fatal error: Call to undefined function: curl_init()

(yes I have curl - and it worked just fine for a few hundred threads till it decided to crap out on me...)

ok I got it back working. the problem only happens with megashare links

exel
09-16-2008, 01:39 AM
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/ultimate/public_html/forum/vbbot.php on line 36

edermix
09-16-2008, 01:52 AM
Well, here is to ask for download?

This is integrated with Vbulletin? What address?

Ok my dear:

86845

Very Thanks. I look forward to in their analysis

Please!

Skavenger
09-16-2008, 02:21 AM
Is there any way to disable bot's posts and PM system?


OK i decided to have another go at this file. I have been able to work out most of the errors i was getting based on feedback.

but i am still getting this last error and i have no clue why.I have done all the SQL queries and stuff.


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/botruns/vbbot.php on line 147

I had the same problem and I solved it editing the following line:

$check = '`forumid` = 144'; //Forums to check

Just make sure you have one ID or the right syntax to check more than one forum.

Dman91
09-16-2008, 04:09 AM
Try this code acco
$pma = "a:1:{s:2:\"cc\";a:1:{i:$uid;s:$botid:\"$uname\";}}";

pnosko31
09-17-2008, 06:45 AM
so is it safe to assume that everytime this is run it is going to add the "Link checked" tag to the post? so eventually it will be posted numerous times on the thread?

Nightcast
09-17-2008, 11:45 AM
Ok So I couldn't wait for a update and had to test it out.
Well IT works great, thanks. :D

Can't wait for one threw acp.

I'll donate once I get some money in my paypal.

Dman91
09-17-2008, 01:22 PM
Nah it has a preg_replace to replace all previous messages.

uzeyir
09-17-2008, 01:28 PM
can we specify it to check the forums that is chosen by us for example making it check forums from 1 to 190.I'll be waiting your replies.regards

Dman91
09-17-2008, 04:14 PM
Yes.

kud0gfx
09-19-2008, 08:40 AM
i get this error when it have checked about 100 links:



Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pordesca/domains/pordescargadirecta.com/public_html/foro/bot/bot.php on line 210
Checked Topic ID : 1858

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/pordesca/domains/pordescargadirecta.com/public_html/foro/bot/bot.php on line 170
No Relevant Links Found : 1902

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/pordesca/domains/pordescargadirecta.com/public_html/foro/bot/bot.php on line 170
No Relevant Links Found : 2060

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/pordesca/domains/pordescargadirecta.com/public_html/foro/bot/bot.php on line 170
No Relevant Links Found : 2237

and since then i get all the threads with the same error on line 170

acco
09-19-2008, 08:44 AM
Try this code acco
$pma = "a:1:{s:2:\"cc\";a:1:{i:$uid;s:$botid:\"$uname\";}}";
sorry a bit late with my reply, kids are all sick so I haven't had much time for playing around but I did test above with no luck :(

Seems if I change the code to $pma = "a:1:{s:2:\"cc\";a:1:{i:$uid;s:6:\"$uname\";}}"; the user group 6 get to read the pms no problem but all other user groups still get the error msg.

Thanks for having a look.

acco.

uzeyir
09-19-2008, 12:24 PM
can we specify it to check the forums that is chosen by us for example making it check forums from 1 to 190.I'll be waiting your replies.regards

help me please

inteller2k7
09-19-2008, 12:32 PM
help me please

Yes you can, in the user settings under (// Start of user defined variables)
change this line( $check = '`forumid` = 2'; //Forums to check )
to match your forum numbers:

and for each forum it has to be entered this way,

`forumid` = 2 OR `forumid` = 3 - This will check both forum id 2 and 3

uzeyir
09-19-2008, 12:37 PM
Yes you can, in the user settings under (// Start of user defined variables)
change this line( $check = '`forumid` = 2'; //Forums to check )
to match your forum numbers:

and for each forum it has to be entered this way,

`forumid` = 2 OR `forumid` = 3 - This will check both forum id 2 and 3

all forum check ?

Dman91
09-19-2008, 03:10 PM
Exel, send me your bot.php
pnosko31 - Comment out the megashares array if it doesnt work ;)
edermix - Try using english and not your language and report back if it works
acco - I will fix this in next version

kud0gfx
09-19-2008, 03:57 PM
Dman, no answer for me? :(

ShadowAssassin
09-19-2008, 04:12 PM
Damn, This is soo confusing to setup, why can't you make a product, and we import it, its much easier ;)

chaot1c
09-19-2008, 06:36 PM
When it PM's a member, I get a PHP error at the top(don't have the error, because I uninstalled the script for now)
and it sends them the wrong threadid, is there a way to fix this?

Skavenger
09-19-2008, 07:09 PM
Any news about the product with ACP config?

Also,
Is there any way to disable bot's posts and PM system?

vietdjclub
09-19-2008, 11:07 PM
Any news about the product with ACP config?

Also,

read here
https://vborg.vbsupport.ru/showpost.php?p=1621649&postcount=118

Skavenger
09-20-2008, 12:16 AM
read here
https://vborg.vbsupport.ru/showpost.php?p=1621649&postcount=118

I saw that a few days ago, but there is no download link there and I don't understand why you are still linking to that page and not releasing the mod here.

vietdjclub
09-20-2008, 12:31 AM
i want to post new thread but the author is not accepting.

d0nbiz
09-20-2008, 01:39 AM
I get the following error when attempting to run vbbot.php



Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/MYUSERNAME/public_html/forum/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/MYUSERNAME/public_html/forum/vbbot.php on line 26
Using Method where it seems that all topics have been checked.

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/MYUSERNAME/public_html/forum/vbbot.php on line 294

Dman91
09-20-2008, 03:05 AM
@kud0gfx - Well, the mysql is timing out... so you can wait for next version or ask your server admin to increase mysql timeout
@vietdjclub - I told you 100 times, to PM me to release and i would give you appropriate credits, if you dont agree to that let me know and i will be making acp on my own.
@d0nbiz - Read the FAQ at MaxWCoders

d0nbiz
09-20-2008, 04:32 AM
I fixed the first error by adding botruns.txt

;
Now I'm getting this error when I try to run it:

Parse error: syntax error, unexpected '=' in /home/MYUSERNAME/public_html/forum/vbbot.php on line 35

kud0gfx
09-20-2008, 10:55 AM
@kud0gfx - Well, the mysql is timing out... so you can wait for next version or ask your server admin to increase mysql timeout

Thx Dman, i will ask to my server admin, and if he can't ill wiat for next version ;)

Thanks for sharing this great mod!

pierians
09-20-2008, 03:59 PM
I have a suggestion to make for the next version...

When you check a thread for 2nd/3rd/4th etc time it edits again the post adding the new date, but it also keeps the edit from previous check.

For example:

Links Checked On: 10/09/08 By Link Checker Bot


Links Checked On: 15/09/08 By Link Checker Bot

So my suggestion is that the bot overwright the previous message instead of adding a new one.

rmxs
09-20-2008, 04:07 PM
Correct..

After 2 years maybe our boards have 100 links :)

pnosko31
09-20-2008, 11:30 PM
I have a suggestion to make for the next version...

When you check a thread for 2nd/3rd/4th etc time it edits again the post adding the new date, but it also keeps the edit from previous check.

For example:


So my suggestion is that the bot overwright the previous message instead of adding a new one.

actually it shouldn't unless you have modified some of the text. It overwrites the text when I use it.

pnosko31
09-20-2008, 11:31 PM
read here
https://vborg.vbsupport.ru/showpost.php?p=1621649&postcount=118

if your not going to share then stop posting it

Dman91
09-21-2008, 03:04 AM
pierians this should already be replaced if the board is not replacing you have modified the line that bot posts and forgot to edit it in preg_replace
d0nbiz - PM me bot.php file
Here is something for your reference
$pa = '
Links checked on ' . date('d/m/y'). ' at '. date('H:i') . ' by RapidW Bot'; //This will append this at the end of the checked post
Second Edit
$ppa = '<br /> <b>Links checked on ' . date('d/m/y'). ' at '. date('H:i') . ' by RapidW Bot</b>'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
Third Edit (Needs to match with $pa and escaping
$post = preg_replace("/\[b\]Links checked on(.+)by RapidW Bot\[\/b\]/" , "" , $post); //Replace if it is already checked by LC bot
Fourth Edit (Needs to match with $ppa and escaping)
$postparsed = preg_replace("/\<br \/\> \<b\>Links checked on(.+)by RapidW Bot\<\/b\>/" , "" , $postparsed);
Note : (.+) Will match anything ;)

Skavenger
09-21-2008, 03:16 AM
I have tested this in localhost and worked fine, but when I run the script in my live site the page keeps loading and nothing happen. How can I fix this?

Thanks

Dman91
09-21-2008, 03:25 AM
Just keeps on loading says nothing?

Skavenger
09-21-2008, 03:56 AM
Just keeps on loading says nothing?
Yes, just that.

Conner85
09-22-2008, 03:54 AM
This is by far the best and most stable version of this script I've seen. Buuuuuuuuuuuuuut.. lol.

There's always something. But this isn't that big of a problem, and can probably be fixed easily.

This bot is binning links that are alive as well as dead links.

Should I send you my vbbot.php file?

Dman91
09-22-2008, 03:06 PM
Conner85, you need to give me some more info is it binning megashares links which are good ? If yes, create a new folder chmod 777 move bot to that folder and try running it. This happens because cookie file which is required for megashares is sometimes not created.

pierians
09-22-2008, 03:30 PM
Dman91 i've sent you my vbbot.php via pm because it keeps double edit my thread and does not replace the previous edits.
Could you fix this for me please?

Dman91
09-22-2008, 05:10 PM
pierians, check pm.

Conner85
09-22-2008, 05:40 PM
It's binning RS links which are good. 100% of the links are alive and it still goes to the trash. I saw some MU links but they were good too. But mainly just 2 full pages of RS. Should I try creating a new folder anyway?

Dman91
09-23-2008, 07:48 AM
Nah that shouldnt affect did it give any error while checking those links ?

Conner85
09-24-2008, 08:24 PM
Nope. It just binned like 2 pages worth of posts with 100% alive links.. lol.

Should I send you my file?

Cust0ms
09-24-2008, 10:51 PM
looool
This shit removed ~5k threads with 100% works links!! :/ What now?!

Conner85
09-24-2008, 11:14 PM
If you would be patient, he is probably going to help us both out with that same problem. And this mod isnt "s***", it's one of the best mods on this site. And for any new release, it will have bugs. But a comment like what you just made is showing no appreciation for the people who actually code things for unappreciative people as yourself. So learn to code this stuff yourself or learn to appreciate the people who code it for you, whether it works for you or not. Doesn't mean it doesn't work for other people.. who have actually stated that it does in fact work if you would read the whole thread.

Cust0ms
09-25-2008, 10:46 AM
Ok, sorry... but I lost a lot of posts included good rs.com links...

pierians
09-25-2008, 07:51 PM
Hello again, i have one problem.
I changed the php file so that the edit that bot makes is like this

Links Checked On: 25/9/08 By Link Checker Bot


$pa = '


Links Checked On: ' . date('d/m/y'). ' By Link Checker Bot'; //This will append this at the end of the checked post

I tried to edit also the post preg like this

$post = preg_replace("/Links Checked On(.+)By Link Checker Bot/"

and also in html

$post = preg_replace("/<b>Links Checked On<i>(.+)</i>By Link Checker Bot</b>


But when i check for 2nd time a topic two things happen.

1) The bot double edits the post and as a result there are 2 edits of the bot inside the post.
For example "
Links checked on 24/09/08 by link checker bot
Links checked on 25/09/08 by link checker bot "

Or

2) The hole post vanishes and the only thing left is the edit by the bot...

Could you please help me?

TrevsRevenge
09-26-2008, 12:30 AM
sarkar and Dman91 First off this scritp rocks it works perfect it does timeout after a couple of minutes but using the delete botruns.txt and restarting the script it's a piece of cake. My Question to you guys is what can I strip out of this script to stop the pm's to the members after a post has been binned. The reason i ask this is I did one small section on my board and I must have gotten 500 Pm's alot of my staff asked me to take this option out. You can pm me or post the code I need to remove. Big Thanks guys I will be donating on your board you have made our lives alot easier.

Trev

Dman91
09-26-2008, 10:17 AM
@TrevsRevenge - remove this
$pms = "Hey,I'm the LC Bot. \n Your topic has been moved to trash since the links in it were dead. \n Please check it out.If u suppose the I am wrong, don't PM me, but PM any of the staff members of the site \n";
$pms .= "$realurl" . ' ('$realurl')';
$pma = "a:1:{s:2:\"cc\";a:1:{i:$uid;s:4:\"$uname\";}}";
$pms = mysql_real_escape_string($pms);
$pma = mysql_real_escape_string($pma);
and
//Pm user
$qu6 = mysql_query("INSERT INTO `".$prefix."pmtext` (`fromuserid`, `fromusername` , `title` , `message` , `dateline` , `touserarray`) VALUES ('$botid' , '$botname' , '$pmt' , '$pms', ".time()." , '$pma')");
$qu7 = mysql_query("SELECT `pmtextid` FROM `".$prefix."pmtext` WHERE `message` = '$pms'");
$re7 = mysql_fetch_assoc($qu7);
$pmtextid = $re7['pmtextid'];
$qu8 = mysql_query("INSERT INTO `".$prefix."pm` (`pmtextid`, `userid`, `folderid`, `messageread`) VALUES ('$pmtextid' , '$uid' , '0' , '0')");
$qu9 = mysql_query("UPDATE `".$prefix."user` SET `pmtotal` = `pmtotal` + 1 , `pmunread` = `pmunread` + 1 WHERE `userid` = '$uid'"); About the timeout issue you can either tell your server admin to increase mysql timeout setting or wait for next version
@pierians - Check PM

hscorp
09-28-2008, 06:31 AM
when the next version will come a live?

iPodHacking.com
09-28-2008, 02:10 PM
soon

hscorp
09-28-2008, 08:01 PM
i had another problem

it works fine sometimes but sometimes stop in the middle with no error or reasons

anyhelp? :)

dreads
09-28-2008, 08:55 PM
it can also be leaked by a private host 0o

thats happened to me before

Anyhow its a pretty good script :D

Dman91
09-29-2008, 10:49 AM
@hscorp - Read my post on timeout somewhere...

hscorp
10-01-2008, 01:04 AM
thanks Dman

i have another question can i run it from another server? how do i connect it with the forum server

what i mean for example server 1 have the forum so i'll put the bot on server 2 how can i connect them?

Dman91
10-01-2008, 03:02 AM
mysql remote access....

hscorp
10-02-2008, 07:14 AM
i got a bug i think

in megashares if all slots currently filled the bot will see it as broken link

the bot said deleted and when i checked the link i got this

"Your Download Passport is: 8a57a602f6f811466a89dacc48a439e9
You have 250 MB left that you can download with this passport.
Your download passport will renew in 0:116:18.

Megashares Link Information:
All download slots for this link are currently filled.
Please try again momentarily."

and i'm sure about the 777 permission and i see the 1 file at my bot folder that i think is the cookies file for megashares so everything is fine

Dman91
10-02-2008, 08:44 AM
Possible, can you link me to the file ?

hscorp
10-02-2008, 08:41 PM
http://d01.megashares.com/?d01=46a69cf
http://d01.megashares.com/?d01=27460a2

this links the bot says they are dead

Dman91
10-03-2008, 03:26 AM
array("megashares\.com\/\?d01=", "(Click here to download|This link's filesize is larger than what you have left on your Passport|All download slots for this link are currently filled)"),

DungBeetle
10-03-2008, 11:14 PM
first, thanks for great mode. I have one question. Everything works fine, but if I have a thread with more post inside, it send me all thread to trash even is only one link dead and the rest of post have valid links. how I will fixed this?

Dman91
10-04-2008, 12:10 PM
It only checks first post so you cant help it...

DungBeetle
10-04-2008, 03:15 PM
Its maybe possible to make something like this but to report post, not moved to trash?

thanks for support

Rocc
10-04-2008, 04:01 PM
I have it trying to run, I believe I configured it correctly but I get
Parse error: syntax error, unexpected T_STRING in /home/xlabrocc/public_html/vbbot.php on line 37
I have
Links checked on ' date('m/d/y') ' by link checker bot'; //This will append this at the end of the checked post
on line 37, any help?

coberr
10-04-2008, 08:06 PM
Thanks for this modifications :)

I want to change the title of the reported thread Post Reported by Bot to
Post Reported in $[forumtitle]

coberr
10-04-2008, 11:02 PM
It only checks first post so you cant help it...

please make to checks all post in thread in next version

Its maybe possible to make something like this but to report post, not moved to trash?

thanks for support

yes it's possible :

$perd = '101'; //Percent decision variable

dtommy79
10-08-2008, 08:51 PM
Hi,

Thanks for the mod.

Unfortunately, I can't get it to work.

Could please someone check my settings?

require_once "includes/config.php"; //assumes this is in vb folder
set_time_limit(0);

// Start of user defined variables
$trash = '21'; //Forum id of trash
$botid = '1'; //Userid of bot
$botname = 'Bot'; //Username of bot
$check = '`forumid` = 10 OR `forumid` = 44 OR `forumid` = 11 OR `forumid` = 18 OR `forumid` = 15 OR `forumid` = 16 OR `forumid` = 14 OR `forumid` = 17 OR `forumid` = 19 OR `forumid` = 22 OR `forumid` = 23 OR `forumid` = 47 OR `forumid` = 48 OR `forumid` = 26 OR `forumid` = 49 OR `forumid` = 31 OR `forumid` = 27 OR `forumid` = 28 OR `forumid` = 29 OR `forumid` = 30 OR `forumid` = 32 OR `forumid` = 45'; //Forums to check
$pa = '
Links checked ' . date('d/m/y'). ' by link checker bot'; //This will append this at the end of the checked post
$ppa = '<br /> Links checked on ' . date('d/m/y'). ' by link checker bot'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
$perd = '75'; //Percent decision variable.
$tr = "More than $perd percent on the links are dead that is why the topic is moved to trash"; // This is the reply in the topic.
$pmt = 'I have moved your topic to trash'; // PM Title
$reportforumid = '9'; //This is where bot will make new topics stating reports
$showurl = 'http://mysite.com/forum/bot/showthread.php?t='; //Your URL
//Check Line 226 to edit PM message.
//End of user defined variables. Don't edit below this line. No really don't.

My vb is installed in the 'forum' directory, and I put the vbbot.php in a dir called 'forum/bot'

Dman91
10-13-2008, 06:32 AM
Hello sorry for late reply, i have been busy with other projects.
@DungBeetle - Why would you need that ?
@Rocc - PM me your bot file.
@Skavenger - No idea ask your host

Nightcast
10-14-2008, 07:10 PM
Still working great, Any news on a update?

Thanks again.

sarkar
10-15-2008, 02:05 AM
Update would take some time, we are quite busy with real life, and for the time being providing support only. The update process is slow, but going on.

andrewtr89
10-17-2008, 06:38 PM
Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/isocube1/public_html/forum/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/isocube1/public_html/forum/vbbot.php on line 26

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 147

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/isocube1/public_html/forum/vbbot.php on line 294

I am getting that error message. Anyone know why?

x0r
10-17-2008, 07:17 PM
i have this one error

it shows up when viewing private message from bot

Warning: Invalid argument supplied for foreach() in [path]/private.php on line 1523

BiZiMDiYaR
10-17-2008, 09:20 PM
Hi,

Thanks for this and I have downloaded it and testing it on my testing forum, but it also deletes good links.. which I personally tested... So why it it deleting links that are working , any idea ? Please help and thanks.

See below for the code in de php file. I put in 1 topic 3 links and did this three times and everytime with a different mistake in it... so I tested according 33% not ok, 66% not ok and in the end 100% not ok, but it moved all topic to the trash :-). Also can't it edit the original topic and add a text in below, link checked... insteaf of opening another thread in below ?

Thanks.

// Start of user defined variables
$trash = '14'; //Forum id of trash
$botid = '6'; //Userid of bot
$botname = 'LinkChecker'; //Username of bot
$check = '`forumid` != 9'; //Forums to check
$pa = '
Linkler Control edildi ' . date('d/m/y'). ' Adim Link, LinkChecker, Unutma bunu :-)'; //This will append this at the end of the checked post
$ppa = '<br /> Links checked on ' . date('d/m/y'). ' by link checker bot'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
$perd = '75'; //Percent decision variable.
$tr = "More than $perd percent on the links are dead that is why the topic is moved to trash"; // This is the reply in the topic.
$pmt = 'I have moved your topic to trash'; // PM Title
$reportforumid = '15'; //This is where bot will make new topics stating reports

sarkar
10-18-2008, 03:33 AM
Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in

/home/isocube1/public_html/forum/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/isocube1/public_html/forum/vbbot.php

on line 26

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

/home/isocube1/public_html/forum/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

/home/isocube1/public_html/forum/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in

/home/isocube1/public_html/forum/vbbot.php on line 147

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in

/home/isocube1/public_html/forum/vbbot.php on line 294

I am getting that error message. Anyone know why?

Permission denied is supposedly you don't have fopen permissions or u haven't chmodded the folder where the bot is to write in there. Trying chmodding the folder to 777 (If after chmodding to 777 u get an Internal Server Error, chmod the same folder to 755 since mod_security is installed on the server) and then try again.

i have this one error

it shows up when viewing private message from bot

Warning: Invalid argument supplied for foreach() in [path]/private.php on line 1523

Have you set the path properly?

PM you bot.php file to me or Dman91

Hi,

Thanks for this and I have downloaded it and testing it on my testing forum, but it also deletes good links..

which I personally tested... So why it it deleting links that are working , any idea ? Please help and thanks.

See below for the code in de php file. I put in 1 topic 3 links and did this three times and everytime with a

different mistake in it... so I tested according 33% not ok, 66% not ok and in the end 100% not ok, but it moved

all topic to the trash :-). Also can't it edit the original topic and add a text in below, link checked...

insteaf of opening another thread in below ?

Thanks.


// Start of user defined variables
$trash = '14'; //Forum id of trash
$botid = '6'; //Userid of bot
$botname = 'LinkChecker'; //Username of bot
$check = '`forumid` != 9'; //Forums to check
$pa = '
Linkler Control edildi ' . date('d/m/y'). ' Adim Link, LinkChecker, Unutma bunu :-)'; //This will append this at

the end of the checked post
$ppa = '<br /> Links checked on ' . date('d/m/y'). ' by link checker bot'; //VB uses a caching technique, this

will append it to end of parsed post. This is HTML!
$perd = '75'; //Percent decision variable.
$tr = "More than $perd percent on the links are dead that is why the topic is moved to trash"; // This is the

reply in the topic.
$pmt = 'I have moved your topic to trash'; // PM Title
$reportforumid = '15'; //This is where bot will make new topics stating reports

What links are it binning, PM them to me.

Dman91
10-18-2008, 04:12 AM
@andrewtr89 - Read FAQ at MaxWCoders.
@x0r - This is a bug in current version to be fixed in next release.
@BiZiMDiYaR - PM me the links it bins also does it give any error while checking links are links megashares ?

JetHaCkR
10-18-2008, 07:42 PM
WHat do i run in phpmyadmin to uninstall this

RobbieZ
10-18-2008, 07:57 PM
Hey Dman

I have some questions.

Does this check for these in threads? [url=http://www.example

Will it only check the first page ?

Can i get it to only check certain parts of my forum? eg. not the dead link part of my forum!

mac-warez
10-18-2008, 09:00 PM
Yes you can set it to check only certain forums. IT only checks the first post as of now.Yes it also checks the [url] code along with [code]

RobbieZ
10-18-2008, 09:16 PM
thanks mac.

I had url checker installed but i have over 15,000 url links on my forum and when i run it.. the dang thing hangs and errors out.

So im looking to run yours :D

mac-warez
10-18-2008, 09:33 PM
It's not mine but i know alot about the script. It will take about 1 hour to check all links the first time

BiZiMDiYaR
10-19-2008, 09:56 AM
Hi,

I send the info you wanted per pm... please advise why all the links are mentioned dead. Anything I need to change or do.. open port.. ? Anything ? Thanks.

chaot1c
10-20-2008, 12:49 AM
It's not mine but i know alot about the script. It will take about 1 hour to check all links the first time

That's terrible... WarezVB's Dead Link Checker bot could probably do 10,000 threads in an hour, maybe more. I have their dead link checker bot on my site.

mac-warez
10-21-2008, 12:26 AM
OOoohhh I want it

BiZiMDiYaR
10-21-2008, 12:51 AM
Hi,

I have PM'ed to 2 persons but nobody reply on it. Doesn't this work.. ? I have deleted this from the test forum as nobody is replying this.

Thanks.

andrewtr89
10-23-2008, 01:49 PM
Permission denied is supposedly you don't have fopen permissions or u haven't chmodded the folder where the bot is to write in there. Trying chmodding the folder to 777 (If after chmodding to 777 u get an Internal Server Error, chmod the same folder to 755 since mod_security is installed on the server) and then try again.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/isocube1/public_html/forum/vbbot.php on line 147

I think were getting some where :rolleyes:

digitalnorte
10-23-2008, 11:25 PM
I like to mantain the thread in the same place (original forum).
In other words, I don?t like the post move to trash, only receive the PM.

The line:

$trash = 'Enter forum ID here'; //Forum id of trash

Can be as original ?
To not be moved to trash

Thanks ! :D

Distance
10-25-2008, 01:55 AM
Hello,

I am getting the error:


Parse error: syntax error, unexpected T_VARIABLE in /home/***/public_html/upgrid/vbbot.php on line 36


Note: When submitting the sql query I got the following error:

Error

SQL query:

ALTER TABLE `thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' AFTER `taglist` ;

MySQL said: Documentation
#1054 - Unknown column 'taglist' in 'thread'

Any ideas?

Thanks

Dman91
10-25-2008, 05:51 PM
@digitalnorte - Make $perd more than 100
@andrewtr89 - Pm bot file
@Distance - ALTER TABLE `thread` ADD `time_check` INT( 10 ) NOT NULL DEFAULT '0' - run that and PM bot file

zero5854
10-26-2008, 05:35 AM
Thanks for this mod! BUT I Have a question. Is there a way for the bot to have a small message below the links to say it the links are good or not? IE good links bots message is green...bad links message is red?

Thanks

Dman91
10-26-2008, 07:32 AM
Optional feature in next version

digitalnorte
10-26-2008, 02:18 PM
@digitalnorte - Make $perd more than 100


Dman, Thanks so much !
Trying with $perd = 101

With $perd variable more grat than 100 I will receive only the PM.

TKS Again, INSTALLED !
:up:

howcome
10-28-2008, 04:42 PM
i made a folder and chmodded it to 777 and put the vbbot.php in it and get this

Warning: require_once(includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 28

Fatal error: require_once() [function.require]: Failed opening required 'includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 28

i fixed that issue how do you add multiple forums id to be checked i tried i get other errors

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 124

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 129
Using Method where it seems that all topics have been checked.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 147

aranthorn
10-29-2008, 01:51 PM
WHat do i run in phpmyadmin to uninstall this

ALTER TABLE `thread` DROP COLUMN `time_check`;

ALTER TABLE `thread` DROP COLUMN `ignore_check`;

Add your prefix as needed. I couldn't get this hack to work properly so I removed it.

My problem was that I had a lot of forums (about a dozen) I wanted checked and anytime I added them all I got was a 500 error.

Dman91
10-29-2008, 05:20 PM
howcome, PM me bot file

hscorp
10-31-2008, 07:57 PM
i got this error please help me fast


Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/m6wronc/public_html/forum/vbbot.php on line 112
Unable to connect to mysql server.

hscorp
10-31-2008, 09:04 PM
i got this error please help me fast


Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/m6wronc/public_html/forum/vbbot.php on line 112
Unable to connect to mysql server.
hehe i find the problem database server was down

thanks its working fine

howcome
11-02-2008, 07:40 AM
howcome, PM me bot file
i fixed the problems right now im just trying to get it to scan all the froums wit links with out reaching max memory size reached just gotta write all forum id's down and type it all in


Using Method where time_check is 0

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33292288 bytes) in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 76 im also trying to make it not scan trash

SpaMMerGR
11-02-2008, 07:47 AM
i have greek board.. what it did is to replace all the greek letters to ????????????????????????????????? ???????????????????????????????????????

please tell me its fixable and it didnt screw up my board!!!!

stamos2003
11-02-2008, 12:44 PM
i have a greek board too but it did not screw anything up, why should it?

SpaMMerGR
11-02-2008, 02:32 PM
I guess because it was converted from phpbb3 that uses UTF-8 encoding and not ISO like yours..
I tried to convert it to ISO but all greek letters became "?????"

i contacted the developer of the mod, he says i should restore the DB and remove the mod..

Guess im going to wait for the next version that may support UTF8...

hey stamoulis :)

Dman91
11-04-2008, 05:07 AM
@Howcome - https://vborg.vbsupport.ru/showpost.php?p=1619720&postcount=85
@SpaMMerGR - I will try to include utf-8 support..

howcome
11-07-2008, 05:12 AM
@Howcome - https://vborg.vbsupport.ru/showpost.php?p=1619720&postcount=85
@SpaMMerGR - I will try to include utf-8 support..

thanks for your help but i meant that it keeps scanning the graveyard and i keep tryna add the grave yard not check links code and it would still check now i get that max error how to fix?

3DPiMp
11-07-2008, 04:42 PM
i fixed the problems right now im just trying to get it to scan all the froums wit links with out reaching max memory size reached just gotta write all forum id's down and type it all in


Using Method where time_check is 0

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33292288 bytes) in /home2/name/public_html/mysiteurl/forums/bot/vbbot.php on line 76 im also trying to make it not scan trash

i get this same error ... :/ Anyone help?

Dman91
11-08-2008, 03:06 AM
@howcome - Send me your bot file
@3DPiMp - https://vborg.vbsupport.ru/showpost.php?p=1619720&postcount=85