Single File PHP Gallery - 部落格

Table of Contents

※ 引述《handsome616 (豆花伯爵)》之銘言:
: 小弟不大會用wordpress
: 之前都是拿人家現成外掛
: 但是在網路上有看到發這個php,但是沒有教學
: 想請教一下版上的大大們
: 這個php是怎麼用,能否教學一下!?

1. 下載 http://wordpress.org/extend/plugins/wordpress-single-file-php-gallery/

2. 解壓縮後會看到

wordpress-single-file-php-gallery/readme.txt
wordpress-single-file-php-gallery/photos
wordpress-single-file-php-gallery/photos/index.php

3. 把 photos 資料夾連同連同裡面的 index.php 上傳到, wordpress 所在目錄
// 資料夾名稱 photo 和 index.php 可以改成其它名字

that is, "wp-config.php" 和 "photos 資料夾" 在同一層

./wp-config.php
./photos
./photos/index.php

4. 打開 photos/index.php
修改 define("GALLERY_ROOT", "../wp-content/uploads/");
define("THUMB_ROOT", "./thumbs/");
define("SECURITY_PHRASE", "I can't tell dreams from truth.");

其它的可以先不用改 // 資料夾要修改權限 by ftp software etc

5. 最後就可以打開網址 http://yourDomain.com/wordpress/photos/index.php
就會列出 /wp-content/uploads/ 下所有圖片


More: 自己接起來, 說明文件長到讓人不想看

http://wordpress.org/extend/plugins/
wordpress-single-file-php-gallery/installation/

--

All Comments

Poppy avatarPoppy2010-06-21
太感謝了,不過photos下的權限全部為777?