Quote:
Originally Posted by escort-service
|
Actually the problem is in
http://nats.homegrownvideo.com/exter...it=100&start=0 which is formatted incorrectly.
The <screen_url> tag must contain path to the image and the <screen> tag has to contain the name of picture. So when we add <screen_url> and <screen> we should get a complete picture URL. Here is and example form
http://www.aniloscash.com/promo/dump...g.php?id=11961 feed:
<screen_url>http://webmastercontent.anilos.com/lola_lynn/</screen_url>
...
<screen>lola_lynn_long.jpg</screen>
So if we sum up these values we will get the complete picture URL:
http://webmastercontent.anilos.com/l..._lynn_long.jpg
Now look at
http://nats.homegrownvideo.com/exter...it=100&start=0 and you will see this:
<screen_url>
http://flash.homegrownvideo.com/HGV/.../1_aaa1-3.jpeg
</screen_url>
...
<screen>
http://flash.homegrownvideo.com/HGV/.../1_aaa1-3.jpeg
</screen>
Both tags has a complete image URL, which is sooooooooo wrong! They have the same problem with FLV URL too.
So there are 2 solutions:
1) contact the owners of homegrownvideo and ask the to fix their feed;
2) use a slightly modified PHP code for their non-standard feed. Here it is:
Code:
// put the site link to paysite into the 'paysite_url' custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_url'] = 'http://www.paysite.com';
// put site name into the "paysite_title" custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_title'] = 'Paysite Name';
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );
// create an URL of thumb from it's path and file name
$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['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 ['guid'] = $post ['custom_fields'] ['clip_url'];
// now the most complex part. we have to create the FLV player code, assuming that our FLV player is stored as flvplayer.swf in the root dir of the blog
$post ['custom_fields'] ['video_code'] = '<div class="video_code">
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="466">
<param name="movie" value="/flvplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="image=' . $post ['custom_fields'] ['thumb'] . '&file=' . $post ['guid'] . '&autostart=true&linkfromdisplay=true&link=' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<object type="application/x-shockwave-flash" data="/flvplayer.swf" width="600" height="466">
<param name="movie" value="' . $post ['guid'] . '" />
<param name="link" value="' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<param name="allowfullscreen" value="true" />
<param name="linkfromdisplay" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="image=' . $post ['custom_fields'] ['thumb'] . '&file=' . $post ['guid'] . '&autostart=true&linkfromdisplay=true&link=' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>
</object>
</object></div>';
// 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'] );
Quote:
Originally Posted by nico-t
cyber, i have a question. Im using the setting Store Images Locally, but in the rss feed of my site it still uses the original location of the images. I looked around and i saw that in the 'excerpt' field of pulled posts it automatically puts the original post (without the locally stored image path but the path from the sponsor) in there. How can i change this?
|
Please make sure you are using the latest available version of CyberSEO Suite. Please send me an email if the upgrade won't fix the problem.