Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [SSL] Problems With Images And HTTP/HTTPS 
 
Version: 2.2.0.105 (new installation)
Web: h**ps://battlefield-ng.com

I found several problems viewing images with SSL certificate, attach the photos to see.

If I find more problems with images, I'll put it here.

I follow his project for years, I like the way you have and the styles.

img006.png
Description:  
Filesize: 254 KB
Viewed: 54 Time(s)

img006.png

img005.png
Description:  
Filesize: 240.82 KB
Viewed: 53 Time(s)

img005.png

img004.png
Description:  
Filesize: 306.81 KB
Viewed: 49 Time(s)

img004.png


 



 
PlayerXSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
I'm not sure about this but I got it from Google..

Try adding ONLY ONE OF THESE to your .htaccess file

AFTER:

RewriteEngine On

ADD:

Code: [Download] [Hide] [Select]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



OR

Code: [Download] [Hide] [Select]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


You may lock yourself out and have to clear your browser cache.


 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
I think the best way would actually to use links without "http", as in "://imgur.com/...". I think it should work.
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
The original idea is to look and fix them manually, but can not find.
I had solved temporarily "Redirect permanent" but was not the same.
I want to change it and try to put something like:

Code: [Download] [Hide]
  1. $server_protocol = ($config['cookie_secure']) ? 'h**ps://' : 'h**p://'; 






Fixed 1 of 3:

File: includes/functions_bbcode.php - Line 91 (smilies of "Quick Reply")

Code: [Download] [Hide]
  1. 'URL' => 'h**p://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $row['smile_url'], 
  2.  

 



 
PlayerXSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
PlayerX wrote: [View Post]

File: includes/functions_bbcode.php - Line 91 (smilies of "Quick Reply")

Code: [Download] [Hide]
  1. 'URL' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $row['smile_url'], 
  2.  


We've also got

functions_post.php

Line 729:

Code: [Download] [Hide] [Select]
'SMILEY_IMG' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],


And if we change it to the "relative" path.

Code: [Download] [Hide] [Select]
'SMILEY_IMG' => './' . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],


It should work.



There's also this to deal with:

class_cache_extends.php

Code: [Download] [Hide] [Select]
    function obtain_smileys($from_cache = false)
    {
        global $db, $config;

        if (($smileys = $this->get('_smileys')) === false)
        {
            $smileys = array();
            $smileys_path = create_server_url() . $config['smilies_path'] . '/';

            $sql = "SELECT code, smile_url FROM " . SMILIES_TABLE . " ORDER BY smilies_order";
            $result = $from_cache ? $db->sql_query($sql, 0, 'smileys_') : $db->sql_query($sql);

            while ($row = $db->sql_fetchrow($result))
            {
                $smileys[] = array(
                    'code' => $row['code'],
                    'replace' => '<img src="' . $smileys_path . $row['smile_url'] . '" alt="" />'
                );
            }
            $db->sql_freeresult($result);

            $this->put('_smileys', $smileys);
        }

        return $smileys;
    }


I don't know if there is a global way to change all of this, so MG or informpro would be the ones to help sort this out..
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
Already solved thanks to github
 



 
PlayerXSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
If you have a patch you want to submit, that'd be sweet!
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
Thanks for reporting.

I will fix everything if you could help to keep track of all the changes.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
Recommend that when installing IP, place a checkbox for SSL, because it would have to change within mysql.

'cookie_secure'
 



 
PlayerXSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SSL] Problems With Images And HTTP/HTTPS 
 
PlayerX wrote: [View Post]
Recommend that when installing IP, place a checkbox for SSL, because it would have to change within mysql.

'cookie_secure'


Thank you for the suggestion, I'll try to check if I can do that automatically.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events