View Single Post
Old 10-08-2010, 04:56 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,378
CyberSEO Suite + TubePress3

Today I'll explain how to build an auto-updating WordPress tube site using CyberSEO Suite plugin and TubePress3 theme which is not compatible with its older versions (TubePress and TubePress2). You may find my manual on using CyberSEO Suite with TubePress/TubePress2 in my previous posts.

CyberSEO Suite + TubePress3 = Auto-updating Tube Site

So, let's take some XML feed, e.g.: http://royal-cash.com/index.php?hand...dwebmaster=100 and syndicate it with CyberSEO Suite. Set up the necessary parameters on the "RSS Feed Syndicator" page, such as post categories, post tags, update frequency, set "Use syndication date" in the "Base date" field etc.

Put the following text into the "Custom Fields" box:

Code:
screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv
Note that each left argument is the name of XML tag and the right one is the name of custom field of WP post where the contents of mentioned tag must go to.

Now move to the "PHP Code <?php .. ?>" field and put the following PHP code there:

PHP Code:
// Paysite URL
$post ['custom_fields'] ['dbt_text2'] = "HTTP://WWW.SITE.COM/";
// create an URL of thumb from it's path and file name
$screen $post ['custom_fields'] ['screen'];
if (
is_array $screen )) {
// choose one random screenshot if there are many
    
$post ['custom_fields'] ['dbt_text3'] = $post ['custom_fields'] ['screen_url'] . $screen [rand 0count $screen ) - )];
} else {
// or use the single one
    
$post ['custom_fields'] ['dbt_text3'] = $post ['custom_fields'] ['screen_url'] . $screen;
}
// uncomment the line below to store thumbnails on your server
// $post ['custom_fields'] ['dbt_text3'] = cseo_save_image ( $post ['custom_fields'] ['dbt_text3'], $post ['post_title'] );
// since FLV videos have no unique GUID's let's use their URL's as post GUID's  
$post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// save the FLV URL
$post ['custom_fields'] ['dbt_text'] = $post ['guid'];
// 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'] ); 
Save the feed options and relax while the CyberSEO Suite syndicates the given XML file and updates our tube blog with synonymized content automatically. Fire and forget!

Here is an example of an auto-updating WordPress tube site which uses TubePress3 theme: http://www.truerussianporn.com/

Have a nice day
__________________
Obey the Cowgod

Last edited by just a punk; 10-08-2010 at 05:01 AM..
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote