The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Apr 06, 2012 7:10 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 06, 2012 7:01 am
Posts: 4
HI, I have installed a new Joomla template called TFJ One (http://demo.templatesforjoomla.eu/joomla25/tfj-one-j25/) and I've installed the Nivo Slider module. If I use the default Atomic template on my site, this module works fine. When I use the TFJ One template, I get an error as it attempts to load the slideshow -

Line: 67
Error: Object doesn't support this property or method

This is what appears on line 67 (see line in bold) -

<script type="text/javascript">
jQuery.noConflict();
jQuery(window).load(function() {
jQuery('#vt_nivo_slider90').nivoSlider({

I've been looking at this for ages now and I can't work out what is wrong. I've looked at the TFJ One premium template which I can buy and this actually uses Nivo Slider, so I know it is possible to get this to work. Can anyone advise me where I am going wrong? I'd like to understand this after looking at it for so long!

My test site address is http://www.richarddownes.co.uk/Stake


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 7:19 am 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Nov 21, 2011 6:31 am
Posts: 253
it is becuase of the two times declaration of jquery. Disable one jQuery declaration.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 7:30 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 06, 2012 7:01 am
Posts: 4
Thanks for the reply, but I'm not sure what you mean - can you explain? How do I disable this?


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 8:15 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 06, 2012 7:01 am
Posts: 4
I've figured this out now - removed the jQuery ref in index.php of this folder - templates/tfjone. Thanks for pointing me in the right direction


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 2:03 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 06, 2012 7:01 am
Posts: 4
By removing this line, I now seem to have introduced another error! If I set the slideshow to only show on the 'Home' page, when I navigate to any other page (e.g. 'About Us') I get these errors -

Line: 1
Error: 'jQuery' is undefined

Line: 13
Error: 'jQuery' is undefined

Line: 30
Error: Object doesn't support this property or method

Line: 1
Error: Object expected

I believe this relates to the menu which is trying to load the java from the line I removed earlier. If I click OK to the debugger, the page and menus load OK, but can anyone tell me how I can get this to work without having the slideshow displayed on every page?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group