顯示包含「WordPress」標籤的文章。顯示所有文章
顯示包含「WordPress」標籤的文章。顯示所有文章

2012年5月22日星期二

WordPress to Blogger 搬家全攻略 Part.2

繼續上文 - WordPress to Blogger 搬家全攻略 Part.1
這一次就輕鬆簡單得多了,文字雖然一樣多,但其實只需要三步曲,而且沒有Part .1般需要太多人手。

WordPress to Blogger 搬家全攻略 Part.1

用了Blogger都差不多快一個多月,而Host WordPress網存那邊今晚就是到期日,如無意外幾日後應該看不到我的舊Blog。
之前說過會公開我搬家過程和工具,趁現在記憶還清晰,寫一下,內容比較長。

2011年12月13日星期二

[WordPress-Hack] List Category Posts

近來想重整一下自己的Blog,其中一樣就是整理一下文章,刪除一些我認為不應該在這裡出現的Blog Post(或許只是當時一時衝動地Publish..),以及增加以下要說的文章目錄。

其實一開始用WordPress到現在都察覺有一個問題,就是用Categories進入或由Tag進入文章分類,佈局會很難看,或者是我選的Theme問題,又或者是我沒有做調整美化工作。

但無論如何,我都想做一個只有Title的目錄。

上網找相關參考,第一個就找到WP的Plugin - List category posts,老實說,安裝過後,這個Plugin是不錯的,基本上已經滿足我要求。

但再多看以下兩個網,又打消我依賴Plugin的念頭,原因離不開自己DIY的滿足感較高。
wp Codex - Class Reference/WP Query
4 Ways to Loop with WordPress

先看看Demo : http://webapp.heliohost.org/cms/wordpress/ListCategoryPosts_v1.php
這裡列出未分類的所有Blog Posts。

而PHP Code如下 :

<?php
require_once ('wp-load.php');
require_once ('wp-blog-header.php');
?>
<h3>Recent Articles</h3>
<ul>
<?php
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$wp_query = new WP_Query('post_type=post&post_status=publish&posts_per_page=20&paged=' . $paged . '&orderby=date&order=DESC');
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
  <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
<div>
  <div><?php previous_posts_link('&laquo; Previous') ?></div>
  <div><?php next_posts_link('Next &raquo;') ?></div>
</div>
<?php
 wp_reset_postdata();
 wp_reset_query();
?>

就是這麼簡單,何必要使用Plugin? 使用WP_Query已經綽綽有餘,只是CSS,Style欠奉。
如果想分類,做更多Filtering的話,可以參考wp Codex - Class Reference/WP Query。
若然WP_Query提供的Filter還未夠,你大可以直接用SQL,但當然這已經完全偏離WordPress的話題。

2011年10月6日星期四

WordPress PHP Script - 重新分類圖片至YYYY/MM

之前寫了一篇WordPress - 把圖片加入/重新連結Media Library

大致上是用WP-Plugin Add From Server把Server上的圖片匯入至WP的Media Library中,再利用小弟我的PHP Script 把沒關聯的圖片與Post/Page重新連結。

但今天再整理一下WordPress時,發現自己的WordPress已經長大了,有1178個Post,接近二千張圖片。
一直都想把圖片再整理,詳細因由可以看看之前的WordPress - 把圖片加入/重新連結Media Library。

今天再次寫一個PHP Script,主要目的有兩個:

1. 把圖片重新加入至 "YYYY/MM/" 結構的資料夾
2. 找出沒有用過的孤兒圖片

完成後,自己測試過很多次,效果不錯。
現在本Blog 2005年-2009的圖片都齊齊整整有自己的家(資料夾)了。



大家有需要可以把Code Save至一個PHP檔案,上傳到Server執行。

另外每個Server設定不同,請更改$image_dir和$images_to_process變數,說明一下:
$image_dir = 你WP的上傳資料夾,必須"/"結尾,但絕對不要"/"開頭。
$images_to_process = 每個Server的PHP Config(php.ini)都不同,以我為例,max_execution_time = 30的話,一次最多300張就好了。
如果你好似我一樣,有兩千張圖片,可以人手分多次執行。執行直到你看到圖片已經搬遷完成就可以。
完成後,最好重新把Server的Images資料夾下載一次,對比一下圖片數量和File Size,讓自己安心一點。 :hoho:

但緊記緊記!!! Backup你的Database和Images資料夾才動手,因為我會寫入你DB中的wp_posts Table和移動檔案!!!
廢話少說,送上PHP Code。

<?php
require_once ('wp-config.php');
require_once ('wp-admin/includes/admin.php');
require_once ('wp-includes/functions.php');

$server = DB_HOST;
$username = DB_USER;
$password = DB_PASSWORD;
$dbname = DB_NAME;

//Change this line to your WordPress Images folder if need, End with '/', but DO NOT start with '/'.
$image_dir = "wp-content/uploads/images/";
$images_to_process = 500;
//

$process_cnt = 0;
$abs_dir = get_home_path() . '/' . $image_dir;

function dirImages($dir, $i) {
 $d = dir($dir);
 //Open Directory
 while (false !== ($file = $d -> read()))//Reads Directory
 {
  $extension = strtolower(substr($file, strrpos($file, '.')));
  // Gets the File Extension
  if ($extension == ".jpg" || $extension == ".jpeg" || $extension == ".gif" || $extension == ".png")// Extensions Allowed
   $images[$file] = $file;
  // Store in Array
 }
 $d -> close();
 // Close Directory
 echo 'Total ' . count($images) . ' files found.';

 asort($images);
 // Sorts the Array
 $part_images = array_slice($images, 0, $i);
 return $part_images;
}

$array = dirImages($abs_dir, $images_to_process);

mysql_connect($server, $username, $password) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());

foreach ($array as $key => $image)// Display Images
{
 //find out all attachment records which is no parent post.
 $sql = "SELECT ID , post_date FROM `wp_posts` WHERE post_type IN ('nav_menu_item','page','post','revision','template') AND `post_content` LIKE '%/" . $image . "%' LIMIT 1";
 //echo $sql;
 $attachment_post = mysql_fetch_assoc(mysql_query($sql));

 if (!$attachment_post) {
  echo 'No post is found by filename : ' . $image . 'SQL : ' . $sql;
  continue;
 }

 $process_cnt++;
 $id = $attachment_post['ID'];
 $post_date = date_parse($attachment_post['post_date']);
 $post_year = $post_date['year'];
 $post_month = substr('0' . $post_date['month'], strlen('0' . $post_date['month']) - 2, 2);

 //echo $image.' : '.$post_year.'-'.$post_month;
 //echo $abs_dir.$post_year;

 //check [year]/[month] folder is exist or not.
 $yearfolder = $abs_dir . $post_year . '/';
 $monthfolder = $yearfolder . $post_month . '/';

 if (!is_dir($yearfolder)) {
  mkdir($yearfolder, 0777);
  chmod($yearfolder, 0777);
  echo 'Create folder : ' . $yearfolder;
 }
 if (!is_dir($monthfolder)) {
  mkdir($monthfolder, 0777);
  chmod($monthfolder, 0777);
  echo 'Create folder : ' . $monthfolder;
 }

 //Move the images to new folder.
 if (file_exists($monthfolder . $image)) {
  echo 'The file : ' . $monthfolder . $image . 'exists, skip.';
  continue;
 }
 if (!rename($abs_dir . $image, $monthfolder . $image)) {
  echo 'Move ' . $image . ' Fail.';
  continue;
 }

 //Update wp_post's [post_content] to rewrite the existing url.
 $sql = "UPDATE wp_posts SET post_content = replace(post_content, '" . $image_dir . $image . "' , '" . $image_dir . $post_year . '/' . $post_month . '/' . $image . "') WHERE post_type IN ('nav_menu_item','page','post','revision','template');";
 mysql_query($sql) or die(mysql_error());
}

