View Single Post
Old 04-03-2011, 01:41 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,378

Go to your XML feed options page and do the following:

1) Insert this into the "Custom Fields" box:
Code:
screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv
duration::duration
paysite::paysite_title
2) Insert this into the "PHP Code <?php .. ?>" box:
Code:
// put the site link to paysite into the 'paysite_url' custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['sponsorlink'] = $post ['custom_fields'] ['join_now'] = $post ['custom_fields'] ['paysite_url'] = 'HTTP://WWW.SITE.COM/';
// "sponsor" field
$post ['custom_fields'] ['sponsor'] = 'Use this to talk about the sponsor using a small description of the program or their main site.';
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );
// fake random time from 0:20:00 to 2:00:00
$post ['custom_fields'] ['time'] = date ( 'i:s', rand ( 1200, 72000 ) );
// generate random tags. Don't forget to replace tag1, tag2 etc with the prefered tag names. Also don't forget to enable "Create tags from category names" option on the feed settings page
$post ['categories'] [] = array_rand ( array ("tag1", "tag2", "tag3", "tag4" ) );
// create an URL of thumb from it's path and file name
$screen = $post ['custom_fields'] ['screen'];
if (is_array ( $screen )) {
	$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $screen [rand ( 0, count ( $screen ) - 1 )];
} else {
	$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $screen;
}
// uncomment the line below to store thumbnails on your server
// cseo_store_image ('thumb', $post ['post_title']);
// since FLV videos have no unique GUID's let's use their URL's as post GUID's  
$post ['custom_fields'] ['hostedflv'] = $post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// now let's delete all useless custom fields 
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( $post ['custom_fields'] ['screen'] );
unset ( $post ['custom_fields'] ['clip_url'] );
unset ( $post ['custom_fields'] ['flv'] );
Don't forget to replace HTTP://WWW.SITE.COM/ with your own affiliate link. Also replace tag1, tag2 etc with the prefered tag names in
$post ['categories'] [] = array_rand ( array ("tag1", "tag2", "tag3", "tag4" ) );

3) Enable "Create tags from category names" option.

4) Click "Update Feed Settings".

That's all
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote