2009年1月6日 收到宝丽来POGO
2009年1月5日 抱歉,此文章并无中文版本。
[SinglePic not found]</p><a class=”highslide” href=”http://ghorse.org/wordpress/wp-content/plugins/nextgen-gallery/admin/showmeta.php?id=’.$imageID.’” onclick=”return hs.htmlExpand(this, {objectType: \’iframe\’, wrapperClassName: \’exif\’} )” >点击观看EXIF数据。’;
// copied from wp-mail.php/
$ddate_U = time(); //get current unit time stamp add by KF
$ddate_U = $ddate_U + ($post_count*12*3600); //set post 12 hours apart starting 12 hours from now
$post_count = $post_count+1;
$post_date = gmdate(’Y-m-d H:i:s’, $ddate_U + $time_difference);
$post_date_gmt = gmdate(’Y-m-d H:i:s’, $ddate_U);
// copied from wp-mail.php/
$p2post = compact(’post_content’,'post_title’,'post_date’,'post_date_gmt’,'post_author’,'post_category’,'post_status’,'post_type’,'tags_input’);
$post_ID = wp_insert_post($p2post);
if ( is_wp_error( $post_ID ) ) echo “\n” . $post_ID->get_error_message();
}
nggGallery::show_message(__(’Photo to Post Finished ‘,”nggallery”));
}
break;
case ‘import_meta’:
// Import Metadata
The new version of nextgen gallery have merged its tag handling with the wordpress tags database, so the method of retrieving tags related to an image is changed as indicated in the red lines of codes above. Other than that, the photo2post code remains the same.
In manage-images.php, the following line of code is added to triggering the photo2post function right after the “move_to” action line:
<option value=”copy_to” ><?php _e(”Copy to…”,’nggallery’)?></option>
<option value=”move_to”><?php _e(”Move to…”,’nggallery’)?></option>
<option value=”photo2post”><?php _e(”Photo2Post”,’nggallery’)?></option>
The ablum display is still not working with language switcher plugin and the modifcation in the following post is still needed:
http://ghorse.org/wordpress/2008/10/fix-the-nextgen-gallery-album-display-with-language-switcher/

