Hey. I installed SSL to my Server, but seems that absolute images with http:// breaks the SSL. I need images with https:// to make SSL working correctly.
I already made very little and simple image proxy:
so you can get the image trough our server, https://myserver.com/imgproxy.php?imgsrc=$1
This works as it should, but i need to get every <img src=""> and [img] links replaced with that proxy. I couldn't find any plugin to do this and i have no idea how to implent it with MyBB..
If you have easier way to do this, please tell, or if you have plugin/knowledge of PHP & MyBB, tell me how can i do this.
EDIT:
-------
E.g. Members signatures may contain image thats from site what does not use SSL (or is not forced). Also, everything inside <img src=""> and [img] tags should be replaced with "././imgsrc=${image_url_here}"
I already made very little and simple image proxy:
PHP Code:
<?php
header('Content-Type: image/png');
if(isset($_GET['srcimg'])){echo file_get_contents($_GET['srcimg']);}
?>
so you can get the image trough our server, https://myserver.com/imgproxy.php?imgsrc=$1
This works as it should, but i need to get every <img src=""> and [img] links replaced with that proxy. I couldn't find any plugin to do this and i have no idea how to implent it with MyBB..
If you have easier way to do this, please tell, or if you have plugin/knowledge of PHP & MyBB, tell me how can i do this.
EDIT:
-------
E.g. Members signatures may contain image thats from site what does not use SSL (or is not forced). Also, everything inside <img src=""> and [img] tags should be replaced with "././imgsrc=${image_url_here}"