Skip to content
WJunction - Webmaster Forum

IPB LinkBot - Requested

Status
Not open for further replies.

Tango

Moderator
Staff member
4,138
2009
1,767
21,955
I made a linkchecker for phpbb3, and have made it work with IPB for someone, so i will share it.

Paste to linkchecker.php
http://paste2.org/p/603569http://paste2.org/p/629718

Edit lines 181-186 with your forum IDs you want to allow topics to be dumped from.
Then line 190 to match.
Edit 190, 195-197 with your forum Graveyard ID

Make sure bots can view any warez sections

Run the script using the url linkchecker.php?topic=1&limit=200
t= is starting topic & limit is how many topics to check after that in one go.



SQL Query
Code:
CREATE TABLE IF NOT EXISTS `checked_topics` (
  `id` int(9) unsigned NOT NULL auto_increment,
  `topicid` varchar(255) default NULL,
  `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `oldforumid` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=103796 ;
 

14 comments

Sorry, i had posted the wrong script :P
Please use the new paste2 code.

Dont forget to update the graveyard forum ID, i dont see that section on your site so couldnt set it in the script
 
Dont forget to update the graveyard forum ID, i dont see that section on your site so couldnt set it in the script

The "Cleanup Station"

Forum ID: 34

thats my graveyard on gamersfire.

But i'm testing this on a test board first.

are the config information automatically retrived from the files?
 
Looks pretty good. I didn't have a chance to look through it fully but for the Rapidshare api checkfiles_v1 the return value of 1, which you have, means it can be downloaded but the values of 2, 3 and 6 can also be downloaded.

So on line 226
PHP:
if ($fStatus==1)
would need to be something like
PHP:
if($fStatus==1 || $fStatus==2 || $fStatus==3 || $fStatus==6)
or else you'll be binning Rapidshare links which aren't dead

Extract from Rapidshare API Guidelines
Code:
		5:Status integer, which can have the following numeric values:
			0=File not found
			1=File OK (Anonymous downloading)
			2=File OK (TrafficShare direct download without any logging)
			3=Server down
			4=File marked as illegal
			5=Anonymous file locked, because it has more than 10 downloads already
			6=File OK (TrafficShare direct download with enabled logging. Read our privacy policy to see what is logged.)

I'd advise you to use 3 aswell incase their doing maintenance etc.

I'll have a better look at it later.
 
nice work Gav0, looks good. I'm currently using nihalz's linkchecker for ipb3 and its working perfectly, but ill try this out one of my test boards when I get some time ;) ty
 
Hey Gavo

Testing it now. Now that the bot is auto-binning topics (instead of just reporting them) is there an option for the bot to just Report the posts but NOT move them automatically?.

I don't like having my entire site being controlled by a robot. I want to just know about the dead links, and will manually move/edit/remove them myself.
 
Thank you Gavo. If you can just make the script stop when it detects dead links like the phpBB older version you had. Can you also make it not show the dead links that are already in the trash can when running the script?

That should be enough :)
 
Status
Not open for further replies.

About the author

Tango
Moderator · Joined
4,138
Messages
1,767
Reactions
113
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom