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;
		}
 
				
			
Bookmarks