
Thumbnails not displayed correctly until reloaded
#1
Posted 31 December 2011 - 04:07 PM
I setup tubepress to display in SOLO mode inside a div. When first visiting the page, the thumbnails show up vertically all messed up but once I click a link and go back to that page, they show up fine. I'm noticing this on Safari. Here's the link: http://vgtvnow.com/_.../runningonjava/ (click videos tab).
Any help would be appreciated!
Thanks,
JPH
#2
Posted 01 January 2012 - 11:16 PM
Sorry that you're having some trouble getting your thumbnails to layout correctly. We should be able to get it fixed up. Do you experience the problem if you revert back to the "default" TubePress theme? If so, please revert back to the "default" theme now and I'll be glad to take a look for you. Everything else looks good to me, so hopefully it will be a simple CSS fix.
Thanks and Happy New Year!
#3
Posted 02 January 2012 - 10:11 AM
#4
Posted 02 January 2012 - 07:45 PM
Thanks!
#5
Posted 02 January 2012 - 07:46 PM
First thing we need to figure out is what's constraining the width of the gallery to 100px. Here's a screenshot of what I'm talking about: http://i.imgur.com/uGd8o.png. It seems like there's some JavaScript somewhere that's explicitly setting the width of this div to 100px, which is in turn squishing your gallery to that narrow column. Do you have any idea what might be doing that?
Also, in videos.php I would change
<?php print TubePressPro::getHtmlForHead(true); ?>to
<?php print TubePressPro::getHtmlForHead(false); ?>since you're already including jQuery elsewhere. This will speed up your load time and could cause lots of other weirdness with TubePress.
#6
Posted 03 January 2012 - 08:20 AM
Thanks! Sorry I'm being a pain!
#7
Posted 03 January 2012 - 01:17 PM
Also, I tried removing the iframe and just using the php to invoke tubepress. While it showed up correctly, I couldn't click any video links, and once I clicked "prev" or "1" and "2" it reloaded the whole page.
My gut is telling me that this option will be the easiest to get working. Would you mind setting it up like this again so I can take a first-hand look?
#8
Posted 03 January 2012 - 08:04 PM
#9
Posted 03 January 2012 - 08:50 PM
<?php print TubePressPro::getHtmlForHead(true); ?>to
<?php print TubePressPro::getHtmlForHead(false); ?>Please give that a go and let me know how it works. Thanks!
#10
Posted 03 January 2012 - 09:05 PM
**update** Since I removed the iframe, videos.php isn't part of my page anymore. That was holding all the code for the tubepress. Now tubepress is invoked inside that div.
#11
Posted 03 January 2012 - 09:20 PM
- http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro/sys/ui/static/js/jquery-1.6.1.min.js
- http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
<?php print TubePressPro::getHtmlForHead(false); ?>
#12
Posted 03 January 2012 - 09:56 PM
#13
Posted 03 January 2012 - 10:03 PM
To fix this, you'll need to move the getHtmlForHead() call to somewhere below the jQuery include from googleapis.com. i.e. right now in your HTML head we have
... <script type="text/javascript">function getTubePressBaseUrl(){return "http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro/";}</script> <script type="text/javascript" src="http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro//sys/ui/static/js/tubepress.js"></script> <link rel="stylesheet" href="http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro//sys/ui/themes/default/style.css" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/Quicksand_Book_400.font.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> ...but we want to make it look like
... <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/Quicksand_Book_400.font.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> <script type="text/javascript">function getTubePressBaseUrl(){return "http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro/";}</script> <script type="text/javascript" src="http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro//sys/ui/static/js/tubepress.js"></script> <link rel="stylesheet" href="http://www.vgtvnow.com/_4/players/runningonjava/tubepresspro//sys/ui/themes/default/style.css" type="text/css" /> ...
#14
Posted 03 January 2012 - 10:40 PM
Thanks!!
#15
Posted 03 January 2012 - 10:56 PM
#16
Posted 03 January 2012 - 11:07 PM
