Deprecated: Function ereg() is deprecated in /home/silence/blog.silence.idv.tw/wp-content/plugins/tantan-flickr/flickr.php on line 56

Deprecated: Assigning the return value of new by reference is deprecated in /home/silence/blog.silence.idv.tw/wp-content/plugins/tantan-flickr/flickr.php(83) : runtime-created function on line 1

Strict Standards: Non-static method TPGuestbook::get_instance() should not be called statically in /home/silence/blog.silence.idv.tw/wp-content/plugins/tp-guestbook/tp-guestbook.php on line 506

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /home/silence/blog.silence.idv.tw/wp-includes/plugin.php on line 311
SILENCE Blog » Blog 文章彙整 » Gallery2 with Lightbox Effect
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935
SILENCE Blog

Gallery2 with Lightbox Effect

2006, 11月 3 10:25 pm

今天改了些東西﹐使我的相簿(Gallery2 系統)可以有 Lightbox 的特效
這樣有以下的優點:

  • 炫﹐不然用 Lightbox 做啥 XD
  • 快! 不用為了一張照片而去讀取 Gallery2 整個 PHP 頁面

效果的 Demo 可以看這裡
若有興趣的人﹐可以參考我的做法
記住!只適用:

  • 您必須安裝了 vSlider2 for Gallery2這個 theme
  • Wordpress 必須安裝 WP lightbox 2

安裝方法:

  1. 先下載 WP-Lightbox2 這個 plugin。
  2. 啟用此 Plugin
  3. 在您的 gallery2\themes\vSlider2\templates 資料夾內﹐新增名為 local 資料夾
  4. 下載 album.tpl 檔案﹐並放至 local 資料夾底下
  5. 完成!

For those who don’t know Chinese:

This page will teach you how to integrate Lightbox into your Gallery2!
you can see demo here
I think you will have the following advantages of using LightBox Effect in your Gallery2

  • Cool! (sure, that’s why you choose Lightbox)
  • Fast browsing speed! (opening PHP page to view a photo waste your life!)

Requirements:

Installation:

  1. download WP-Lightbox2 plugin for wordpress and activate it
  2. make a directory named “local” in gallery2\themes\vSlider2\templates
  3. download album.tpl and put it into “local” directory you made in the previous step
  4. done!

Feel free to ask me the question :-)

目前有 19 個回應, 沒有引用

Hi 回應此篇文章 於 2006, 11月 13

Great work on the lightbox integration. But it seems as though the link to download album.zip is broken??

thanks

Hewett 回應此篇文章 於 2006, 11月 13

你好哇~~ download唔到哇~~ 唔該

Hewett 回應此篇文章 於 2006, 11月 13
SILENCE 回應此篇文章 於 2006, 11月 13

Hi Hewett,
感謝,不然不知道連結錯誤。
已修改好了 Link 了!

维京 回應此篇文章 於 2007, 2月 7

按照 4 步安装后, Lightbox 没有显示. 什么问题啊? 是不是要在什么地方加 rel=’lightbox’. 怎么加?

谢谢.

SILENCE 回應此篇文章 於 2007, 2月 7

@維京:
album.tpl 檔案必須放在 Gallery2 的路徑底下喔, 而非 wordpress 的
另外若有使用 Gallery2 的加速功能, 也順便清除一下 cache.

维京 回應此篇文章 於 2007, 2月 8

检查了, 还是不行. WP和G2都安的是最新版本.

我的 WP 路径 在 /var/www/html
G2 的路径:/var/www/html /gallery (没有使用 gallery2)
vSlider2 for WP 的路径: /var/www/html /wp-content/themes/vSlider2
vSlider2 for G2 的路径:/var/www/html /gallery/themes/vSlider2
vSlider2 for G2 的路径:/var/www/html /gallery/themes/vSlider2
album.tpl 放在: /var/www/html /gallery/themes/vSlider2/templates/locall

帮帮忙啊.

谢谢!

SILENCE 回應此篇文章 於 2007, 2月 8

@維京
album.tpl 放在: /var/www/html /gallery/themes/vSlider2/templates/locall
你這打錯了﹐最後面是 local﹐非 locall

维京 回應此篇文章 於 2007, 2月 8

我是在留言上打错了. 文件夹中是 local. 另外, 不知什么原因我用 vSlider2-wide 没有装成. 自己从 http://irui.ac/cool-stuff/vslider2 下载, 然后改成wide的. 如果你的 vSlider2-wide 含有与 lightbox 2 有关改动, 还要麻烦你指教了. 刚刚有一点眉目, 望不要见笑. 网址: http://bls-fcc.dyndns.org, 很多事要做, 帮帮忙.

谢谢!

维京 回應此篇文章 於 2007, 2月 8

还有, Photo 那边还有些工要做. 你的 download 功能是怎么加上的?

谢谢!

SILENCE 回應此篇文章 於 2007, 2月 10

@維京
download 功能 就是在後台新增一個 Page (分頁或是網頁)
然後自行上傳檔案。

維京 回應此篇文章 於 2007, 2月 24

新年好!

我的页面里, 中文字体时有大小不一状况, siderbar 中文 alignment 也很让人头疼. 你的页面基本解决了这些问题. 怎么做得?

谢谢你给了这么多的帮助.

SILENCE 回應此篇文章 於 2007, 2月 24

@維京
可否給個有問題的網址瞧瞧?

維京 回應此篇文章 於 2007, 2月 26

不好意思, 不知为何, 神差鬼使, 重新一看上面的问题消失了. 另外:

1. 我的 Lightbox 还是不行;
2. 想知道, header 部分除去 Blog, Gallery 之外的 Tag Link 是怎么加上的.

谢谢.

网址: http://bls-fcc.dyndns.org/

SILENCE 回應此篇文章 於 2007, 2月 28

@維京
您可以在後台新增一個「Page」, link 自然就會在上頭了!

sirius 回應此篇文章 於 2008, 7月 28

請問一下喔~
那在vSlider3上有相對的修改嗎?
因為我放上去後格式就亂掉了…

SILENCE 回應此篇文章 於 2008, 8月 1

@sirius
請安裝最新版的vSlider3.0 for Gallery2即可有 Lightbox
請參閱: http://irui.ac/cool-stuff/vslider3-g2

sirius 回應此篇文章 於 2008, 8月 2

hi~SILENCE
很高興看到您回復.
其實我已經有裝了
新版的Lightbox顯示的方法不一樣
(歡迎您去試一下我的相本)
但去看之後您就會知道我所謂的格式跑掉的問題了
因為我是用3,但我做了下面兩個動作
# 在您的 gallery2\themes\vSlider2\templates 資料夾內﹐新增名為 local 資料夾
# 下載 album.tpl 檔案﹐並放至 local 資料夾底下
我現在把這個檔案跟目錄都刪掉了還是沒辦法解決這個問題..
請幫幫忙吧
謝謝..

SILENCE 回應此篇文章 於 2008, 8月 3

@sirius
有可能是 template 的 cache 作怪!
去Gallery2後台 - 維護 - 刪除樣版快取試試看

想要留言嗎?