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
  #192  
Old 09-24-2008, 11:14 PM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #193  
Old 09-25-2008, 10:46 AM
Cust0ms Cust0ms is offline
 
Join Date: Jul 2008
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, sorry... but I lost a lot of posts included good rs.com links...
Reply With Quote
  #194  
Old 09-25-2008, 07:51 PM
pierians pierians is offline
 
Join Date: May 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
$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

Code:
$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?
Reply With Quote
  #195  
Old 09-26-2008, 12:30 AM
TrevsRevenge TrevsRevenge is offline
 
Join Date: Mar 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

@TrevsRevenge - remove this
PHP Code:
            $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 .=  "[URL='$realurl']$realurl'[/URL]';
            
$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
Code:
            //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
Reply With Quote
  #197  
Old 09-28-2008, 06:31 AM
hscorp hscorp is offline
 
Join Date: Dec 2007
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when the next version will come a live?
Reply With Quote
  #198  
Old 09-28-2008, 02:10 PM
iPodHacking.com iPodHacking.com is offline
 
Join Date: Nov 2007
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

soon
Reply With Quote
  #199  
Old 09-28-2008, 08:01 PM
hscorp hscorp is offline
 
Join Date: Dec 2007
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i had another problem

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

anyhelp?
Reply With Quote
  #200  
Old 09-28-2008, 08:55 PM
dreads dreads is offline
 
Join Date: Feb 2007
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it can also be leaked by a private host 0o

thats happened to me before

Anyhow its a pretty good script
Reply With Quote
  #201  
Old 09-29-2008, 10:49 AM
Dman91 Dman91 is offline
 
Join Date: Sep 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@hscorp - Read my post on timeout somewhere...
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 11:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04831 seconds
  • Memory Usage 2,321KB
  • Queries Executed 28 (?)
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
  • (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_postinfo_query
  • fetch_postinfo
  • 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