View Single Post
Old 09-11-2012, 12:32 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384

XVideos XML + CyberSEO + AdultSiteSkins:

1) Syndicate the feed.

2) Find the "Post thumbnail" option and select "Generate from the "thumb" custom field".

3) Put this code into the "PHP code <?php .. ?>" box:

PHP Code:
$post['guid'] = 'http://www.xvideos.com/' $post['guid'];
if (!
cseo_post_exists($post)) {
    
$embed '<iframe src="http://flashservice.xvideos.com/embedframe/[ID]" frameborder=0 width=750 height=564 scrolling=no></iframe>';
    
preg_match("/Duration : (.*?)<br>.*?xvideos\.com\/video(.*?)\/.*?img src=.*?img src='(.*?)'/"html_entity_decode($post['post_excerpt'], ENT_QUOTES), $matches);
    
$post['custom_fields']['duration'] = $matches[1];
    
$post['post_excerpt'] = trim($post['post_title']) . '.';
    
$post['post_content'] = str_replace('[ID]'$matches[2], $embed) . '<p>' $post['post_excerpt'] . '</p>';
    
$post['custom_fields']['thumb'] = $matches[3];
} else {
    
$post false;

4) Save the settings and pull the feed.
__________________
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