Forumfix for the broken Photobucket images.

Look here for announcements. Please make comments and ask questions about the board here too.
Post Reply
BigBlockMopar
Posts: 346
Joined: Sun Sep 02, 2007 3:29 pm
Location: Netherlands
Contact:

Forumfix for the broken Photobucket images.

Post by BigBlockMopar » Sun Dec 17, 2017 2:00 pm

I've found a script that can fix all the broken Photobucket images on the entire forum.
What the script does, is going over all the topics, and everywhere where there's an image hosted at Photobucket (which are mostly now all broken), it will still download it and store it locally on the forum's server.
It then redirects the topic's original image-links to the local versions so that the images show up again.

The script's actions only need to run once to copy over and fix all the images. Tried it on my own Mopar-forum and it worked flawless.

It's 2-part (3 step) action.
- First part is here, which first creates a new database entry with the image-links and then secondly loads the images (which can take a while or multiple times if on slow hosting);
https://github.com/v12mike/fetch-external-images

- Second part is the forum's extension, which takes care of the actual showing of the images in topics;
https://github.com/v12mike/imageredirect
https://www.bigblockmopar.com
'73 Dodge Dart - 360ci - 11.3:1cr
MegaSquirt + HEI 7-pin timing control - Edelbrock AirGap - Cold Air Intake
IMPCO E / 425 mixer - A518 OD-trans - 3.55 gears - 225/50/17" tires.


Frank
Site Admin
Posts: 863
Joined: Wed Feb 25, 2004 2:17 pm
Location: Stevensville, ON
Contact:

Re: Forumfix for the broken Photobucket images.

Post by Frank » Sun Dec 17, 2017 3:16 pm

I'll be a bit busy in the next few days but I'm going to give this a try. Thanks!

Post Reply