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

Fancybox Not Working


Best Answer Corwyn Friesen, 02 April 2013 - 04:45 PM

Yup...that worked...thanks!

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Corwyn Friesen

Corwyn Friesen

    Member

  • Members
  • PipPip
  • 23 posts

Posted 01 April 2013 - 07:41 PM

I just am trying the new version of TubePress 3.0.1 and for some reason cannot get FancyBox working.

 

After checking the Showcase Gallery (http://tubepress.com...cation_fancybox) ... it doesn't appear to be working there either.

 

Any guidance would be great...thanks!



#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2,787 posts

Posted 02 April 2013 - 03:57 PM

Thanks for reporting this. It's definitely a bug. The fix is to replace the contents of your copy of tubepress_pro_3_0_0/src/main/web/players/fancybox/fancybox.js with the following:
(function(b,h){var a="fancybox",c=h.Beacon.subscribe,j=h.DomInjector,k=h.Environment.getBaseUrl()+"/src/main/web/vendor/fancybox/",d="tubepress.playerlocation.",i=function(){return h.Lang.Utils.isDefined(b.fancybox)},f=function(){if(!i()){j.loadJs(k+"jquery.fancybox-1.3.4.js");j.loadCss(k+"jquery.fancybox-1.3.4.css")}},e=function(q,n,l,m,p,o){if(n!==a){return}b.fancybox.showActivity()},g=function(r,o,s,m,l,n,q,p){if(o!==a){return}b.fancybox({content:m,height:parseInt(l,10)+5,width:n,autoDimensions:false,title:s})};c(d+"invoke",e);c(d+"populate",g);f()}(jQuery,TubePress));
 
The bug also affects the TinyBox and "detached" player locations. So if anyone reading this is using those, here are the relevant replacements:
 
tubepress_pro_3_0_0/src/main/web/players/tinybox/tinybox.js
(function(b,h){var a="tinybox",d="tubepress.playerlocation.",c=h.Beacon.subscribe,j=h.Environment.getBaseUrl()+"/src/main/web/vendor/tinybox/",i=h.DomInjector,e="#tinycontent",f=function(p,m,k,l,o,n){if(m!==a){return}TINY.box.show("",0,l,k,1)},g=function(o,l,q,n,r,k,p,s){if(l!==a){return}var m=b(e);if(m.width()!==parseInt(k,10)){setTimeout(function(){g(o,a,q,n,r,k,p,s)},10)}else{b(e).html(n)}};if(!h.Lang.Utils.isDefined(window.TINY)){i.loadJs(j+"tinybox.js");i.loadCss(j+"style.css")}c(d+"invoke",f);c(d+"populate",g)}(jQuery,TubePress));
 
tubepress_pro_3_0_0/src/main/web/players/detached/detached.js
(function(c,i){var a="detached",d=i.Beacon.subscribe,f="tubepress.playerlocation.",b="#tubepress_detached_player_",e=i.Ajax.LoadStyler,g=function(p,m,k,l,o,n){if(m!==a){return}var j=b+n;e.applyLoadingStyle(j);c(j)[0].scrollIntoView(true)},h=function(n,l,p,m,q,j,o,r){if(l!==a){return}var k=b+r;c(k).html(m);e.removeLoadingStyle(k)};d(f+"invoke",g);d(f+"populate",h)}(jQuery,TubePress));
I've already corrected the problem on tubepress.org. Thanks again for the report!

#3 Corwyn Friesen

Corwyn Friesen

    Member

  • Members
  • PipPip
  • 23 posts

Posted 02 April 2013 - 04:45 PM   Best Answer

Yup...that worked...thanks!