echo $process_cnt . ' files is done!';
mysql_close();
?>

2011年6月5日星期日

WordPress - 把圖片加入/重新連結Media Library

我用WordPress的時候,當時的WP版本並沒有Media Library,而當時自己亦沒有把圖片用"/年/月/"的資料夾架構去儲存,到後期才更正。
但早期的Blog Post中的圖片,就全部都儲存在"wp-content/uploads/images/"資料夾當中,數量已累積按近兩千張。

而自己一直都沒有太在意WordPress中的Media Library/Feature Images或Thumbnails功能,返正一直都是打完本文,用FTP上傳圖片,插入連結就算了。
大量的話就用自家製的SlideZoom上傳。


今天有時間就找一找有什麼Plug-in可以把舊有圖片匯入至Media Library當中,最後找到這一個叫Add From Server的Plug-in。

但Import後,在"Attached to"一欄中都是(Unattached),所有圖片只是匯入到Media Library,技術上可以說是把圖片資料Insert進wp_posts與wp_postmeta資料表,但都沒有與相應的Post/Page產生關聯(wp_posts表中的post_parent欄位),所以我就唯有自行寫一段PHP功能去修正。(當然是因為我找遍整個網上都沒有Plug-in做到吧...)

05/Oct/2011更新: 新版本3.2.0.2已修正這個問題,Quote內的可以不理。
其實用Add From Server匯入後,還會有一些問題。
假如你跟我一樣,圖片都沒有用"/年/月/"去分開,使用Add From Server匯入後,圖片雖然存放的位置不變,但WP Database中記錄的media absolute url就會含有"/年/月/"路徑。


所有你要運行以下SQL去修正連結。
執行前,小心把錯誤的圖片連結更改(如2011/06),做這個UPDATE之前,最好確認一個該月份是否真的存在圖片,以下面SQL為例,把含有2011/06的去掉,替換至實際的資料夾。

UPDATE wp_posts SET guid = replace(guid, '/wp-content/uploads/images/2011/06/' , '/wp-content/uploads/images/');

其實一個WP的Media檔案,都是記錄在wp_posts Table當中,WordPress只是用post_type去分辦,而guid就是WordPress認知的檔案連結。
而檔案自身一些Media資料就會放在wp_postmeta中,所以使用Add From Server匯入還是有必要的,因為它會把meta資料寫入wp_postmeta表之中,而不是草草了事。

最後一步就是搜尋你Blog Post中含有那個圖片,再把圖片關聯至post id。
PHP的程式如下,大家看我惡劣的英文Comment大概都可了解是做什麼:
<?php
require_once ('wp-config.php');
require_once ('wp-admin/includes/admin.php');
require_once ('wp-includes/functions.php');

$server = DB_HOST;
$username = DB_USER;
$password = DB_PASSWORD;
$dbname = DB_NAME;
$url = get_bloginfo('url');

mysql_connect($server, $username, $password) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());

//find out all attachment records which is no parent post.
$sql = "SELECT ID, guid FROM `wp_posts` WHERE `post_type` = 'attachment' AND post_parent=0";
$attachment_post = mysql_query($sql);

while ($rows = mysql_fetch_assoc($attachment_post)) {
 //$guid is the relative or absolute URL of images.
 $guid = str_replace($url, '', $rows['guid']);

 //find the first post , where post content contain the $guid (image url).
 //Due to WordPress's limitation, one media only can recognize to one post/page's ID.
 //If more than one Post/Page has use the media, WordPress will retain the first ID to media.
 $sql = "SELECT ID FROM `wp_posts` 
    WHERE post_content LIKE '%" . mysql_real_escape_string($guid) . "%' 
    AND post_type in ('post','page','template') 
    ORDER BY `post_date` desc,`post_modified` desc 
    LIMIT 1";

 $match_post = mysql_fetch_assoc(mysql_query($sql));

 //Update the attachment's post_parent to related post/page ID.
 $sql = "UPDATE `wp_posts` SET post_parent='" . $match_post['ID'] . "' 
    WHERE ID=" . $rows['ID'] . " LIMIT 1";

 mysql_query($sql);
}
echo 'Done!';
mysql_close();
?>

以上的DB_HOST/DB_USER/DB_PASSWORD/DB_NAME不用刻意更改,因為會自動取自wp-config.php,把程式碼儲存至一個php檔案放在你WordPress的root資料夾,運行就可以,緊記完成後把那個php檔案刪除。

2011年3月1日星期二

WP-Plugin SlideZoom v1.4.0 Release!

超過半年沒有更新,因為自己實在沒有太多時間,但其實這個PlugIn自己都很重視,因為我自己都是經常使用的。
但對於這個Plugin的使用人數就不太滿意了,在Google Search的話 :
http://www.google.com.hk/search?q=SlideZoom會得出共約 2,830 項結果,
但這個PlugIn其實已經差不多兩歲了.....

不過怎樣都好,盡可能都會繼續更新下去,
新版本下載 / Changelog / Demo去專頁吧。
http://tatmingstudio.blogspot.com/2009/03/slidezoom.html

2010年6月21日星期一

升級WordPress 3.0注意事項

剛剛完成WordPress升級至3.0,其實3.0版沒有太多新驚喜,盡量保持原有結構的簡潔,這亦都是WordPress的優點。
搭建Menu的新功能要Theme支援,剛巧我的未支援,所以試不出有什麼特別。

不過升級3.0有兩樣事要注意:

1. wp-config.php變更
直至2.92版,很多人升級應該都是保留原有wp-config.php,但3.0版比舊版多了幾個authentication keys。
舊版本:
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');

3.0版本:
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',  'put your unique phrase here');
define('NONCE_KEY',  'put your unique phrase here');
define('AUTH_SALT',  'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');

雖然你忽略這些Keys都可以運作正常,不過這些亂數產生的keys和安全性有關,大家可以經由WordPress.org secret-key service取得這些authentication unique keys.

2. 升級時出現Error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2964967 bytes) in /home/content/.../html/wp-includes/http.php on line 1363

這錯誤可能會出現在Share hosting上,如果hosting把php.ini中的memory_limit設定少於32M,就有可能會發生,因為WP3.0要求PHP不少於32MB memory。
解決方法最簡單就是升級前,打開wp-config.php,加上這句:
define('WP_MEMORY_LIMIT', '256M' );

如果還解決不到,就試試使用這個Plugin - Memory Bump
http://wordpress.org/extend/plugins/memory-bump/

2010年5月11日星期二

WordPress 檢查無效圖片連結Plugins - WP-LinkCheck

昨天寫好了新的WordPress Plugin , 就隨意地給個名字叫WP-LinkCheck。
顧名思義就是檢查你WordPress中的連結,不過是圖片連結,暫時還在等WP官方approve到WordPress Plugin Directory,
我先上傳到自己的空間,有興趣的話,大家可以試試,等WP approve後,我再更新資料。

Latest release:1.0.2 (Update on 03-JUL-2010)
Description:
WP-LinkCheck is a lightweight plugin ability to check all image sources are broken inside your WordPress blog, it check the http header by server response ,it don't have to download the images to boost the performace and bandwidth.

Repersent the result to SlickGrid utilizes virtual rendering to enable you to easily work with 50000+ of items without any drop in performance.
WP-LinkCheck will NOT make any database change (create table, modify table etc...), and NOT to create any cache files to keep your WordPress directory clean.

If the broken links are found, WP-LinkCheck will NOT do any modication / deletion to the content, everythings is under your control, you can simply click the post title and correct the url by yourself.
Ability to handle several HTTP Error in broken image includes:
  • 403 Access Denied/Forbidden
  • 404 File Not Found
  • 410 Gone
  • 500 Internal server error

Download:
http://wordpress.org/extend/plugins/wp-linkcheck/


Screenshots :


