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
11 years 2 months ago #136890 by Jon Ward
nuContent Scroller Problems was created by Jon Ward
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">
<script src="jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/highslide/highslide-full.js">
<script src="jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/upgFlickrSuite-highslide.js">
.
.
.

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">
<script src="jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/highslide/highslide-full.js">
<script src="jon-ward.com/7dw2/plugins/system/flickrsuiteimageviewer/scripts/upgFlickrSuite-highslide.js">
.
.
.

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
11 years 2 months ago - 11 years 2 months ago #136891 by Yiota
Replied by Yiota on topic nuContent Scroller Problems
Hello Jon,

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

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Jon Ward
  • Jon Ward's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #136892 by Jon Ward
Replied by Jon Ward on 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
11 years 2 months ago #136893 by Yiota
Replied by Yiota on 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');

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Jon Ward
  • Jon Ward's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #136894 by Jon Ward
Replied by Jon Ward on 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