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

Wordpress to 3.5 created display problem


  • Please log in to reply
1 reply to this topic

#1 James Fischerle

James Fischerle

    Member

  • Members
  • PipPip
  • 29 posts

Posted 26 December 2012 - 01:32 PM

I upgraded to Wordpress 3.5, I wish they didn't create new upgardes every week they always cause problems. Now our Tubepress pro page is displaying thumbnails portrait size as opposed to landscape which is how it's still set in my tubepress settings. Any ideas to help?

thanks!

James

issue viewable at: http://trouperproductions.com/media/

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 31 December 2012 - 01:08 AM

Hi James,

I think there are two issues here. First, some of the thumbnails look stretched because for some reason Vimeo is serving up the thumbnail images with different aspect rations. For instance, look at these two samples from your gallery:

Why Vimeo would do that, I have no clue. I think an easy solution would be to:

  • Create and activate a custom TubePress theme. This will protect your changes when you upgrade TubePress

  • In your theme's copy of gallery.tpl.php, change line 39 from

    <img alt="<?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?>" src="<?php echo $video->getThumbnailUrl(); ?>" width="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_WIDTH}; ?>" height="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_HEIGHT}; ?>" />
    to

    <img alt="<?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?>" src="<?php echo $video->getThumbnailUrl(); ?>" width="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_WIDTH}; ?>" />
That should prevent the stretching that you're seeing.

Second, your site is suffering from cross-domain Ajax that needs to be addressed. Specifically, your site's domain is trouperproductions.com, but TubePress is being loaded from alexwinter.com.

Does that make sense? Let us know how we can help you implement these changes. Thanks!