**********************************************************
Wrote a fix last night.
Below is the fix for phpbb3.0.x first and then 3.1.x - 3.2.x after it below the dashed line.
Only the finds are different. This will replace all of the http:// image links within posts with https:// and is useful for people who can't use camo for whatever reason whether it be no access to certain things or perhaps personal preference.
Note: Any images posted from sources that do not have a valid ssl certificate will be shown as the word "image" instead of the image that was intended to be shared. However many photo sharing sites such as photobucket or picturetrail have valid certificates and will be available as both http:// and https:// so therefore will still show.
For phpbb3.0.x:
1. Go through all html files and css files and change any hard coded images from http:// to https://
2. Open viewtopic.php
Find:
Code: Select all
$message = smiley_text($message);
Add After: (On a new blank line)
Code: Select all
//Make all images https:// to secure the pages.
$message = str_replace('src="http://', 'src="https://', $message);
Save the file. Done!
--------------------------------------------------------------------
For phpbb 3.1.x - 3.2.x
1. Go through all html files and css files and change any hard coded images from http:// to https://
2. Open viewtopic.php
Find:
Code: Select all
$message = generate_text_for_display($row['post_text'], $row['bbcode_uid'], $row['bbcode_bitfield'], $parse_flags, true);
Add After: (On a new blank line)
Code: Select all
//Make all images https:// to secure the pages.
$message = str_replace('src="http://', 'src="https://', $message);
Save the file. Done!
This fix only effects image links and you do not need to change site urls in posts other than images because only the images and other media platforms such as videos *i.e. older youtube videos with http:// are causing this issue with the certificates. Sad that many members do not realize that although there is a "connection not secure" warning, that 100% of the textual content (i.e. logins, posts, signatures) is still being fully encrypted, as well as some of the images. That it's only some of the images which are not secure and only because of the site they are being hosted from not having a valid ssl certificate and not the actual site they are posted on causing the issue.
If you want your entire board viewtopic links and not just images to be https:// you could do this additional edit below also. (
Though I DO NOT recommend this and recommend that you stick with the above fix or some other fix/mod/extension due to this would make all posted urls on the board which are not originally available through https:// follow through to the connection not secure warning page once the user is taken to that site they click on. (Though it might be an interesting fact for some people to know the sites they are posting links to are non-secure connections as they click the links to visit the sites and find out.) Furthermore I suggest you then create a rule to all members (if you do decide to use this below as well) that they are forbidden to post non-secure or rather non-https links.)
If you did use this in addition to the above you would post it right below it, again though, not recommended to change all urls per explanation above. Just adding this here for those who wish for the option. Unlike images not available through https:// the links without it will still show except as https:// and again would go to the non-secure connection page if the site it's linked from does not have https:// links or ssl rather.
Code: Select all
//Make all urls in posts https://
$message = str_replace("http://", "https://", $message);
Enjoy!