Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

nuContent Scroller Problems

  • Jon Ward
  • Jon Ward's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #136890 by Jon Ward
Jon Ward created the topic: nuContent Scroller Problems
I have created a nuContent Item Module using the Scroller sub-template.

With Joomla Debug on, the scroller works. WithJoomla Debug off, the scroller does not work.

The only differences between the HTML output is the order of the behaviour.js file...

With Debug enabled...
.
.
.
<script src="/7dw2/media/system/js/tabs.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/mootools-core-uncompressed.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/core-uncompressed.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/caption-uncompressed.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/jquery.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/bootstrap.js" type="text/javascript"></script>
<script src="/7dw2/templates/numuzik/js/behaviour.js" type="text/javascript"></script>
<script src=" maps.googleapis.com/maps/api/js?sensor=false " type="text/javascript"></script>
<script src=" jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/highslide/highslide-full.js " type="text/javascript"></script>
<script src=" jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/upgFlickrSuite-highslide.js " type="text/javascript"></script>
.
.
.

With debug disabled...
.
.
.
<script src="/7dw2/media/system/js/tabs.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/core.js" type="text/javascript"></script>
<script src="/7dw2/media/system/js/caption.js" type="text/javascript"></script>
<script src="/7dw2/templates/numuzik/js/behaviour.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/jquery.min.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
<script src="/7dw2/media/jui/js/bootstrap.min.js" type="text/javascript"></script>
<script src=" maps.googleapis.com/maps/api/js?sensor=false " type="text/javascript"></script>
<script src=" jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/highslide/highslide-full.js " type="text/javascript"></script>
<script src=" jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/upgFlickrSuite-highslide.js " type="text/javascript"></script>
.
.
.

I think the problem is that behaviour.js requires jquery to work.

Thanks,
Jon

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

More
6 years 1 month ago - 6 years 1 month ago #136891 by Yiota Ziaggou
Yiota Ziaggou replied the topic: nuContent Scroller Problems
Hello Jon,

behaviour.js indeed requires the jQuery library otherwise it won't work properly.

Note to new users: Please remember to search the forum before posting a question!

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

  • Jon Ward
  • Jon Ward's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #136892 by Jon Ward
Jon Ward replied the topic: nuContent Scroller Problems
OK, So, how do I force behaviour.js to get loaded AFTER jquery? That's the problem. It's getting loaded BEFORE jquery.

Jon

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

More
6 years 1 month ago #136893 by Yiota Ziaggou
Yiota Ziaggou replied the topic: nuContent Scroller Problems
Open helper.php file in templates/numuzik/includes/ and right above

$document->addScript(JURI::base(true).'/templates/'.$this->template.'/js/behaviour.js');

add the following:

JHtml::_('jquery.framework');

Note to new users: Please remember to search the forum before posting a question!

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

  • Jon Ward
  • Jon Ward's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #136894 by Jon Ward
Jon Ward replied the topic: nuContent Scroller Problems
Thanks - that seems to have solved the problem I was having.

Have you guys thought about getting rid of the mootools requirement?

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


Powered by Kunena Forum