Hello ,
I would like to modify this script a bit . It is a video upload script for my site . The php content contains all the neccessary fields and upload via browse files only . I would like to make it another optional such as remote/url upload . There have to be 2 optional uploads , whether via browse file or url upload . The php script is below : -
{literal}
<script type="text/javascript">
var video_allowed_extensions = /(avi|mpg|mov|asf|mpeg|xvid|divx|3gp|mkv|3gpp|mp4|rmvb|rm|dat|wmv|flv|ogg)$/i;
</script>
{/literal}
<script type="text/javascript" src="{$baseurl}/js/jquery.upload-0.1.php"></script>
<div id="content">
{include file="memberside.tpl"}
<!-- RIGHT -->
<div class="right span-653">
<div class="box">
<div class="bsub"> </div>
<div class="btitle"><h2>{$lang327|upper}</h2></div>
<div class="binfo font-12 font-bold">
{$lang328}
</div>
<br>
<div id="upload_video_form">
<form name="uploadVideo" id="uploadVideo" method="post" enctype="multipart/form-data" target="_self" action="{$baseurl}/upload/video">
<input type="hidden" name="MAX_FILE_SIZE" value="1048576000" />
<input type="hidden" name="UPLOAD_IDENTIFIER" id="UPLOAD_IDENTIFIER" value="{$upload_id}" />
<input type="hidden" name="video_upload_started" />
<div class="separator">
<label for="upload_video_title">{$lang329}:</label>
<input name="video_title" type="text" value="" id="upload_video_title" class="large" /><br />
<span id="video_title_error" class="error" style="display: none;">{$lang330}</span>
</div>
<div class="separator">
<label for="upload_video_details">{$lang647}:</label>
<textarea name="video_details" id="upload_video_details"></textarea><br />
</div>
<div class="separator">
<label for="upload_video_keywords">{$lang17}:</label>
<textarea name="video_keywords" id="upload_video_keywords"></textarea><br />
<span class="expl">{$lang331}</span><br />
<span id="video_tags_error" class="error" style="display: none;">{$lang332}</span>
</div>
<div class="separator">
<label for="upload_video_paysite">{$lang333}:</label>
<input name="video_paysite" type="text" value="" id="upload_video_paysite" class="large" />
</div>
<div class="separator">
<label for="upload_video_category">{$lang133}:</label>
<select name="video_category" id="upload_video_category">
<option value="0" selected="selected">-----</option>
{insert name=get_categories assign=cat}
{section name=i loop=$cat}
<option value="{$cat[i].CATID}">{$cat[i].name}</option>
{/section}
</select><br />
<span id="video_category_error" class="error" style="display: none;">{$lang334}</span>
</div>
<div class="separator">
<label for="upload_video_file">{$lang142}:</label>
<input name="video_file" type="file" id="upload_video_file" /><br />
<span id="video_file_error" class="error" style="display: none;">{$lang335}</span>
<span id="video_file_ext_error" class="error" style="display: none;"></span>
</div>
<br>
<div class="separator">
<label for="upload_video_anonymous_no">{$lang135}:</label>
<input name="video_anonymous" type="radio" value="no" id="upload_video_anonymous_no" class="radio" checked="checked" />
<span class="radio">{$lang136}</span><br>
<label for="upload_video_anonymous_yes"> </label>
<input name="video_anonymous" type="radio" value="yes" id="upload_video_anonymous_yes" class="radio" />
<span class="radio">{$lang137}</span>
</div>
<div class="separator">
<label for="upload_video_privacy_public">{$lang336}:</label>
<input name="video_privacy" type="radio" value="public" id="upload_video_privacy_public" class="radio" checked="checked" />
<span class="radio">{$lang337}</span><br>
<label for="upload_video_privacy_private"> </label>
<input name="video_privacy" type="radio" value="private" id="upload_video_privacy_private" class="radio" />
<span class="radio">{$lang338}</span>
</div>
<br>
<div id="upload_loader" style="display: none;">
<img src="{$imageurl}/ajax-loader.gif">
</div>
<div id="upload_status" style="display:none;">
<div id="upload_progress"><div class="bar" style="width: 0;"> </div></div>
<div class="upload_info">
<div id="upload_time"></div>
<div id="upload_size"></div>
<div class="clear"></div>
</div>
</div>
<div id="upload_message" style="display: none;"></div>
<div class="separator">
<label for="upload_video_submit"> </label>
<input name="submit_upload_video" type="button" id="upload_video_submit" value="{$lang339}" class="button" />
</div>
</form>
</div>
<br />
<div class="binfo font-12 font-bold">
{$lang340}
</div>
<br />
</div>
</div>
<!-- RIGHT END -->
<!-- rem div here -->
<div class="clear"></div>
</div>