[vB 3.7.x][SSLC]StephSoft Link Checker

Stephen

New Member
THIS MAY WORK WITH VB 3.6.8: READ MY RELPY
I made a link checker for vBulletin 3.7.x. Sadly I suck at addons, so here are the php files. Just install it, delete the install file, and run sslc_main.php and it should go from there.

I didn't test this in cronjobs yet, tell me if it works if you try it. The file is attached.

Place the folder in your vBulletin forum directory, if you don't you can edit the location to the vBulletin configuration file though in the sslc_configuration.php file.

EDIT:
Tell me if it works. If it doesn't, post the error. If you find any exploits tell me :).

Please comment :)

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

ZIP Password:
Code:
stephsoft

sslc_readme.txt said:
WHERE TO PUT MY NEW SSLC BOT:
Go to your vbulletin forum folder and place the files in the folder "sslc" (included for you).
-----------------------------------------------------------------------
///////////////////////////////////////////////////////////////
// Script created by: Stephen Brotman (aka AADude) /////////////////
// Use: Checking to see if links are dead or not //////////////////////
// Copyright© StephSoft, 2008. Please do not remove these comments. //
///////////////////////////////////////////////////////////////


WORKS WITH: vBulletin 3.7.x
TESTED WITH: vBulletin 3.7.0

SUPPORTS:
//RS = RapidShare;
//MU = MegaUpload;
//ES = Easy-Share;
//FF = FileFactory;
//SS = SendSpace;
//FFFH = FastFreeFileHosting;
//MF = Mediafire;
//SOA = ShareOnAll;
//MV = MegaVideo;
//DXV = DivXVine;
//YT = YouTube;

READ: sslc_readme.txt
FOR: Adding more hosts, etc.?
------------------------------------------------------------------------

HOW TO ADD A NEW HOST TO CHECK:


1.) Load file sslc_check.php

2.) Find the function ss_link_check.

3.) Find where it has an array that looks like this:
$_sites=array(
"RS" => "Error",
"MU" => "Unfortunately, the link you have clicked is not available.",
"ES" => "File not found",
"FF" => "Sorry, this file is no longer available. It may have been deleted by the uploader, or has expired.",
"SS" => "Sorry, the file you requested is not available.",
"FFFH" => "Your requested file is not found",
"MF" => "Link to files from your MySpace page, your blog, or forums",
"SOA" => "File does not exist or was removed!",
"MV" => "This video is unavailable.",
"DXV" => "Filename / Description",
"YT" => '<div class="errorBox">'
);

4.) Simply add a new host to that. Put a comma after YT and put something like
"SITE" => "Error Message If File Is Not There"

5.) Save and close that file.

6.) Load file sslc_main.php

7.) Find this line:
else if (preg_match("/youtube/",$curl)) {
$_type="YT";
}

8.) Add your host to it. You do /siteurl/ without www. or .com for the link to check. Heres an example.
else if (preg_match("/siteurl/",$curl)) {
$_type="SITE"; //The type you put in quotes in the $_sites array.
}

9.) Make sure that code is above the last else of that. Save and close that file.

CONGRATS, YOU MADE YOUR OWN HOST TO CHECK!
------------------------------------------------------------------------

EDITING YOUR CONFIGURATION FILE:


1.) Load file sslc_configuration.php

2.) I left comments in there for where to edit. If you're not sure...
$_sslc_userid -- This is the bots userid that it will be posting with.
$_sslc_username -- This is the bots username (i.e. "Stephen Bot")
$_sslc_boards -- These are the boards ids to check in. Make sure they're separated by commas.
$_sslc_move -- This is the board id of the board you will be moving them to (like a trash bin board).
$_sslc_howmany -- This is how many links it will check at a time. I recommend not changing it unless your server won't load the file all the way. Then set it to like 10 or lower.

3.) Edit those with the correct information, and off you go.


Also posted here:
Code:
http://fagex.net/web-languages/80247-vbulletin-3-7-x-3-6-8-sslc-stephsoft-link-checker.html

So don't think that's not me xD
 

Stephen

New Member
chapelain said:
Hello

First of all, thank you for this hack, but it would be T possible to make it compatible 3.6.8


Thank you

It might work with 3.6.8 if they have the same kind of post/thread tables. I'll tell you the tables needed in a sec.

And Fan, yeah I do. I need to figure out how to make plugins though :/ xD and maybe I'll have it automatically add to cron.


EDIT: I believe the configuration files are the same so that part should work in 3.6.8.
Tables Needed:
[prefix]thread
[prefix]post
(made for you:)
[prefix]sslc_links
[prefix]sslc_threads

Columns Needed:
[prefix]thread -> forumid, threadid, firstpostid, sslc (made for you).
[prefix]post -> postid, pagetext, threadid, parentid, dateline.
The sslc table columns are made for you.

Check the columns in those tables in your phpmyadmin and tell me if you have them. If you do, it should work. Tell me if it works :)
 

Stephen

New Member
Draxofavalon said:
This edit the thread if find Deleted Files?

Thanks.

This will move the thread to a forum you put in the configuration file, i.e. an "Archive" board. It will only move if 50% or more of the links are dead.

If it gets moved, the bots user (the one you put in the configuration file) will post a message saying why it got moved.

You need to have "allow_url_fopen" or w/e in the php.ini file set to on inorder for the checking process to work.
 

Anthrax

New Member
open your ftp and go to that file then right click..hit edit..a new page will pop up in your ftp with all the script..find the script area thats defined below and edit..then right click that page and hit save..

2.) I left comments in there for where to edit. If you're not sure...
$_sslc_userid -- This is the bots userid that it will be posting with.
$_sslc_username -- This is the bots username (i.e. "Stephen Bot")
$_sslc_boards -- These are the boards ids to check in. Make sure they're separated by commas.
$_sslc_move -- This is the board id of the board you will be moving them to (like a trash bin board).
$_sslc_howmany -- This is how many links it will check at a time. I recommend not changing it unless your server won't load the file all the way. Then set it to like 10 or lower.
 

Anthrax

New Member
Stephen said:
You need to have "allow_url_fopen" or w/e in the php.ini file set to on inorder for the checking process to work.

not very clear here.."allow_url_fopen" or w/e..need to be precise for some of us..
 

xJeftabx

New Member
How do I uninstall this? I want to re-install it but it wont let me. I dropped some SQL tables but now it wont let me re-install.
 

xJeftabx

New Member
It should work. If you need help ask me to do it for you, I just messed something up installing mine that's why I have a problem.
 
i'm using 3.7.3 and it works great, took 3 hours to check 25000 threads, and the bot throw all the thread with bad links to the trash subforum =)

thanks!
 

Jerrree

New Member
Nice script, but i get an error when installing ;(
ERROR INSTALLING 1st mysql query: Duplicate column name 'sslc'

can you help me please?
 
Top