Changelogs :
*v1.0.2
Changed : Compatibility with WordPress 3.0.0
Changed : Update SlickGrid to 1.3.2
Fixed : Fixed unexpected output to affect the RSS output.

*v1.0.1
Fixed: jQuery Conflict with WP visual editor.
Changed: The http request timeout has changed from 5 seconds to 3 seconds.

*v1.0.0
Initial Release

2009年6月2日星期二

SlideZoom v1.2.0 出爐了~

搞掂了Zip upload功能~以後唔洗一張一張咁upload~附上英文的release notes.
下一個版本打算加上jQuery的Images Plugin 和使用jQueryUI。
不過下一次更新會在9月之後,因為OU要考試了。

Latest release:1.2.0 (Update on 01-6-2009)
*v1.2.0
Added : Zip upload , just like some image hosting, zip your images and upload. SildeZoom will auto unzip, rename, resize.
Added : Generate relative url or absolute url for output html.
Added : Generate raw images url, for other purpose.
Added : Detect server setting and display info.
Changed : For better file management, thumbnail’s filename ,now change from ‘-thumb’ to ‘-t’ and append to last of filename.
Fixed : Possible missing thumbnail’s url on some condition.

Download SlideZoom At WordPress Plugin Directory:
http://wordpress.org/extend/plugins/slidezoom/

Demo:
thumb_slidezoom_sample_1.jpgthumb_slidezoom_sample_2.jpgthumb_slidezoom_sample_3.jpgthumb_slidezoom_sample_4.jpgthumb_slidezoom_sample_5.jpgthumb_slidezoom_sample_6.jpgthumb_slidezoom_sample_7.jpgthumb_slidezoom_sample_8.jpgthumb_slidezoom_sample_9.jpgthumb_slidezoom_sample_10.jpgthumb_slidezoom_sample_11.jpgthumb_slidezoom_sample_12.jpg

2009年5月11日星期一

WordPress PlugIn - Facebook Album on WordPress

如果你Hosting空間不太夠,或者Bandwidth不夠多而放棄在WordPress建立相簿的話,
可以試試這個WP PlugIn - FotoBook。

它可以把你在Facebook上所建立的Album,放在你的WordPress上,最好的地方是Image Source直接用返FaceBook的,換句話說你不用擔心流量有多大。
雖然Facebook似乎可以無限量建立相簿和上傳圖片,但暫時依然限制一個相簿只可以存放60張圖。而且Facebook的Simple Image Uploader或者Java Image Uploader都非常唔方便。 所以如果真是大量圖片的話,可能就不太適合了。

FotoBook
http://wordpress.org/extend/plugins/fotobook/
FotoBook photo gallery demo:
http://www.aaronharp.com/photo-gallery/

2009年5月6日星期三

WP Plugin - SyntaxHighlighter Evolved

起初用WordPress時,Syntax Highlight Plugin是用SyntaxHighlighter Plus,都是用最好的SyntaxHighlighter Core(連Google / Microsoft都是用它),後來不知什麼原故,可能是和Theme相撞,走位情況十分嚴重。之後唯有轉用WP-Syntax,但WP-Syntax的高亮度其實很多錯誤,就Javascript來說,經常把Comment string和真正的Code混為一談。而且高亮度的顏色實在太怪,雖然有一些Hack如Wp-Syntax Hacktify,但都只是改變顏色而已,Syntax間的誤會解決不了。而且相信是GeSHi Core問題。

今日再次找找,原來SyntaxHighlighter已經更新到2.0,而且解決了之前的問題。
有兩個Plug-in都是用2.0 Core的,
一個是SyntaxHighlighter Plus ,另一個是SyntaxHighlighter Evolved。
其實兩者分別不大,但似乎SyntaxHighlighter Evolved更新得較快,所以我選擇了它。

效果可以上上Demo Page睇睇 : http://alexgorbatchev.com/wiki/SyntaxHighlighter:Demo

2009年4月18日星期六

SlideZoom v1.1.1 Release



