Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Thumbnails sometimes display, sometimes not JQUERY?


  • Please log in to reply
4 replies to this topic

#1 Matt Standal

Matt Standal

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 January 2012 - 04:20 PM

Hello Everyone:

I'm a professional multimedia journalist who is trying to use Tubepress to upload Youtube news videos in a nice gallery format on my Wordpress website:

http://www.mattstand.../video-gallery/

I've embedded this playlist code on my page

[tubepress mode="playlist" playlistValue="1D3BBA5865F5695B"]

The problem I'm experiencing comes from the fact that only sometimes do my thumbnails display. Other times, only a single embedded video appears.

I believe the problem possibly comes from multiple instances of jquery in the header of my page. However, I don't know how to determine or fix my suspected problem. Can anyone help me with this problem?

Thanks for looking.

-Matt

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 18 January 2012 - 07:36 PM

Hi Matt,

Your hunch is right; you're loading two copies of jQuery.

You'll want to get rid of the latter. Looks like it's loaded from your theme, so you can probably just edit your theme's header.php and take out that line. That should make your gallery much more reliable. Let us know if you continue to experience trouble.

#3 Matt Standal

Matt Standal

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 January 2012 - 09:38 PM

Thanks for the suggestion Eric!

I removed these two suspicious lines in my header:



[/code]

However, my video gallery still seems to be misbehaving: http://www.mattstand.../video-gallery/

I'm using Google Chrome's java console and I'm still getting the following three javascript errors:

1.Uncaught ReferenceError: $ is not defined

w. Unsafe JavaScript attempt to access frame with URL https://plusone.goog...t...C_resizeMe. Domains, protocols and ports must match.

3. Unable to post message to http://www.mattstandal.com.

Am I correct in assuming that since these three scripts are still returning errors that Tubepress will not function correctly on my page?


Thanks for your help.

-Matt

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 19 January 2012 - 05:34 PM

Hi Matt,

It's looking better - I'm able to play the videos in your gallery normally.

You can get rid of the first error by changing

<script type="text/javascript">
$(document).ready(function(){
if(!$.browser.msie) $("ul li").hover(function() {$(this).siblings().stop().fadeTo(400,0.4);}, function() { $(this).siblings().stop().fadeTo(400,1); });
});
</script>
to

<script type="text/javascript">
jQuery(document).ready(function(){
if(!jQuery.browser.msie) jQuery("ul li").hover(function() {jQuery(this).siblings().stop().fadeTo(400,0.4);}, function() { jQuery(this).siblings().stop().fadeTo(400,1); });
});
</script>
The other errors probably won't hurt TubePress at all. Good luck!

#5 Matt Standal

Matt Standal

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 January 2012 - 01:52 PM

Hey Eric et. all,

First off, I'm glad you are helping me out with this problem. I really can't say thanks enough.

Secondly, I took your advice and switched substituted the jQuery command for the $ command. However, my java console now tells me that jQuery is not defined. I'm still presented with a few concerning errors including this one:

1. Uncaught ReferenceError: jQuery is not defined

http://www.mattstand.../video-gallery/

I did a quick google search and I'm thinking that there's a permission problem in my director whereas the header script for my theme is not able to reference the newest version of jQuery that comes pre-loaded with the most current version of Wordpress.

I'm going to try to switch to MS explorer with the firebug plugin in an attempt to diagnose the rest of my problems. Will this help me debug, or do I need to buy some drinks for a programmer and hope they help me?

Thanks!

-Matt