Maximenu CK is strange when page error 404

More
11 years 7 months ago #26082 by Georgie
Ouch ! This is not very concrete...

Not easy...

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

More
11 years 7 months ago #26084 by ced1870
yes, ouch !
try to add this in your head
Code:
<link rel="stylesheet" href="/modules/mod_maximenuck/themes/css3megamenu/css/maximenuck.php?monid=maximenuck" type="text/css" /> div#maximenuck ul.maximenuck li.maximenuck.item101.level1, div#maximenuck ul.maximenuck2 li.maximenuck.item101.level1{ padding-top: 4px !important;padding-right: 9px !important;padding-bottom: 5px !important;padding-left: 9px !important;margin-top: 2px !important;margin-right: 10px !important;margin-bottom: 3px !important;margin-left: 0px !important;background: rgba(0,136,204,) !important;background-color: rgba(0,136,204,) !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important; } div#maximenuck ul.maximenuck li.maximenuck.item101.level1 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item101.level1 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item101.level1 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item101.level1 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck ul.maximenuck li.maximenuck.item101.level1.active, div#maximenuck ul.maximenuck2 li.maximenuck.item101.level1.active { background: rgba(0,136,204,) !important;background-color: rgba(0,136,204,) !important; } div#maximenuck ul.maximenuck li.maximenuck.item153.level1, div#maximenuck ul.maximenuck2 li.maximenuck.item153.level1{ padding-top: 4px !important;padding-right: 9px !important;padding-bottom: 5px !important;padding-left: 9px !important;margin-top: 2px !important;margin-right: 10px !important;margin-bottom: 3px !important;margin-left: 0px !important;background: rgba(0,136,204,) !important;background-color: rgba(0,136,204,) !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important; } div#maximenuck ul.maximenuck li.maximenuck.item153.level1 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item153.level1 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item153.level1 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item153.level1 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck ul.maximenuck li.maximenuck.item264.level2, div#maximenuck ul.maximenuck2 li.maximenuck.item264.level2{ padding-top: 0px !important;padding-right: 0px !important;padding-bottom: 0px !important;padding-left: 0px !important;margin-top: 0px !important;margin-right: 0px !important;margin-bottom: 0px !important;margin-left: 0px !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important; } div#maximenuck ul.maximenuck li.maximenuck.item264.level2 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item264.level2 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item264.level2 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item264.level2 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck ul.maximenuck li.maximenuck.item265.level2, div#maximenuck ul.maximenuck2 li.maximenuck.item265.level2{ padding-top: 0px !important;padding-right: 0px !important;padding-bottom: 0px !important;padding-left: 0px !important;margin-top: 0px !important;margin-right: 0px !important;margin-bottom: 0px !important;margin-left: 0px !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important; } div#maximenuck ul.maximenuck li.maximenuck.item265.level2 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item265.level2 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item265.level2 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item265.level2 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck ul.maximenuck li.maximenuck.item180.level1, div#maximenuck ul.maximenuck2 li.maximenuck.item180.level1{ padding-top: 4px !important;padding-right: 9px !important;padding-bottom: 5px !important;padding-left: 9px !important;margin-top: 2px !important;margin-right: 10px !important;margin-bottom: 3px !important;margin-left: 0px !important;background: rgba(0,136,204,) !important;background-color: rgba(0,136,204,) !important; } div#maximenuck ul.maximenuck li.maximenuck.item180.level1 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item180.level1 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item180.level1 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item180.level1 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck ul.maximenuck li.maximenuck.item147.level1, div#maximenuck ul.maximenuck2 li.maximenuck.item147.level1{ padding-top: 4px !important;padding-right: 9px !important;padding-bottom: 5px !important;padding-left: 9px !important;margin-top: 2px !important;margin-right: 10px !important;margin-bottom: 3px !important;margin-left: 0px !important;background: rgba(0,136,204,) !important;background-color: rgba(0,136,204,) !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important; } div#maximenuck ul.maximenuck li.maximenuck.item147.level1 > a.maximenuck span.titreck, div#maximenuck ul.maximenuck li.maximenuck.item147.level1 > span.separator span.titreck, div#maximenuck ul.maximenuck2 li.maximenuck.item147.level1 > a.maximenuck span.titreck, div#maximenuck li.maximenuck.item147.level1 > span.separator span.titreck { font-weight: normal !important; } div#maximenuck li > a, div#maximenuck li > span { font-family: 'Droid Sans';} div#maximenuck.maximenuckh ul.maximenuck { padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 2px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;background: rgba(255,255,255,0);background-color: rgba(255,255,255,0);background-image: url("/modules/mod_maximenuck/assets/svggradient/maximenuckmenustyles-gradient.svg");background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(227,227,227,0) 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(227,227,227,0))); background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(227,227,227,0) 100%);background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(227,227,227,0) 100%);background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(227,227,227,0) 100%);background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(227,227,227,0) 100%); -moz-border-radius: 5px 5px 5px 5px;-webkit-border-radius: 5px 5px 5px 5px;border-radius: 5px 5px 5px 5px;border-top: none;border-right: none;border-bottom: none;border-left: none; }

Joomlack Webmaster and Developer
The following user(s) said Thank You: Georgie

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

More
11 years 7 months ago #26089 by hungmei
Oh thanks all of you! :)
You give me an idea.My change is below,and it is work currently

step1.
I copy templates\system\error.php to my templates folder

step2.
I add below
Code:
<?php //because of error page,css page of maximenu doesn't load,join these css pages //and dynamically catch current id of menu ,give this value to css ?> <link rel="stylesheet" href="/test/test/jtest/modules/mod_maximenuck/themes/css3megamenu/css/moo_maximenuhck.css" type="text/css" /> <link rel="stylesheet" href="/test/test/jtest/modules/mod_maximenuck/assets/maximenuresponsiveck.css" type="text/css" /> <script> function myFunction() { var x = document.getElementsByClassName("maximenuckh"); var xx = x[0].id; //dynamically catch current id of menu ,give this value to css var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; if(xx != "") cssNode.href = '/test/test/jtest/modules/mod_maximenuck/themes/css3megamenu/css/maximenuhck.php?monid='+xx; else cssNode.href = '/test/test/jtest/modules/mod_maximenuck/themes/css3megamenu/css/maximenuhck.php?monid=menu_cms_cht'; headID.appendChild(cssNode); } </script>

step3.
error.php add below into body tag
Code:
onload="myFunction()"
The following user(s) said Thank You: ced1870, Georgie

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

More
11 years 7 months ago #26098 by Georgie
Yeaaah !

For me :

Just add these lines to correct the display of CKMenu:

<link rel="stylesheet" href="/modules/mod_maximenuck/themes/css3megamenu/css/maximenuck.php?monid=maximenuck" type="text/css" />

But with the design by defaults, I have to modify css to get the exact same menu that in my site.


Then add these line to clear the bug of the slideshowck (do disappear completely) :

<link rel="stylesheet" href="/modules/mod_slideshowck/themes/default/css/camera.css" type="text/css" />

THX !

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

Time to create page: 0.199 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1385 guests and one member online