Changed : This version is maintenance release. I suggest everyone should update to this version.
Fixed "Stack overflow in IE6 / IE7 / IE8" Javascript error alert.
ie_stack_overflow_at_line_0.gif
Changed : Update HighSlide JS to 4.1.4, and reduce the size of highslide.js from 50KB to 25KB.
Changed : Remove the "Powered by..." label. It is legal action.
See: http://highslide.com/forum/viewtopic.php?f=4&t=608

Download SlideZoom v1.1.1 at WordPress Plugin Directory
http://wordpress.org/extend/plugins/slidezoom/

2009年4月1日星期三

WordPress PlugIn - SlideZoom 1.1 Release!

用左幾天時間,剛剛完成更新SlideZoom至version 1.1。
主要是新增真正Resize圖片功能,不是單單把原圖片set Width同Height~
刪除HighSlide中沒有用的File,減低HighSlide JS的Size。
另外再加進Output BBCode功能。
Update HighSlide JS 至 v4.1.2

寫SlideZoom途中,真的覺得PHP很多Function都很好用,有很多都是.NET沒有的。
已經很久沒有在寫程式過程當中找到樂趣了。

ScreenShot和ChangeLog可以去SlideZoom專頁
或者可以直接去WordPress Plug-in官網下載。
http://wordpress.org/extend/plugins/slidezoom/

2009年3月23日星期一

完成第一個WordPress Plugin : SlideZoom

用了差不多有一星期時間,研究一下寫WordPress的Plugin,畢竟PHP是我Secondary Language,要我在非工作情況下寫PHP,一開始我是拒絕的。
但是呢,由於有太多參考,而且WordPress的Document做得不錯,加上Aptana是個出色的PHP IDE,所以很快便完成了。
這個Plugin隨意起了個名字叫SlideZoom。先說說為什麼會出現寫這個Plugin的念頭。
我用了WP差不多兩年,都試用過很多Gallery,例如WP-Gallery , NextGen etc,但他們都有幾個我不太喜歡的地方。
  1. 如果只想把十多張圖片放上Posts,要新建相簿->Import圖片->加一個Pages->插入相簿....不方便而且久而久之會有大量零零碎碎的相簿出現。
  2. 它們部份都有自己的Trigger,或者有自己的File Location,如果你有一天不用那個Plugin,所有之前的圖片便不再顯示或者因Image Path關係被Isolate。
  3. 不夠輕量,如果就純粹想快速插入大量圖片而言,很多Plugin都要Create自己的Table儲存Meta data,又要設置很多東西等等。
其實即使WordPress本身的Add Media功能都不太好,Media功能只是"Upload一張,加一張",不是針對大量圖片的功能。但無奈地,一直都找不到有人寫我想要的Plugin,唯有自己DIY。

SlideZoom其實流程很簡單,就是: 上傳圖片=>建立HighSlide JS兼容的HTML Code
所以,我編寫SlideZoom時考慮到上述問題,而有以下特色:

1. 共用WordPress本身的上傳資料夾。
2. 圖片HTML格式採用 <a href="圖片" target="_blank"><img src="圖片" height="預設細圖高度" width="預設細圖寬度" /></a>,換句話說,即使有一天不用SlideZoom,圖片依然會正常地顯示出來。
3. 設定方面只是在WP自身的Options table插入一行紀錄。
4. Resize方面用回PHP自帶的GD Extension

