1. Jax
  2. Commercial Templates
  3. Sunday, 29 July 2012
  4.  Subscribe via email
I have a site that I am using the Horizon template on. I also have the latest version of Kunena installed and am running Joomla 1.5.26

All was working fine, except some users were unable to update their profiles and not all features were working when posting on the forum - BBCode was not available, they can see the smileys but not instert them by double-clicking on them, etc.

I tried all the trouble-shooting found here: http://docs.kunena.org/index.php/Mootools_1.2.4

And as far as I can tell, the problem seems mootools/javascript related.

Everything had been working for me, but then I ran into problems in IE (the same problems as described above). Everything was still working for me in FireFox until I ran Firebug - then I got errors and then things stopped working for me correctly in Mozilla Firefox as well.

I do have the Mootools Upgradde plugin installed and enabled. According to the documentation I linked to above, this describes my issue:



It seems that the website is loading the old Mootools 1.1 library as when I run Firebug in Mozilla Firefox it shows the following being loaded:

../media/system/js/mootools.js


Is is possible to modify the template so that is does not load this version, but rather MooTools Upgrade:

../plugins/system/mtupgrade/mootools.js

My website is: http://www.rightnutsatv.ca

You must have an account to login and access the forum. I can create you an account and PM the information to you, if you wish. Just let me know.

Please let me know if you require any other information.

Thanks in advance.

Jax
Accepted Answer Pending Moderation
0
Votes
Undo
With regard to items 1 - 5 above (How to know if you have a Mootools issue) all are applicable in this case, except numbers 1 and 5. The site is not noticeably slow and I do still see the Kunena tabbed menu.
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Jax

May I suggest temporarily removing the following code from the head of your templates index.php (../template/j51_horizon/index.php). This will disable the templates moomenu script allowing you to determine if it is the cause of the problem.

<script type="text/javascript" src="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/dropdown.js" charset="utf-8"></script>
<script type="text/javascript" >
window.addEvent('domready', function() {
var myMenu = new MenuMatic();
});
</script>

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the reply, Ciaran. Below is the code from the head of the template's index.php. I tried what you suggested, but it didn't seem to make any difference, other than mess up the look of the horizontal menu at the top of the site. And it was still loading the same version of Mootools and the Moomenu.js

Can you please confirm exactly which code I should temporarily remove as maybe I am missing something.

Thanks again.

Jax

<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/extended.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorStyle'); ?>.css" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

<?php if ($this->countModules('hornav')): ?>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/js/moomenu.js"></script>
<?php endif; ?>

<style type="text/css">
#sidecol {width: <?php echo ($sidecol_width); ?>px }
#content80 {width: <?php echo 895 - $sidecol_width ?>px }

<style type="text/css">
#hornav ul li ul {width:<?php echo ($dropdown_width); ?>px !important}
#hornav li.active ul li a, #hornav li.active ul li, #hornav li.active ul li a:hover, #hornav li.active ul li.hover #hornav li.active ul li.iehover {background-image: none;}
#hornav li:hover ul ul, #hornav li:hover ul ul ul, #hornav li:hover ul ul ul ul, #hornav li.iehover ul ul, #hornav li.iehover ul ul ul, #hornav li.iehover ul ul ul ul {left: -999em;}
#hornav li:hover ul, #hornav li li:hover ul, #hornav li li li:hover ul, #hornav li li li li:hover ul, #hornav li.iehover ul, #hornav li li.iehover ul, #hornav li li li.iehover ul, #hornav li li li li.iehover ul {left:0; z-index:99999 !important;}
#hornav li li, #hornav li li li {min-width:<?php echo ($dropdown_width); ?>px !important}


<?php if($this->params->get('col_pos') == 'col_l') : ?>
#content80 {float:right; padding-right:15px; padding-left:15px; margin-right:10px;}
#sidecol {float:left; padding:10px 10px 0 10px; margin:10px 0px 0 3px;}
<?php else : ?>
#content80 {float:left; padding-right:15px; padding-left:15px; margin-left:10px;}
#sidecol {float:right; padding:10px 10px 0 10px; margin:10px 0px 0 0px;}
<?php endif; ?>

/*Link Color for Main content*/
h2, h2 a:link, h2 a:visited, .contentheading, .articleHead {color: <?php echo ($articleheadcolor); ?> }
.module h3, .module_menu h3 {color: <?php echo ($modeuleheadcolor); ?> }
a:link, a:visited {color: <?php echo ($linkcolor); ?> }
h1.logo-text a {color: <?php echo ($logocolor); ?> }

</style>

</head>
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
As you appear to be using Joomla 1.5, the code you remove would be slightly different...

<?php if ($this->countModules('hornav')): ?>
<script language="javascript" type="text/javascript" src="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/js/moomenu.js"></script>
<?php endif; ?>

Note that Joomla will load mootools regardless of the template. Removing the above code will simply disable the dropdown script of the template which is the only script within the template that uses mootools.

It may be worth checking if your Kunena issue is present using one of the default Joomla templates. If so it would suggest that these issues are not template related.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks, Ciaran. You are correct, it does not appear to be a template issue, per se. I had tested it with the ja_purity template and all was ok, but that was when it was still ok in Firefox as well, so not a true test.

I will post my fix here anyways, as it may help someone in the future.

First, I changed the Mootools Upgrade Plugin parameters from "on Admin 1.2" to "on Admin 1.12"



This fixed the problem in Mozilla Firefox but not IE9. I added the following code to the head of the templates index.php to resolve the issue in IE9:

<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

I am also curious as to your statement that I am using Joomla 1.5.

I upgraded to 1.5.26 and received a message that the upgrade install was successful, and when I look at System Information it states I have 1.5.26 installed:



Perhaps the upgrade was not as successful as I thought? :unsure:
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Jax.. thank you for posting your solution.

Your upgrade appears to have been successful.

I originally presumed that you were running Joomla 2.5 which would be the latest and most recent version of Joomla.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
We have installed the Horizon template on our new Joomla 3 website and we also mootools problems:

GET http://actual-laser.com/site2014/templates/j51_horizon/css/.css 404 (Not Found) http://oursite.com/:39
Uncaught TypeError: Cannot call method 'getElements' of null dropdown.js:87
Uncaught TypeError: Cannot call method 'getElements' of null dropdown.js:87
Uncaught TypeError: Object [object Object] has no method 'on' tabs-state.js:16

Perhaps it would be better to simply replace this menu or can this be fixed?
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok