.id
4921
.gutitle
f_create_video
.title
f_create_video
.file
.extension
.name
.user_id
7
.notes
.body
<var _status = "">

<if isDefined("POST.yes_create") AND POST.yes_create EQ 1>

<!--- validate --->
<var _status = 1>

<!--- status is 1? insert! --->
<if _status EQ 1>
<insert orb="f"
name="#POST.name#"
title="#POST.title#"
gutitle="#POST.gutitle#"
notes="#POST.notes#"
body="#POST.body#"
ytid="#POST.ytid#">
<if isNumeric(return) AND return GT 1>
<goto url="http://fentriss.com/">
<BREAK>
<else>
<var _status = "That unique title is already taken.">
</if>
</if>

</if>


<!--- form --->

<postform>

<tag.unit_css>

<div style="width:500px;">

<if _status NEQ "">
<div style="padding:7px; background:##ffa; border:1px solid #C.g3#;">
<b>Please Try Again</b>
<p>
#_status#
</p>
</div>
<div>&nbsp;</div>
</if>

<h3>1. Basic Information</h3>

<ensure variable="POST.name" value="">
<div class="unit">
<div class="unit_left">
In:
</div>
<div class="unit_right">
<select name="name" id="name">
<option value="">(choose)</option>
<loop collection="#GLOBAL.Def.in_lookup#" item="x">
<var Obj = GLOBAL.Def.in_lookup[x]>
<if Obj.author EQ client_gutitle AND Obj.type EQ "video">
<option value="|#Obj.key#|"<if POST.name EQ "|#Obj.key#|"> selected</if>>#Obj.title#</option>
</if>
</loop>
</select>
</div>
</div>

<ensure variable="POST.title" value="">
<div class="unit">
<div class="unit_left">
Title:
</div>
<div class="unit_right">
<input type="text" name="title" value="#escapeDoubleQuotes(POST.title)#" id="title">
</div>
</div>

<ensure variable="POST.gutitle" value="">
<div class="unit">
<div class="unit_left">
Unique Title:
</div>
<div class="unit_right">
<input type="text" name="gutitle" value="#escapeDoubleQuotes(POST.gutitle)#" class="tbl_entry_field">
</div>
</div>

<ensure variable="POST.notes" value="">
<div class="unit">
<div class="unit_left">
Brief Description:
</div>
<div class="unit_right">
<textarea name="notes" style="width:80%; height:4em;" id="notes">#escapeMarkup(POST.notes)#</textarea>
</div>
</div>

<ensure variable="POST.body" value="">
<div class="unit">
<div class="unit_left">
Detailed Description:
</div>
<div class="unit_right">
<textarea name="body" style="width:80%; height:8em;">#escapeMarkup(POST.body)#</textarea>
</div>
</div>


<div>&nbsp;</div>

<h3>2. Posting to YouTube</h3>

<div class="copy">
<p>
Use the following information when posting to YouTube.
</p>
</div>

<div class="unit">
<div class="unit_left">
Title:
</div>
<div class="unit_right">
<input id="yt_title" type="text" class="yt">
</div>
</div>


<div class="unit">
<div class="unit_left">
Notes:
</div>
<div class="unit_right">
<textarea id="yt_notes" style="width:80%; height:5em;"></textarea>
</div>
</div>

<div class="unit">
<div class="unit_left">
Tags:
</div>
<div class="unit_right">
<textarea id="yt_tags" style="width:80%; height:5em;"></textarea>
</div>
</div>


<div>&nbsp;</div>

<h3>3. Cooperating With YouTube</h3>

<div class="copy">
<p>
Steal the video's unique YouTube id from the <b>v=</b> url parameter.
</p>
</div>

<ensure variable="POST.ytid" value="">
<div class="unit">
<div class="unit_left">
YouTube ID:
</div>
<div class="unit_right">
<span style="padding:7px; font-size:0.6em;">http://www.youtube.com/embed/</span>
<input type="text" name="ytid" value="#escapeDoubleQuotes(POST.ytid)#" style="display:inline; width:5em; font-size:0.6em;">
<span style="padding:7px; font-size:0.6em;">?rel=0</span>
</div>
</div>



<div>&nbsp;</div>
<div>&nbsp;</div>

<div class="copy">
You did everything correctly, right?
</div>

<div>&nbsp;</div>

<div>
<input class="f_btn" value="Post Video Now" type="submit" style="cursor:pointer;">
</div>

</div>


<input type="hidden" name="yes_create" value="1" style="display:none;">

</postform>


<tag.jquery>
<script type="text/javascript">
F_YT = {};

$(document).ready(function() {

$('##name').change(function() {
define_in();
set_yt_info();
});

$('##title').bind('keyup change', function() {
define_title();
set_yt_info();
});

$('##notes').bind('keyup change', function() {
define_notes();
set_yt_info();
});

define_in();
define_title();
define_notes();

set_yt_info();

});

function define_in() {
var str = '';
var _key = $('##name').val();
if (_key == '') {
F_YT.in = '';
return false;
}
$('##name').children('option').each(function() {
var _str = $(this).val();
if (_str == _key) {
str = $(this).text();
}
});
F_YT.in = str;
}

function define_title() {
F_YT.title = $('##title').val();
}

function define_notes() {
F_YT.notes = 'From http://fentriss.com/\nBy #listFirst(client_name,' ')# Fentriss\n\n' + $('##notes').val();
F_YT.notes = F_YT.notes.trim();
}

function set_yt_info() {
$('##yt_title').val(F_YT.in + ': ' + F_YT.title);
$('##yt_notes').val(F_YT.notes);
}
</script>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0