






8:35 am

Here is what i have in syndicator, the php code i obtained from your tutorial on gfy:
Custom Fields:
screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv
PHP Code <?php .. ?>:
// 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'] ['paysite_url'] = 'Login to see this link;;
$post ['custom_fields'] ['join_now']='Login to see this link;;
$post ['custom_fields'] ['paysite_title']='Bootylicious Mag';
// “sponsor” field
$post ['custom_fields'] ['sponsor'] = '<strong>Bootylicious Mag</strong> – The online magazine dedicated to big ass booty! And if “ass” is the subject you know the sistas will represent! Features some well black pornstars and quite a few first timer new faces. They stingy with the free previews, but make up for with the sexiest big booty black and latina girls on the internet.';
// 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 ( 1800,3600) );
// 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'] );
Ah, that's because of the bug in your code, which has the following line:
$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );
While there is no such custom field as “duration” defined above. Simple remove this line. You will still be getting a warning message (this time because of a small bug in the plugin, which will be fixed today), but not critical error, so the posts will be syndicated properly.
Most Users Ever Online: 541
Currently Online:
9 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 358
Members: 2161
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1473
Posts: 7481
Newest Members:
Investments-GPT, eliteandhonornews, matt.guidesocialglobal, kathleen.thewellpaidexpert, sdent.me, itoolsllb.meAdministrators: CyberSEO: 3510