Results 1 to 4 of 4

Thread: More than 3 screen shot thumb

  1. #1
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default More than 3 screen shot thumb

    It will be grate if can add more than 3 screen shot thumb for videos.

  2. #2
    Join Date
    Apr 2008
    Posts
    11

    Default Re: More than 3 screen shot thumb

    This can be done by changing this line (*note: you need to dezend a few file which is related or ask for desneded version)

    for (; $i < 3; ++$i)

    Code:
    				if (!empty($_POST['embedded_code_image'][0]))
    				{
    						$embedded_image = $_POST['embedded_code_image'];
    						$destination = $config['basedir'] . "/thumb/" . $video_id . ".jpg";
    						$source = $embedded_image[0];
    						download($source, $destination);
    						$j = 0;
    						$i = 0;
    						for (; $i < 3; ++$i)
    						{
    								++$j;
    								if (!empty($embedded_image[$i]) || strstr($embedded_image[$i], ".jpg"))
    								{
    										$destination = $config['basedir'] . "/thumb/" . $j . "_" . $video_id . ".jpg";
    										echo "
    ";
    										$source = $embedded_image[$i];
    										download($source, $destination);
    								}
    								else
    								{
    										$destination = $config['basedir'] . "/thumb/" . $j . "_" . $video_id . ".jpg";
    										copy($config['basedir'] . "/templates/images/no_thumbnail.gif", $destination);
    								}
    								break;
    						}
    				}
    				else
    						if (!empty($_FILES['embedded_code_image_local']['tmp_name'][0]))
    						{
    								$fd = $config['basedir'] . "/thumb/" . $video_id . ".jpg";
    								$maxwidth = $config['img_max_width'];
    								$maxheight = $config['img_max_height'];
    								video_thumb::create_thumb($_FILES['embedded_code_image_local']['tmp_name'][0], $fd, $maxwidth, $maxheight);
    								$j = 0;
    								$i = 0;
    								for (; $i < 3; ++$i)
    								{
    										++$j;
    										if (!empty($_FILES['embedded_code_image_local']['name'][$i]) || $_FILES['embedded_code_image_local']['type'][$i] == "image/jpeg")
    										{
    												$fd = $config['basedir'] . "/thumb/" . $j . "_" . $video_id . ".jpg";
    												video_thumb::create_thumb($_FILES['embedded_code_image_local']['tmp_name'][$i], $fd, $maxwidth, $maxheight);
    										}
    										else
    										{
    												copy($config['basedir'] . "/templates/images/no_thumbnail.gif", $config['basedir'] . "/thumb/" . $j . "_" . $video_id . ".jpg");
    										}
    								}
    						}
    				$msg = "Video Added";
    				$success = 1;
    		}

  3. #3
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: More than 3 screen shot thumb

    Actually, you can do this without any dezending required. Edit your class.video_thumb.php file in your include/classes directory.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  4. #4
    Join Date
    Dec 2008
    Posts
    156

    Default Re: More than 3 screen shot thumb

    About Me : .bg2 { background-color:#d9e1cc; }

    Btw: I get a "Cannot redeclare class 'user' " error at first time opening for a day.

Similar Threads

  1. Max Thumb Across On New Videos
    By scwebmaster in forum Template Modifications
    Replies: 0
    Last Post: 07-27-2008, 09:31 AM
  2. Thumb Pics
    By browniegirl in forum Template Modifications
    Replies: 4
    Last Post: 02-19-2008, 08:40 PM
  3. .3gp no sound, .mp4 no thumb
    By tradertt in forum Installation Support
    Replies: 2
    Last Post: 09-05-2007, 08:39 AM
  4. Cant convert to flv and no thumb
    By CHICAN0 in forum Installation Support
    Replies: 15
    Last Post: 06-27-2007, 11:19 AM
  5. How to set new video and recent view more than 4 shot.
    By ytan in forum Installation Support
    Replies: 0
    Last Post: 06-12-2007, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •