[vB 3.7.x/3.6.8?][SSLC]StephSoft Link Checker

Discussion in 'Web Programming' started by PedoBear, Jul 12, 2008.

Thread Status:
Not open for further replies.
[vB 3.7.x/3.6.8?][SSLC]StephSoft Link Checker
  1. Unread #1 - Jul 12, 2008 at 6:05 AM
  2. PedoBear
    Joined:
    Apr 22, 2008
    Posts:
    92
    Referrals:
    0
    Sythe Gold:
    0

    PedoBear Member
    Banned

    [vB 3.7.x/3.6.8?][SSLC]StephSoft Link Checker

    THIS MAY WORK WITH VB 3.6.8: READ MY REPLY
    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.

    ZIP Password:
    stephsoft

    Download:
    Code:
    http://myfreefilehosting.com/f/65b6c4fb50_0.01MB
    Code:
    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.
    3.6.8:

    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.


    ABOUT:
    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.
     
  3. Unread #2 - Jul 12, 2008 at 10:51 PM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    [vB 3.7.x/3.6.8?][SSLC]StephSoft Link Checker

    Your name is AADude? You are Stephen Brotman? You own StephSoft?
     
  5. Unread #3 - Jul 12, 2008 at 11:01 PM
  6. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    [vB 3.7.x/3.6.8?][SSLC]StephSoft Link Checker

    Ripped.
     
< SQL errors, Cannot execute sql code? | [PHP]RuneScape Latest News Parser >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site