Title: NextGEN Gallery Date
Author: roberto.c
Published: <strong>2011 年 8 月 27 日</strong>
Last modified: 2011 年 9 月 2 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-date.svg)

# NextGEN Gallery Date

 由 [roberto.c](https://profiles.wordpress.org/robertoc/) 開發

[下載](https://downloads.wordpress.org/plugin/nextgen-gallery-date.0.1.5.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/nextgen-gallery-date/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/nextgen-gallery-date/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/nextgen-gallery-date/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/nextgen-gallery-date/#developers)

 [技術支援](https://wordpress.org/support/plugin/nextgen-gallery-date/)

## 外掛說明

**Please use at least version 1.8.3 of NextGEN Gallery. This plugin is not tested
with lower versions**

**[ A T T E N T I O N ] NextGEN Gallery core modification required!**

Read [installation page](https://wordpress.org/extend/plugins/nextgen-gallery-date/installation/)

NextGEN Gallery Date is an add-on for the best wordpress gallery plugin i have seen!
With my plugin, you can sort galleries by date, show gallery creation and modificatio
date inside gallery templates.
 It adds two new columns for gallery table:

 * added_date (on gallery creation)
 * modified_date (on gallery modification and upload of pics)

#### Features

 * Gallery order by date: Check the Ngg Date admin panel to activate the order options
   in every manage album page.
 * Date info: show 3 kinds of date format (read installation info)

### Credits

Copyright 2011 by Roberto Cantarano

This program is free software; you can redistribute it and/or modify
 it under the
terms of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
 but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. See the GNU General Public License for more details.

## 安裝方式

**[ A T T E N T I O N ] NextGEN Gallery core modification required!**

To use this plugin, you need to make a simple change to a NextGEN Gallery file(tested
with version 1.8.3).
 This will be necessary until the change will not be integrated(
I have already sent the request to Alex Rabe). To make the change, follow the instructions:

 1. Open the following file: /wp-content/plugins/nextgen-gallery/nggfunctions.php;
 2. The changes affect the function nggCreateAlbum, go to row 580, just before the
 3. // check for page navigation
 4. if ($maxElement > 0) {
 5. Enter the following filter:
 6. $galleries = apply_filters(‘ngg_album_galleries_before_paging’, $galleries, $album);
    ————————;
 7. To check if you have done correctly, check the screenshot (plugins/nextgen-gallery-
    date/date/admin/images/ngg-new-filter.png);

Now, install the plugin:

 1. Install & Activate the plugin (you need NextGEN Gallery plugin to be active!)
 2. Check if there is a nggallery folder (and the gallery.php inside) in your theme
    folder. If not, create that folder, then open the “nextgen-gallery” folder in wordpress
    plugin folder, open “view” folder, copy gallery.php and paste it in the nggallery
    folder you created before.
 3.     ```
        in gallery.php you have access to the main variable $gallery. This variable contains 3 type of date (well, 3 for added date and 3 for modified date):
          * $gallery->sql_added_date (the original date format saved in db table);
          * $gallery->added_date (formatted date, according to wordpress date settings);
          * $gallery->since_added_date ("Humanized" date, in ex. "three days ago");   
        ```
    

That’s it … Have fun

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈NextGEN Gallery Date〉的開發相關工作。

參與者

 *   [ roberto.c ](https://profiles.wordpress.org/robertoc/)

[將〈NextGEN Gallery Date〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/nextgen-gallery-date)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/nextgen-gallery-date/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/nextgen-gallery-date/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/nextgen-gallery-date/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/nextgen-gallery-date/)。

## 變更記錄

#### V0.1.5 – 02.09.2011

 * Fix: the menu will no longer show

#### V0.1.4 – 01.09.2011

 * Some core modifications

#### V0.1.3 – 29.08.2011

 * Fix: modified date info is incorrect

#### V0.1.2 – 28.08.2011

 * Fix: plugin forum link was incorrect
 * Fix: NGG core modification instructions: filter line is incomplete (need ; at
   the end)

#### V0.1.1 – 28.08.2011

 * Fixed some bugs which did not allow to work with NextGEN Gallery Comments

#### V0.1 – 24.08.2011

 * Initial release

## 中繼資料

 *  版本 **0.1.5**
 *  最後更新 **15 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/nextgen-gallery-date/)
 * 標籤:
 * [flash](https://tw.wordpress.org/plugins/tags/flash/)[gallery](https://tw.wordpress.org/plugins/tags/gallery/)
   [images](https://tw.wordpress.org/plugins/tags/images/)[photos](https://tw.wordpress.org/plugins/tags/photos/)
   [slideshow](https://tw.wordpress.org/plugins/tags/slideshow/)
 *  [進階檢視](https://tw.wordpress.org/plugins/nextgen-gallery-date/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/nextgen-gallery-date/reviews/)

## 參與者

 *   [ roberto.c ](https://profiles.wordpress.org/robertoc/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/nextgen-gallery-date/)