暫時還有很多文字上的版權宣言(對HighSlide JS和WP的GPL) 還未搞好,不能上傳至WP的Extent頁。
所以暫時只好在這裡建立一個新頁供下載和ScreenShot,大家可以看看:
SlideZoom's Download / Demo / ScreenShot :
http://tatmingstudio.blogspot.com/2009/03/slidezoom.html
(為什麼WordPress 2.71沒有了Slug功能?我本想建立一頁叫http://blog.miawork.com/SlideZoom/)

Demonstration :





2009年3月22日星期日

SlideZoom

SlideZoom

Latest release:1.4.1 (Update on 02 Jan 2012)
Description:

SlideZoom is a lightweight plugin allow bulk upload images or zip upload to generate a HighSlide JS gallery.
Output as HTML code / BBCode etc... And offering embed the gallery to everywhere (WordPress, Web ,Forum, eBay etc...) by simple copy and paste to posts or pages.
To make the best use of your web space , to let all things serve as your own image hosting!

  • Auto resize upload image, support jpg, png, gif format.
  • Auto rename when duplicate file name.
  • Auto create thumbnail images.

Download SlideZoom At WordPress Plugin Directory:
http://wordpress.org/extend/plugins/slidezoom/
https://dl.dropbox.com/u/19160547/Files/SlideZoom_Release_v1.4.1.zip


Demo:
slidezoom_demo_pic_1-t.jpgslidezoom_demo_pic_2-t.jpgslidezoom_demo_pic_3-t.jpgslidezoom_demo_pic_5-t.jpgslidezoom_demo_pic_7-t.jpgslidezoom_demo_pic_8-t.jpgslidezoom_demo_pic_9-t.jpgslidezoom_sample_10-t.jpgslidezoom_sample_11-t.jpgslidezoom_sample_4-t.jpg

Screen Shot :
The Options Screen :
screenshot-1-t.png

Output as HTML :
screenshot-2-t.png

Output as BBCode :
screenshot-3-t.png

Result - Highslide JS Gallery for your posts or pages :
screenshot-4-t.png

For Installation or Upgrade , please see the readme.txt in the zip package.

**Changelog**
*v1.4.1
Changed : Compatibility with WordPress 3.3.0
Changed : Update Highslide JS to version 4.1.13
Notes : Long times haven't update this. But i use this usually and i love it. So this plugin still under maintenance and more function is WIP.

*v1.4.0
Added : Gallery Mode - You can group all the uploaded images as a gallery. With gallery, there is a control show overlay on group of images to let you play as slideshow or show next/prev images etc.
Added : Images Caption - you can add some description of the images individually, the description will display when enlarge.
Changed : Minor bug fix and UI adjustment.
Changed : Compatibility with WordPress 3.1.0
Changed : Update Highslide JS to version 4.1.9
Fixed : Fix zip upload error caused by wrong function name - getFilename.

*v1.3.3
Changed : Compatibility with WordPress 3.0.0
Changed : Update jQuery Multiple File Upload Plugin to 1.4.7
Fixed : Auto insert default options value when first activation.

*v1.3.2
Fixed : Remove unuse Javascript file.
Changed : Compatibility with WordPress 2.9.1
Changed : Update Highslide JS to version 4.1.8

*v1.3.1
Fixed : Duplicate thumbnail images issue. Thanks alex.elite for bug report.
Changed : Images upload slot is replaced by auto-grow upload slot.

*v1.3.0
Fixed : It cause error on resize images , when filename contains uppercase character , space , or special character.
Added : Easing effect - see example.
Added : Fade-in/out effect.
Added : Ability to control the expander position using margin or alignment.
Added : Ability to tuning the duration of zoom-in and zoom-out.

*v1.2.1
Fixed : I make a mistake on the output html. It should be </a> , not <a/> .

*v1.2.0
Added : Zip upload , just like some image hosting, zip your images and upload. SildeZoom will auto unzip, rename, resize.
Added : Generate relative url or absolute url for output html.
Added : Generate raw images url, for other purpose.
Added : Detect server setting and display info.
Changed : For better file management, thumbnail's filename ,now change from '-thumb' to '-t' and append to last of filename.
Fixed : Possible missing thumbnail's url on some condition.

*v1.1.1
Changed : This version is maintenance release. I suggest everyone should update to this version.
Fixed "Stack overflow in IE6 / IE7 / IE8" Javascript error alert.
Changed : Update HighSlide JS to 4.1.4, and reduce the size of highslide.js from 50KB to 25KB.
Changed : Remove the "Powered by..." label. It is legal action. See: http://highslide.com/forum/viewtopic.php?f=4&t=608

*v1.1.0
Added : Output result as BBCode.
Added : Support resize images as thumbs, different from v1.0.0. v1.0.0 only using html tag to reduce the size, but now, it is REAL resize. thumbnails image's file name will be insert "thumb_" as begin.
Changed : Update HighSlide JS to 4.1.2
Changed : Shrink the HighSlide JS package from 90KB to 50KB now, and remove unuse JS file.
Changed : Refine the option and upload page layout.

*1.0.0
Initial Release



2008年3月31日星期一

WordPress 2.5 Release!!!!

呢次2.5版本是大更新,由v2.3x直接跳過v2.4出v2.5已可見.

主要新加:
Dashboard Widgets (太好了,Login後,唔洗再睇到無用既資訊)
Multi-file upload with progress bar (呢個都唔錯喇,等左咁耐終於有既Function)
Few-click plugin upgrades (呢個我覺得有所保留,因為好睇Plug-in本身,好似SEO All-In-One,我見過好多人用One Click Update而失敗)
Friendlier visual post editor (轉用TinyMCE 3.0 ,但不知功能是不是又係大幅減化)
Built-in galleries (效果還可以,不過NextGen(即係我用緊呢個)更好,Demo按此: WordPress 2.5 Build-in Gallery

還有很多細微更新,可以去官網睇睇:
http://wordpress.org/development/2008/03/wordpress-25-brecker/


2008年1月19日星期六

WordPress PlugIn - Infinite Scrolling Posts

這個Plug-in我都不太懂怎形容,就是使用Ajax把你後續的頁面的文章連續延伸~
如果你有用Firefox Extension那個Custom Google就會知是什麼。

沒有的話,亦都可以去這裡看看效果 : http://blog.netnerds.net/
把Browser Scroll Bar拉到最低就會看到Loading Bar出現。

其實我認為很多人的上網習慣或者都跟我一樣,一般都不太想按<下一頁>...

我找到有兩個同類Plug-in :
1. The Hott Infinite Scrollage
要使用的話,需要檢查theme下的index.php,內容是不是在"content"的DIV中。
這個效果較好,但不知道是否和我的Template或PlugIn起衝突,
我Active後,不能正常運作。
但你都可以試試,因為這個很輕量,而且不用寫Setting進Database的Options Table。
http://blog.netnerds.net/2007/10/aurgasmus-and-the-hott-infinite-scrollage-an-upcoming-wordpress-plugin/

2. Infinite Scrolling Plugin for Wordpress
這個是我現在使用中的,效果就直接返回本Blog主頁,Scroll到最低做測試,
不過缺點是沒有Ajax Loading Image,但問題不大,我相信自己都可以修改一下。
這個Plug-in就需要把你Theme中的index.php一段Code Copy&Paste 至PlugIn 中的Template,
詳情請見Readme file.http://bohuco.net/blog/?tag=infinite-scrolling
0.20版本在Project Page這裡 , 我估作者忘記同步更新...
http://bohuco.net/blog/?page_id=73

2008年1月6日星期日

FCKEditor.NET 2.5 & FCKEditor for WordPress plugin(V2.3.1)


FCKEditor.NET 是一個Wrapper ,可以令ASP.NET對FCKEditor有更好的控制,Add Reference後,就可以當成Web Control般去控制,由2.2版本至今已經有兩年多時間了~如果不計File Browser功能,我就依然較愛用FreeTextBox.

FCKEditor.NET
http://www.fckeditor.net


另外Dean's FCKEditor for WordPress plugin都出了2.3.1版,更新FCKEditor至2.51 , 不過這個Plugin我發生有些問題,出現在Image Browser和File Browser. 如果使用IE的話,當打開File Browser時會出現
Error : The connector is disabled. Please check the "editor/filemanager/browser/default/connectors/php/config.php" file.
但我卻找不到相關檔案.
在Forum上都找到有人有相同問題
Image upload problem wiht Wordpress
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=7964&p=21029&hilit=connector#p21029

到最後...都是算了~解決這個問題再用~保持Tracking~