https://www.icyphoenix.com/viewtopic.php?f=2&t=9588&p=60485#p60485
-----------------------------------
mort
Mon 13 Jun, 2016 03:53

Re: [SSL] Problems With Images And HTTP/HTTPS
-----------------------------------
[quote user="PlayerX" post="60484"]
File: includes/functions_bbcode.php - Line 91 (smilies of "Quick Reply")

[CODE]
'URL' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $row['smile_url'],
[/CODE][/quote]

We've also got

functions_post.php

[b]Line 729:[/b]

[code linenumbers=false]'SMILEY_IMG' => 'http://' . $host . $config['script_path'] . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],[/code]

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

[code linenumbers=false]'SMILEY_IMG' => './' . $config['smilies_path'] . '/' . $rowset[$i]['smile_url'],[/code]

It should work.



There's also this to deal with:

[b]class_cache_extends.php[/b]

[code linenumbers=false]	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;
	}
[/code]

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.. ;)


