Page 9 of 12

Re: Images Hijacked by Photobucket?

Posted: Sun Oct 15, 2017 4:39 pm
by Walther
urhm, with what phpbb version is the extract-external-links script supposed to run?
I have 3.1.10 and error out with

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/scripts/extract_external_links.php on line 15: include(../phpbb/db/tools/tools_interface.php): failed to open stream: No such file or directory
Further inspection learns there is a file called tools.php in phpbb/db/ but no directory /tools in phpbb/db :?


Could i (temporary) take the phpbb/db/tools/* from the phpbb3.2.1 package :|

Re: Images Hijacked by Photobucket?

Posted: Sun Oct 15, 2017 5:50 pm
by david63
If it is looking for a file called tools.php then I suspect that it is probably phpBB 3.0.x

Re: Images Hijacked by Photobucket?

Posted: Sun Oct 15, 2017 5:57 pm
by Walther
david63 wrote:
Sun Oct 15, 2017 5:50 pm
If it is looking for a file called tools.php then I suspect that it is probably phpBB 3.0.x
???

It is not looking for a file tools.php
The phpbb version now in use is 3.1.10 , and that version has phpbb/db/tools.php instead of phpbb/db/tools/*.*

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 17, 2017 9:39 am
by Walther
....silence....guess nobody has the answer then?

But, there is a chrome extension that bypass the photobucket ransom: https://chrome.google.com/webstore/deta ... fnflicjjgj :)

(open source: https://github.com/kzahel/photobucket-embed-fix )

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 17, 2017 10:09 am
by RMcGirr83
Walther wrote:
Sun Oct 15, 2017 4:39 pm
urhm, with what phpbb version is the extract-external-links script supposed to run?
3.2 or you could just change this line

https://github.com/v12mike/fetch-extern ... ks.php#L15

to suit your version.

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 17, 2017 10:34 am
by Walther
So you say i can change

Code: Select all

include($phpbb_root_path . 'phpbb/db/tools/tools_interface.' . $phpEx);
in

Code: Select all

include($phpbb_root_path . 'phpbb/db/tools.' . $phpEx);
safely?

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 17, 2017 1:51 pm
by RMcGirr83
No, the script is written for 3.2. You would have to be running 3.2.

I was simply stating why it wasn't working for you.

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 17, 2017 2:24 pm
by Walther
seemed to do the trick though:
...All Done!!
1937 files (photobucket only) 251.020.156 bytes

Re: Images Hijacked by Photobucket?

Posted: Tue Oct 24, 2017 7:33 am
by v12mike
Sorry I wasn't around to answer this, we had a server failure that took all of my time for a week or so.

Funny that no-one else reported that problem. I know that the scripts have been run on phpBB 3.0 forums, and I thought 3.1. Maybe others found the fix themselves.

Re: Images Hijacked by Photobucket?

Posted: Mon Nov 27, 2017 3:29 am
by mainevette
Hi Mike,

I'm wondering if this script would have changed the location that my boards avatars are saved. I have a plugin on on my wordpress site that's trying to fetch my phpBB avatars but it's not working. I've been troubleshooting with the developer of the wordpress plugin and he's wondering if the image redirect extension could have changed things. I thought you'd be able to provide a better idea of whether that's a possibility.

Specifically, the plugin I'm using is searching for each user's uploaded avatar in the following directory (my admin avatar image is used as an example - see my user profile here: http://www.forum.corvette-restoration.c ... rofile&u=2):

Code: Select all

http://www.forum.corvette-restoration.com/images/avatars/upload/fa32204b6318e94f394bfa900d906505_2.jpg
However, when we look at the posts in my forum each avatar is being pulled from the following directory below, and with a different file name:

Code: Select all

http://www.forum.corvette-restoration.com/download/file.php?avatar=2_1255917380.jpg
My avatar was never on Photobucket so I didn't expect the image redirect extension would have downloaded and moved my avatar.

I tried disabling the extension to see if that would resolve the issue but the links above don't change.

I'm curious to get your thoughts on this.

Thanks,
Tim

Re: Images Hijacked by Photobucket?

Posted: Mon Nov 27, 2017 8:24 am
by v12mike
The extension does not actually make any changes to files and directories, it just tests for the existence of local copies of image files to control whether image links are redirected. It does not touch locally hosted avatars, but can redirect externally hosted avatars (but this doesn't seem to be relevant to your problem).

The paths you show for avatar storage and links look like normal phpBB code (nothing to do with my work). There are probably several reasons that phpBB obscures the file location in links, but that is what it does. Has your wordpress extension ever worked? Does the wordpress plugin attempt to read the avatar file from disk, or does it create a link for the users' browser? If the former, then is the file name prefix set correctly, if the latter, then a direct link won't work unless you relax the .htaccess security.

Re: Images Hijacked by Photobucket?

Posted: Wed Nov 29, 2017 3:25 am
by mainevette
Thanks for the quick reply, Mike. We figured out that it was an .htaccess issue and not something with the image redirect extension.

Thanks again!

Re: Images Hijacked by Photobucket?

Posted: Sun Dec 17, 2017 10:23 pm
by BigBlockMopar
I installed the scripts and extension on a forum of mine and it worked!
Thank you very much for this v12Mike.

I did have to limit the amount of pics that were fetched to prevent timeouts.
Perhaps with the actual downloading of the photos, an automated page-refresh can be done as long as there are more files to download.

There's a nifty little program called 'BigDump' for uploading large databases to a MySQL-server, which has a similar function that it will do an X-amount of data before it reloads the page and starts off from that point again.

Re: Images Hijacked by Photobucket?

Posted: Sat Dec 30, 2017 3:25 pm
by panhead
I also installed the scripts and enabled the extension. Approx. 2300 pictures (only photobucket) are downloaded. But I am a bit confused, should the downloaded pictures now be visible or do I have to make another step?

Update: I think it works, but not all pictures were/could be downloaded.

Re: Images Hijacked by Photobucket?

Posted: Sun Feb 04, 2018 4:04 pm
by mainevette
Hi Mike,

I'm hoping you can help me out. Previously I had this extension working perfectly on my board. Everything was fine until I migrated my board to a new web host and upgraded to phpBB 3.2.1. After the migration the image redirect wasn't working quite right. I thought perhaps the database tables for the extension got corrupted during the install so I re-ran the two scripts (extract links and download images). Now some of the images show up properly, but some still show the photobucket speedometer image.

Currently, I have the extension enabled and have the "Local Image Store Mode" enabled. "Proxy Mode" is set to disabled.

Here's a link to a forum page where images originally hosted on photobucket are being properly displayed (scroll about halfway down the page). http://www.forum.corvette-restoration.c ... ?f=8&t=251 When I use the "inspect tool" of my browser and click on one of the photos the link is pointed to the /images/ext/ directory. The images that show up are the correct original images.

For comparison, here's a link to a forum page where images originally hosted on photobucket are still displayed as the speedometer image. http://www.forum.corvette-restoration.c ... &start=100 When I use the "inspect tool" the link points to the images/ext/ directory.

I've confirmed that these photos were in fact originally hosted on photobucket by disabling the extension and using the inspect element function to verify the original photo link pointed to photobucket. Interestingly, when I do this the speedometer image shows up with green text instead of blue text.

I strongly suspect that when I reran the script after my website migration it pulled in the speedometer image from photobucket instead of the actual image. Perhaps photobucket changed something that caused this to happen. However, I'm not sure how to view the files in the images/ext directory to verify this.

Any suggestions would be greatly appreciated.