#xarTplSetPageTemplateName('forms')# xarVarFetch('textfield', 'str', $youtube, NULL, XARVAR_NOT_REQUIRED) xarVarFetch('vho', 'str', $vho, NULL, XARVAR_NOT_REQUIRED) xarVarFetch('vdec', 'str', $vdec, NULL, XARVAR_NOT_REQUIRED) #$youtube#
#$vho#
#$vdec#
xarmodapifunc('dynamicdata','admin','create',array('modid' => xarModGetIDFromName('dynamicdata'), 'itemtype' => '3', 'itemid' => '0', 'values' => array('vhoster' => $vhoster, 'vidid' => 'vdec', 'vowner' => xarusergetvar('uid'), 'vdate' => time() , 'vartcon' => 'bos', 'vtype' => 'not ready', 'vfav' => 'buda bos', 'valbum' => 'op1', 'vsong' => 'opt2', 'vdescr' => 'op3', 'vrdate' => 'vclip date'))) xarVarFetch('submit', 'str', $submit, '', XARVAR_NOT_REQUIRED)

ADD VIDEO


Youtube Adress: trimmed --> (http://)www.youtube.com/watch?v= 'http://' substr($youtube,0,7) str_replace($webhead,'',$youtube) $youtube trimmed --> (www.)youtube.com/watch?v= 'www.' substr($viddat,0,4) str_replace($webwww,'',$viddat) $viddat trimmed --> really that one? (youtube.com)/watch?v= 'youtube.com' substr($vdat,0,11) 'Y' str_replace('youtube.com/watch?v=','',$vdat) '' Not a valid video hoster.
'http://gdata.youtube.com/feeds/api/videos/'.$vdec simplexml_load_file($rssfile) $entry->xpath('//media:title')Title: #$ytitle[0]#
$entry->xpath('//media:description')Description: #$ydescription[0]#
$entry->xpath('//media:keywords')Keywords: #$ykeywords[0]#



//Todo (hidden data)
*give a unique id for this video
*youtube video? record Y to database -->will define video hoster when many video hoster supported
*record video id to database
*record who added this video
*record when this video submitted

Artist Connection: //Todo Ajax powered textfield, autocomplete artist, required field*
Video Type: // required field
Album Connection:
Description:
Song Name:
Vclip Release Date:
Add to favorite videos?