vodkabears / Vide

No longer actively maintained.
http://vodkabears.github.io/vide/
MIT License
3.29k stars 523 forks source link

Poster Path #138

Open Wmas opened 9 years ago

Wmas commented 9 years ago

I am developing an application where the users can create their own sites. When the user exports the site to his/her own server the poster path is automatically set to " background-image: url("http://buildeasy.nl/videos/poster_1.jpg");" , which is the address of the application.

This will cause, in the live site that the poster will not be found! How can I change this to: " background-image: url("videos/poster_1.jpg");" so that the poster will be found no matter where the site will be uploaded?

Any help will be appreciated.

NOTE: The above mentioned link will not work because I am developing locally (MAMP PRO on MAC). This is the address where the application will be uploaded when ready.

NB. Thanks to share this plugin. This is the best I could find over there.

Franco

ghost commented 9 years ago

Um, what are you developing this in? WordPress?

Wmas commented 9 years ago

I am developing the application in Laravel 5. Everything is working properly, I only would like to have some control over the "path" var .

ghost commented 9 years ago

I'm not familiar with Laravel, but maybe this: http://stackoverflow.com/questions/23059918/laravel-get-base-url

Or I'm sure you could use just good 'ol PHP: http://stackoverflow.com/questions/6768793/get-the-full-url-in-php