Many customers are asking on how to parse the PrefectGonzo video feed with
CyberSEO.
So I decided to post the manual for
WordPress /
CyberSEO plugin /
AdultSiteSkins video theme on GFY. Here we go:
1) Syndicate
the Latest Perfect Gonzo Movies feed.
2) Select "Generate from the "thumb" custom field" option in the "Post thumbnail" drop-box.
3) Put the following code into the "PHP code <?php .. ?>" box:
Code:
$post['custom_fields']['paysite'] = 'YOUR_AFFILIATE_LINK';
$content = cseo_file_get_contents($post['link']);
preg_match('/class="videoplayer_main" data-file="(.*?)".*?data-image="(.*?)"/is', $content, $matches);
$post['guid'] = $matches[1];
if (!cseo_post_exists($post)) {
$post['post_excerpt'] = strip_tags($post['post_excerpt']);
$post['custom_fields']['duration'] = '01:00';
$post['custom_fields']['thumb'] = $matches[2];
$post['post_content'] = '[flv:' . $post['guid'] . ' ' . $post['custom_fields']['thumb'] . ' 750 564 ' . $post['custom_fields']['paysite'] . ']';
} else {
$post = false;
}
Done!
Just don't forget to replace 'YOUR_AFFILIATE_LINK' with your actual affiliate link URL in the code above.