Styles not working with https

Styles not working with https was created by rick76

Posted 11 years 8 months ago #5183
The styles for my main menu (Maximenu) are not working with secure pages on my site -- at least not with Chrome or IE. Firefox is working fine. For some reason, the change to https is preventing the Maximenu module from loading.

Here's the page: www.gcmediaministries.org/donate-us

It's working fine elsewhere -- the problem is only with this one secure page.

Any ideas?
by rick76

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: Styles not working with https

Posted 11 years 8 months ago #5184
Hi
I have tested your url, and it seems to be working ...
Ced

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by rick76 on topic Re: Styles not working with https

Posted 11 years 8 months ago #5185
It's working fine in Firefox, but Maximenu is getting blocked in Chrome. Here's the error it's giving:

[blocked] The page at www.gcmediaministries.org/donate-us ran insecure content from www.gcmediaministries.org/modules/mod_ma.../moo_maximenuhck.css .

For some reason, it's seeing that module as unsecure.
by rick76

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: Styles not working with https

Posted 11 years 8 months ago #5186
ok, you should try to edit the code of the module, in the file mod_maximenuck.php, and delete the JURI:base() just before the css call.

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by rick76 on topic Re: Styles not working with https

Posted 11 years 8 months ago #5187
You mean this code?

if ($orientation == 1) {
$document->addStyleSheet(JURI::base() . 'modules/mod_maximenuck/themes/' . $theme . '/css/moo_maximenuvck.css');
if ($usecss == 1)
$document->addStyleSheet(JURI::base() . 'modules/mod_maximenuck/themes/' . $theme . '/css/maximenuvck.php?monid=' . $menuID);
} else {
$document->addStyleSheet(JURI::base() . 'modules/mod_maximenuck/themes/' . $theme . '/css/moo_maximenuhck.css');
if ($usecss == 1)
$document->addStyleSheet(JURI::base() . 'modules/mod_maximenuck/themes/' . $theme . '/css/maximenuhck.php?monid=' . $menuID);
}
by rick76

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: Styles not working with https

Posted 11 years 8 months ago #5192
yes, replace
Code:
$document->addStyleSheet(JURI::base() . 'modules/mod_maximenuck...
with
Code:
$document->addStyleSheet('modules/mod_maximenuck...

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.679 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1323 guests and no members online