Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vB Link Checker bot Details »»
vB Link Checker bot
Version: 1.00, by sarkar sarkar is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.x Rating:
Released: 09-08-2008 Last Update: Never Installs: 10
DB Changes
Additional Files  
No support by the author.

MaxWCoders present vB Link Checker Bot 1.0

------------------------------------
DESCRIPTION
------------------------------------

1) Checks Rapidshare.de , Rapidshare.com , Sendspace.com , Megaupload.com , Megashares.com , Depositfiles.com and Mediafire.com links.
Uses file_get_contents for all hosts except megashares to check links. Uses cURL to check megashares because it requires cookies to be set.
2) Works for post uncoded , coded , quoted and using URL BBCode.
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) If no relevant links are found ie no RS and blah blah links it adds to the ignore list. If you want the LC to check ignored links it can be accessed by ?

checki to the url of bot.php
7) Very light weight and just one file and easy to the messages posted , the forums checked.
8) Uses 3 ways to access the posts where first way is
i) The topics have not been checked even once
ii) If first method doesnt work it checks for time difference where it checks the topics where 24 hours have passed after checking.
iii)If second method doesnt work it checks all the topics.
9) The scripts stops for 15 seconds after check 20 topics or 50 links to prevent any wrongful binning and checking.

------------------------------------
CONFIGURATION
------------------------------------

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.

Then configure the user set variables in vbbot.php as follows:

------------------------------------
USER CONFIGURABLE VARIABLES
------------------------------------

require_once "includes/config.php"; //assumes this is in vb folder - path it accordingly
$trash = '4'; //Forum id of trash
$botid = '2'; //Userid of bot
$botname = 'Bot'; //Username of bot
$check = '`forumid` = 2'; //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://maxwcoders.com/vbbot/showthread.php?t='; //Your URL

At around line 250 u'll find 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";

Edit this to change your PM message.

------------------------------------
SUPPORT
------------------------------------

Once this is done, the bot is ready to go. When the bot is run, it will create a botruns.txt which will have some data for stopping multiple instances of the bot to run.

http://yourdomain.com/bot.php?deletefile - This will delete that file and run the bot again... the function of botruns.txt is to prevent another instance of

bot while it is already running.

If everything was done right, the bot will run fine. If have any doubts or errors, please report it and i'll be grateful to sort it out.

------------------------------------
Website: http://www.maxwcoders.com
------------------------------------
Edit : File updated... a bug fixed...
Downloads below as attachments

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 09-09-2008, 06:52 PM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you make a full product including installation
Reply With Quote
  #3  
Old 09-09-2008, 07:08 PM
Dman91 Dman91 is offline
 
Join Date: Sep 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will do in next version.
Reply With Quote
  #4  
Old 09-10-2008, 01:37 AM
FRANKTHETANK 2 FRANKTHETANK 2 is offline
 
Join Date: Sep 2006
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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` ;

Note: Where vb_ is the forum table prefix. Yours may be different so you may need to
change it to mach the prefix of your database tables.

How do i tell if i need to change the vb_ part and what would i need to change it to.
Reply With Quote
  #5  
Old 09-10-2008, 03:04 AM
Dman91 Dman91 is offline
 
Join Date: Sep 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Goto Phpmyadmin see your tables.
Reply With Quote
  #6  
Old 09-10-2008, 11:32 PM
FRANKTHETANK 2 FRANKTHETANK 2 is offline
 
Join Date: Sep 2006
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seen my tables but what do i change it to. I know nothing about databases sorry
Reply With Quote
  #7  
Old 09-11-2008, 01:16 AM
sarkar sarkar is offline
 
Join Date: Jan 2006
Location: India
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Goto phpmyadmin and select the database where vBulletin is installed. U'll see something like this:



U see here the table prefix is vb_

If u dont have anythin, then ur table prefix is blank.
Reply With Quote
  #8  
Old 11-06-2008, 10:13 PM
greatergood greatergood is offline
 
Join Date: Feb 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I have tried to setup this bot and i have run into the following error.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/silentpr/public_html/forums/vbbot.php on line 124 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/silentpr/public_html/forums/vbbot.php on line 147

Can you help me? I am not a noob at this stuff so you don't have to take it easy on me, Im just not that great with PHP yet. But if you could tell me what is wrong, I only edited the user set variables and when i run it i get that error.
Reply With Quote
  #9  
Old 11-07-2008, 01:33 AM
sarkar sarkar is offline
 
Join Date: Jan 2006
Location: India
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would need to have a look at your bot file. Can u PM me ur bot file.
Reply With Quote
  #10  
Old 11-16-2008, 01:51 AM
raviteja542 raviteja542 is offline
 
Join Date: Aug 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it worked like a charm....i really like this mod
Reply With Quote
Reply

Thread Tools

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 02:18 AM.


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.04361 seconds
  • Memory Usage 2,287KB
  • Queries Executed 24 (?)
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
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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