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

SHADOW BOX VIDEO WON'T LOAD.


  • Please log in to reply
12 replies to this topic

#1 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 October 2011 - 07:13 PM

I've installed everything right but the video wouldn't load in the shadow box.

When I click a thumbnail, the shadow box pops up with the loading preloader, then the video doesn't play.

Help Please!!

http://www.mindframe...BV63/videos.php

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 05 October 2011 - 07:29 PM

Hi,

I think the issue here is that you have a JS error on page load that is preventing TubePress from initializing correctly. Screenshot: http://i.imgur.com/p5Sak.png. It appears to be related to some FancyBox code that's running on your page. So the first thing to do is fix that error. Let me know if you need help in doing so and I'll try my best. Here is some more information.

Thanks!

#3 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 October 2011 - 07:55 PM

Ok. I deleted those codes because it wasn't necessary. The videos still wouldn't play.

What's my next option?

#4 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 05 October 2011 - 09:33 PM

Ok. I uploaded the files again unto the server to start fresh.

I am accessing the standalone_php.php version and that doesn't work either.
It's the code from the downloaded file. All I changed was the playerLocation, $tubepress_base_url and include.


http://www.mindframe...ll...ne_php.php

#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 07 October 2011 - 12:03 PM

I'm a little stumped on this, actually. It seems that the Ajax request isn't receiving any return data. Screenshot (notice the empty response content): http://i.imgur.com/Fb69c.png. But when you make the exact same request with a web browser, it works fine. I've never seen this behavior before. My hunch is that it has something to do with your server configuration.

To help me debug, would you please swap the contents of sys/ui/static/js/tubepress.js with sys/ui/static/js/tubepress-dev.js? The latter is an uncompressed version of the former. This will allow me to take a closer look at what jQuery is getting back from the Ajax request.

Thanks.

#6 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 07 October 2011 - 02:31 PM

Thanks for the response but i'm not sure how to switch the contents.
If you can guide me i'm sure i'll figure it out.

Thanks

#7 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2011 - 01:21 AM

Ok. For some reason the http://mindframemusi...y/...ne_php.php started to work

but my www.mindframemusic.com/BV63/videos.php webpage still does not work.

What do you think is the problem now?

#8 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 08 October 2011 - 04:53 PM

Hmm looks to me like neither gallery is working. To switch the contents, I would just do some renaming:

  • sys/ui/static/js/tubepress.js -> sys/ui/static/js/tubepress.js.original
  • sys/ui/static/js/tubepress-dev.js -> sys/ui/static/js/tubepress.js
Make sense?

#9 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 October 2011 - 07:53 PM

Yea it seems like the gallery stopped working but it did work.

Ok I switch the contents to what you requested.

#10 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 11 October 2011 - 10:31 AM

Thanks for switching those. I think I figured out what's going on. It appears that JavaScript is (correctly) preventing a cross-domain request. Notice that http://www.mindframe...BV63/videos.php doesn't. Basically, JavaScript won't perform any requests unless they're headed to the exact hostname "mindframemusic.com". See same-origin policy for reference.

OK, so how to we fix this? I believe the easiest solution would be to just set $tubepress_base_url to use http://www.mindframemusic.com instead of mindframemusic.com. e.g.

$tubepress_base_url = "http://mindframemusic.com/BV63/gallery";
Give that a whirl and let me know how it works for you.

#11 David B

David B

    Member

  • Members
  • PipPip
  • 10 posts

Posted 11 October 2011 - 01:29 PM

Dude you're a genius!! Thanks..it works well..Great script btw..

#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 11 October 2011 - 08:20 PM

Whew! If that didn't work then I was completely out of ideas. Glad you're up and running. Thank you!

#13 Pawel Pawel

Pawel Pawel

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 17 October 2011 - 03:50 AM

Hi,

I am having exaclty the same issue but cannot find the $tubepress_base_url ="" anywhere....

Could you let me know where should I change (or add) this and any sample code will be usefull.

many thanks in advance
Pawel