随遇而安

2009年1月5日 抱歉,此文章并无中文版本。

归类于: 网站纪事与消息 — ghorse@16:15

[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/


Related posts || 相关文章

Tags: 2.7, album, Gallery, language switcher, nextgen, nextgen gallery, photo, photo2post, post, wordpress

2条评论 »

  1. Hey, this is a great great idea.. I am not using the translation stuff as much as i love the idea of being able to photo2post! I have one issue and that is when i try and manage galleries it gives me this:

    Parse error: syntax error, unexpected T_STRING in /home/content/c/h/e/chemmyone/html/craigryder/wp-content/plugins/nextgen-gallery/admin/manage.php on line 175

    I am not that good with PHP yet so i’ve tried to add all the other fixes and ideas that you have mentioned in this post in case that was the problem.. I am not sure what else to do… :oops: If you have any idea please let me know either here as i will subscribe to the comments or at my email in the form, if you have the time that is. Thanks so much.

    Craig

    评论 作者: Craig Ryder — 2009年1月20日 @ 6:26

  2. Actually those errors have cleared up.. i guess when i pasted your code unformatted into Screem it messed with the ‘ and ” ‘s .. go figure.. i’m still not quite sure that it is working properly but i will now go over what you have posted much more carefully. Again, thanks for this great addition to the nextgen gallery and WP..:)

    评论 作者: Craig Ryder — 2009年1月20日 @ 7:13

评论 RSS Feed。 引用 URL

发表评论

:o :) :lol: ;) :( 8) :P :D 8O :? :x :| :oops: :mrgreen: :roll: :evil: :twisted: :cry: :!: :arrow: :idea: :?: more »

Live and Relax Copyright gHorse