By Paul Murray on Friday, 26 January 2018
Posted in General
Likes 0
Views 814
Votes 0
Hello Stack Ideas

I backed up every thing and still something went wrong.
The attached file pulls a custom image from a folder if it is not possible to display a thumbnail.

Kindly also see the first attached file.

You can see where this is broken and logging as a front end admin and going here and looking for video 8.

https://www.finalbug.net/groups-learn-post-production-socially-fcpx-and-more/34-fcpx-foundations-videos/videos

The file in question is located here:

/public_html/templates/vanilla/html/com_easysocial/videos/default/item.php

This seems to be relate to this here:


if (empty($videoThumb)) {
$videoThumb = 'https://www.finalbug.net/images/LogosCO/Video-Thumb-Wildcard.jpg';
}


Please help me fix this.

I want to finally launch my shop on Monday and this is the last thing I need

thank you

Paul
I have checked that video and it seems like that "video 8" has a thumbnail which points to "https://www.finalbug.net/media/com_easysocial/images/defaults/videos/cover.jpg".

I have made some modifications in that item.php file so that the code looks like this now:


if (empty($videoThumb) || $videoThumb == 'https://www.finalbug.net/media/com_easysocial/images/defaults/videos/cover.jpg') {
$videoThumb = 'https://www.finalbug.net/images/LogosCO/Video-Thumb-Wildcard.jpg';
}
·
Friday, 26 January 2018 01:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

You have no idea how grateful I am.
I am sure this kind of stuff drives you nuts.
It sure as hell drives me nuts.

What you did obviously fixed the thumbnail thing.

There was one minor challenge and that is I had to re-submit the video to get it to show up once i navigated to it!!!

But it worked.

I believe that this is related to this file which Arlex edited at some point and which I am attaching below.

JoomlaFolder/administrator/components/com_easysocial/includes/crawler/crawler.php

Much of this stuff has probably been broken for a while.

It is just that I never noticed because I never re-edited a video description in ES/Videos.

thanks for your patience

Paul

PS

Is there any chance of this becoming a standard feature?
(i.e. being able to pull videos from Vimeo or similar7with a thumbnail that the user can define if necessary)

If not I will look at a way of doing all of the loading and navigating of videos inside the video that loads!
I am at Inmotion these days and they are a lot more liberal with uploading videos = space on their servers.

Because:

Whilst this works at the moment it feels like being Sergei Eisenstein.

https://en.wikipedia.org/wiki/Sergei_Eisenstein

Who ran out of glue whilst editing his first film and ended up literally sticking pieces of it together with his own Saliva.

From the original post thanks to one of your Support Heroes:

If you would like to customise like the video thumbnail URL or the video width or height, you have to manually add it from the php file which i mentioned at the following code.



// LINE 118
// custom for vimeo
if ($info['host'] == 'vimeo.com' || $info['host'] == 'player.vimeo.com') {
$oembed = new stdClass();

// Hard code the neccessary value.
$oembed->height = 270;
$oembed->width = 480;
$oembed->html = '<iframe width="' . $oembed->width . '" height="' . $oembed->height . '" src="//http://player.vimeo.com/video'. $info['path'] .'" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
$oembed->thumbnail = '';
$oembed->thumbnail_url = '';

$result->oembed = $oembed;
}

·
Friday, 26 January 2018 17:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

I do apologise for this because i still not quite understand you here whether the issue resolved or the issue still persists.

Can you try describe again with your current issue step by step so I can follow up with your current issue?

And which file you modified currently.
·
Friday, 26 January 2018 20:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arlex

It works and I do not want to be ungreatfull but it is not idiot proof.

Like hey, I can break it very easily.

Again the issue is resolved

Thanks to you & Mark

But I am just thinking aloud here... in the long run


  • Either this becomes a "normal" feature.
  • Or I find another way to do this eg using videos in some kind of package.


The way I am navigating from video to video is also kind of a night mare. Here is an eg of a Video Description:


{source}[[a href="http://bit.ly/2sIpM1u"]]◀ Previous [[/a]]{/source}


It is possible to set up multiple Events and select an Event to determine into which Event your material is placed. You can also move material after the Event!



{source}[[a href="http://bit.ly/2taEjng"]]Next ▶[[/a]]{/source}


Which displays as:

◀ Previous It is possible to set up multiple Events and select an Event to determine into which Event your material is placed. You can also move material after the Event! Next ▶


(Previous = Previous Video & Next = Next Video)

It ALL works but it is like building a house on sand or sticking film together with saliva rather than glue!

I need to do more research but I am kind of wondering about something like this:

https://www.hdwplayer.com/standalone/web-video-player-installation/

And trying to plug the videos into the Standard ES interface which I still love because of the Social element

Maybe you have some thoughts? Insights?
·
Friday, 26 January 2018 20:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

Not a problem at all. My suggestion is instead of manually placing all of this in the video description, you should hack the template override files to display a next / previous link on the video item page.

Alternatively, submit a feature requests on our feature requests section and get more votes from our community of customers
·
Friday, 26 January 2018 23:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

Not a problem at all. My suggestion is instead of manually placing all of this in the video description, you should hack the template override files to display a next / previous link on the video item page.


That is a very good idea.

And yes I need to post this as a Feature Request

Alternatively, submit a feature requests on our feature requests section and get more votes from our community of customers


thanks

Paul
·
Friday, 26 January 2018 23:21
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Paul! Have a great weekend ahead!
·
Saturday, 27 January 2018 00:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post