No video thumbnails

17 years 4 months ago #24448 by holsum
No video thumbnails was created by holsum
I am running a video site that uses zoom and I have to mannually add in my thumbnails. So the zoom tab isn't displayng the thumnbs becuase it is looking for a thumb of the same file type. (i.e.- surf01.flv) The actaul Thumb is surf01.jpg.

I am sure if I knew beter php I could add in a simple code change to the plug-in that would remove the .flv/ .mov/ .wmv and replace it with .jpg.

Any help?

Thanks,
-holsum

Please Log in to join the conversation.

17 years 4 months ago #24812 by zonekris
Replied by zonekris on topic Re:No video thumbnails

No thumbnail when i upload movie (mpeg...)in Plugin !
In component CB2 : Its OK

I have a red cross, and if i tried a right clic www.xxx.com/images/zoom/GAHSCF/thumbs/xxx.mpeg)

Any solution for a unique picture for movie ?

Thanks


I have same problem!!!!:dry: :S

Please Log in to join the conversation.

17 years 2 months ago #28706 by mejim707
Replied by mejim707 on topic Re:No video thumbnails
This is what I did...

I replaced line 92 $thumbphoto = $photo->imgfilename;

With

$text = $photo->imgfilename;
$find = array('mpg' , 'mpeg', 'avi', 'flv', 'mov', 'wmv');
$replace = 'jpg';
$thumbphoto = str_replace($find, $replace, $text);

Badabing!

I just need to figure how to link to the image/video not the gallery... Any help would be great!

Please Log in to join the conversation.

17 years 2 months ago #28707 by mejim707
Replied by mejim707 on topic Re:No video thumbnails
Final, Found a helpful link but the code was a bit messed up. I fixed it and here it is!!!

1.in the following file :
../components/com_profiler/plugin/user/plug_cbzoomtab/zoom.php

replace nearly line 108 )

$return.= "<a href=\"".sefRelToAbs("index.php?option=com_zoom".$itemurl."&catid=".$photo->catid)."\">"

With This...

$return.= "<a href=\"".sefRelToAbs("index.php?option=com_zoom".$itemurl."&page=mmx_cb&catid=".$photo->catid)."&key={$photo->imgid}&mmxPicID={$photo->imgid}\">"

Then in File :
../components/com_zoom/zoom.php

right after nearly line 101:
switch($page)

add these lines :
//majidmx (majidfn@yahoo.com) => added these lines so we can view the images directly from cb , by clicking on their thumbnail in zoom tab in CB
//All rights reserverd to MajiD Fatemian (majidfn@yahoo.com)
case 'mmx_cb':
$mmxPicID=mosGetParam($_REQUEST,'mmxPicID',NULL);
$mmxPicCatID=mosGetParam($_REQUEST,'catid');
for($i=0;$i<count($zoom->_gallery->_images);$i++){
$zoom->_gallery->_images[$i]->getInfo();
if($zoom->_gallery->_images[$i]->_id==$mmxPicID){
mosRedirect("?option=com_zoom&page=view&catid={$mmxPicCatID}&key={$i}");
}
}
break;
//end of majidmx(majidfn@yahoo.com)

This was a very helpful post from mister majidmx

VAVAVOOM!!! You now can see video thumbs and click them to be directed to the file itself!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.228 seconds

Facebook Twitter LinkedIn