|
#1
|
|||
|
|||
HTTPS
working on our next tracker , newer 09 source. I've got a lot of addons from Bigjoos sources.
I went and add the https option in the usercp , its working real well with one exception.... when you upload to the bitbucket , the links return as https( of course) , well site doesnt like to display the images this way. I can view the directly and they show up when I click 'View My Images'. They just dont show in the forums or shouts??? Any ideas? Thanks in advance |
#2
|
||||
|
||||
Aye cherwonk seen this bugger happening so i'll do some testing today and will post back : )
|
#3
|
|||
|
|||
after a little digging and playing , I found that
PHP Code:
If changed to PHP Code:
atm moment I do have both with no errors and images are displayed for both got the answer from Diablo999 , thanks Code:
//--img if (stripos($s, '[img') !== false) { $s = preg_replace_callback("/\[img\]((http|https):\/\/[^\s'\"<>]+(\.(jpg|gif|png)))\[\/img\]/i", "scale", $s); // [img=http://www/image.gif] $s = preg_replace_callback("/\[img=((http|https):\/\/[^\s'\"<>]+(\.(gif|jpg|png)))alt=\"\"\]/i", "scale", $s); } Last edited by cherwonk; 5th May 2011 at 22:25. |
Tags |
https |
|
|