






Occasionally I run into a problem when storing images locally. CyberSEO will stop on that post and continue no further when it can't get the images for a specific post. The error returned is this:
Error: Could not insert post into the database
0 posts were added
Is there any way, through executing lines in the “PHP Code” box or through an extra setting, to have CyberSEO first attempt to store the images locally, but fall back to using the original src upon failure? I run into this quite often, sometimes for no apparent reason.
Example:
CyberSEO Domain = Domain1.com
Source Domain = Domain2.com
If image successfully downloads, img src = domain1.com's url{
Else{ img src = orginal img src on domain2.com}
I hope this makes sense.
Thanks!
7:32 pm

I also have a question about storing images locally i wasnt sure if i should create a new topic with the same title so i just piggybacked this one. I use this code to get flv automatically, and on the tools section i have selected image path cloaking. Both wp-content and wp-content/uploads are 777. This code works on other sites so i cant figuire out the the issue:
//
$post ['custom_fields'] ['sponsor'] ='BisexDigital.com';
$post ['custom_fields'] ['paysite_url'] = 'Login to see this link.;;
// “sponsor” field
$post ['custom_fields'] ['site'] = '';
$post ['custom_fields'] ['sponsordesc'] = '<a href=”http://www.xbisexuals.com/bsd.php” target=”_blank”>BisexDigital.com</a> – The biggest on-line resource for bisexual porn action, BiSexDigital.com brings you the highest quality bisexual porn available on the net! Browse our massive bisexual adult dvd collection, because its fun to share!';
// 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 ( 1200, 72000 ) );
// create an URL of thumb from it's path and file name
$screen = $post ['custom_fields'] ['screen'];
if (is_array ( $screen )) {
$post ['custom_fields'] ['thumbnail'] = $post ['custom_fields'] ['screen_url'] . $screen [rand ( 0, count ( $screen ) – 1 )];
} else {
$post ['custom_fields'] ['thumbnail'] = $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'] );
Most Users Ever Online: 105
Currently Online:
8 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 350
Members: 1927
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1328
Posts: 6627
Administrators: CyberSEO: 3097