Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vb Linkchecker Bot 1.1 Details »»
vb Linkchecker Bot 1.1
Version: 1.1, by sarkar sarkar is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 09-08-2008 Last Update: 12-09-2008 Installs: 158
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

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.

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






Bot in action




Script support on
Code:
www.maxwcoders.com
Read the glossary included in the RAR and ZIPs.

Get them at
Code:
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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 10-04-2008, 08:06 PM
coberr coberr is offline
 
Join Date: Apr 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this modifications

I want to change the title of the reported thread Post Reported by Bot to
Post Reported in $[forumtitle]
Reply With Quote
  #213  
Old 10-04-2008, 11:02 PM
coberr coberr is offline
 
Join Date: Apr 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dman91 View Post
It only checks first post so you cant help it...
please make to checks all post in thread in next version

Quote:
Originally Posted by DungBeetle View Post
Its maybe possible to make something like this but to report post, not moved to trash?

thanks for support
yes it's possible :
Code:
$perd = '101'; //Percent decision variable
Reply With Quote
  #214  
Old 10-08-2008, 08:51 PM
dtommy79 dtommy79 is offline
 
Join Date: Jul 2007
Location: Hungary
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks for the mod.

Unfortunately, I can't get it to work.

Could please someone check my settings?

PHP Code:
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'
Reply With Quote
  #215  
Old 10-13-2008, 06:32 AM
Dman91 Dman91 is offline
 
Join Date: Sep 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #216  
Old 10-14-2008, 07:10 PM
Nightcast Nightcast is offline
 
Join Date: Apr 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still working great, Any news on a update?

Thanks again.
Reply With Quote
  #217  
Old 10-15-2008, 02:05 AM
sarkar sarkar is offline
 
Join Date: Jan 2006
Location: India
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #218  
Old 10-17-2008, 06:38 PM
andrewtr89 andrewtr89 is offline
 
Join Date: Jan 2007
Location: Colorado
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
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?
Reply With Quote
  #219  
Old 10-17-2008, 07:17 PM
x0r x0r is offline
 
Join Date: Sep 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #220  
Old 10-17-2008, 09:20 PM
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #221  
Old 10-18-2008, 03:33 AM
sarkar sarkar is offline
 
Join Date: Jan 2006
Location: India
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by andrewtr89 View Post
Code:
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.

Quote:
Originally Posted by x0r View Post
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

Quote:
Originally Posted by BiZiMDiYaR View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11791 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete