Posted on May 8th, 2010 in WP Plugins, WP Tips-Tricks | 22,874 views

Sorry, this entry is only available in Việt Nam.

Posted on September 8th, 2009 in WP Plugins | 19,976 views

Short URL Plugin allows you to create shorter URL’s and keeps track of how many times a link has been clicked. It’s useful for managing downloads, keeping track of outbound links and for masking URL’s. Clicking the Clear All Clicks button will reset the count for each entry.

It includes pagination of links, easy setup of htaccess (permalinks) and allows admins to pass variables to their redirects. It also allows customisation of the permalink.

short-url-wp-plugin

After installing, you go to Plugins -> ShortURL to make shorter URLs and use them in your posts. Maybe the usage is so easy that I don't need to guide more, just install and use it.

Download: http://wordpress.org/extend/plugins/short-url-plugin/

Posted on August 7th, 2009 in WP Plugins | 18,768 views
WP System Health

Click to enlarge

WP System Health supports a comprehensive overview about your current WordPress installation in terms of internal states, PHP and Server environment. It adds a new Dashboard Widget at your Blog for Administrators only and is perfect to reduce your spend amount of time doing your service desk operations with non experienced blog user or customers.

This Dasboard widget requires a WordPress version equal or higher than 2.7 and a PHP version of 4.4.3 and higher. This Dashboard extension only displays some information but doesn’t change them nor provides any changing capabilities. It’s also limit to users that are member of the group “Administrator”. All other user won’t get this Widget in their Dashboard and the widget doesn’t collect any data in this case.

You should only install or activate this plugin when you want to view your system information, because too many widget on the Dashboard will make it load slowly, you have to wait more seconds everytime you login to WP-Admin.

Plugin's Home: http://www.code-styling.de/english/development/wordpress-plugin-wp-system-health-en

Download: http://downloads.wordpress.org/plugin/wp-system-health.1.1.5.zip

Posted on June 24th, 2009 in WP Plugins | 48,839 views

Bữa nay ngồi lướt web vu vơ thì tôi phát hiện ra một plugin khá hay cho WordPress nên tranh thủ viết nhanh bài giới thiệu này cho các bạn đây. Plugin này cực kỳ hữu ích, nó thuộc dạng plugin tăng lực cho WordPress mà trọng tâm là cho trang 404. Để dễ hiểu, trước hết bạn cứ truy cập vào link này đã:

http://hieudt.info/blog/wordpress-google-p1i-plugin-theme

Chắc chắn bạn sẽ gặp ngay một trang 404, lý do là vì blog của tôi không có bài viết (post) hay trang (page) nào có đường dẫn (permalink) như thế nhưng cái cần chú ý ở đây là trang 404 này hơi đặc biệt một chút, ngoài thông báo 404 ra, nó còn liệt kê thêm cho bạn những thông tin liên quan khác bằng cách tách từng chữ trong đường dẫn để làm từ khóa cho Google tìm kiếm. Very cool! >:D<

Theo tôi tính năng này rất có ích, một cách hữu hiệu để bạn giữ chân người đọc, biết đâu người xem họ gõ nhầm địa chỉ thì sao :D đồng thời còn phát huy thêm khả năng SEO cho blog của bạn nữa (theo như lời tác giả plugin).

Plugin đó tên là AskApache Google 404, thông tin chi tiết bạn có thể vào trang chủ  của plugin để xem còn ở đây tôi chỉ trình bày ngắn gọn cách cài đặt thôi.

Bởi vì plugin dùng công nghệ tìm kiếm của Google nên bạn cần phải có một Google Search API Key thì mới xài plugin được, bạn vào đây để đăng ký (nếu bạn đã có sẵn Google Account rồi thì đăng ký rất nhanh), kế tiếp bạn cài plugin vô sau đó vào trang tùy chọn của nó để cấu hình.

Đầu tiên bạn đừng vội thay đổi các thông số, cứ nhập Google Search API Key vào trước rồi bấm nút Save Changes để plugin có hiệu lực. Kế tiếp bạn thêm đoạn code dưới đây vào file 404.php của theme bạn đang dùng.

<?php if(function_exists('aa_google_404')) aa_google_404(); ?>

Bạn có thể sửa file 404.php ngay trong WP-Admin luôn cũng được. Xem cái hình minh họa dưới đây là biết làm ngay thôi
edit file 404

Bây giờ thì bạn thử mở một đường dẫn nào đó không tồn tại trên blog của bạn xem plugin làm việc chưa. Nếu ok rồi thì bạn tham khảo thêm các tùy chọn khác của plugin nữa là xong, không biết sửa gì thì cứ để mặc định cũng được.

Lời khuyên của tôi là bạn nên sử dụng plugin này, một plugin không thể thiếu (must-have) cho blog WordPress.

Mọi thắc mắc mời bạn viết comment ở đây nhé, chúc bạn thành công! :)

Posted on May 7th, 2009 in WP Plugins | 19,293 views

Như bạn đã biết, mặc định khi cài WordPress thì nó sẽ cấp cho bạn một tài khoản quản trị với username là admin và bạn không thể thay đổi tên này trừ khi bạn vào phpMyAdmin để sửa trực tiếp trong database. Có thể nói việc áp đặt này là hơi dở và kém bảo mật, còn vì sao kém bảo mật thì chắc bạn cũng tự đoán ra được rồi, hacker chỉ cần dò password nữa là xong. :D

Hiện có nhiều plugin giúp WordPress tăng cường bảo mật ở khâu đăng nhập nhưng ở đây tôi muốn giới thiệu một plugin "tí hon" có thể thay đổi tên admin thành tên của riêng bạn, cách làm rất đơn giản, chỉ cần 4 bước sau:

1. Download plugin change-admin-username.zip (3 KB)
2. Cài nó vào WordPress
3. Rồi làm như hình minh họa dưới đây
4. Sau đó thoát ra và login lại với username mới

Đổi username thành công rồi thì bạn cứ thoải mái deactivate plugin này đi cho nhẹ blog. :D Hy vọng plugin bé xíu này sẽ giúp ích cho bạn! :)

Posted on April 10th, 2009 in WP Plugins | 12,587 views

Bạn thấy đấy, WordPress không cho phép chúng ta di chuyển comment từ bài viết này sang bài viết khác. Đây quả là một bất tiện khi bạn muốn sắp xếp các comment ở đúng vị trí của chúng bởi vì không phải lúc nào người xem cũng viết comment ở đúng nơi bạn mong muốn. Tuy nhiên vẫn có thể giải quyết được vấn đề này bằng cách dùng một trong bốn plugin mà tôi sắp giới thiệu dưới đây.

1. WP Move Comments

Một sản phẩm "made in VietNam" do rilwis viết. Sau khi cài, plugin này sẽ tự động thêm chữ Move vào bên dưới mỗi comment.
wp-move-comments
Muốn chuyển comment nào thì bạn click vào chữ Move sau đó nhập ID của bài viết cần chuyển đến. Cách lấy ID của bài viết thì mời bạn xem tại trang chủ của plugin.
-- Ưu điểm: gọn nhẹ, dễ sử dụng, tác giả là người Việt nên dễ liên hệ. :D
-- Nhược điểm: người dùng phải tự lấy ID bài viết và không chuyển nhiều comment cùng một lúc được.

2. Comment Move

Sau khi cài plugin, để di chuyển comment, bạn bấm vào chữ Edit (nhớ rê chuột vào comment thì menu mới hiện ra)
comment-move-1
Kế tiếp, bạn chọn bài viết cần chuyển comment đến, plugin sẽ tự động lấy ID của bài viết đó và bạn chỉ việc bấm nút Update Comment là xong.
comment-move-3
-- Ưu điểm: lấy ID bài viết một cách tự động
-- Nhược điểm: không chuyển nhiều comment cùng một lúc được.

3. BDP Move Comments

Sau khi cài, plugin này sẽ thêm một page trong phần quản lý comment (Dashboard > Comments > Move Comments). Khi vào, bạn sẽ thấy phần tùy chọn cho plugin và bên dưới là một bảng chứa tất cả comment trên blog đã được phân trang (mỗi trang gồm 20 comment).

Ý nghĩa của từng tùy chọn như sau:

1) Enable the "Move it!" button for blog superusers when they browse comments
=> Hiện thêm nút "Move it!" bên dưới mỗi comment (bên ngoài blog chứ không phải trong wp-admin)

2) List all possible destinations for a move
=> Liệt kê tất cả bài viết trên blog (kể cả attachment) để bạn chọn khi muốn chuyển comment đến. Lưu ý: sẽ rất chậm nếu blog có quá nhiều bài viết.

3) When not listing all possible destinations, list destination posts within how many days of today
=> Nếu không dùng tùy chọn số 2 thì chỉ liệt kê những bài trong khoảng thời gian bao nhiêu ngày trở lại

4) When not listing all possible destinations, be sure to include these page and post IDs as destinations
=> Nếu không dùng tùy chọn số 2 thì bắt buộc lúc nào cũng phải liệt kê những bài có ID mà bạn chỉ định

Sau khi thiết lập tùy chọn xong, bạn chỉ việc chọn những comment cần chuyển sau đó kéo xuống dưới và bấm nút "Bulk move checked comments »". Sang trang kế tiếp, bạn lưu ý ở cột TypeStatus, bạn phải chọn những bài có type là 'post' (hoặc page) với status là 'publish' thì ra ngoài mới thấy có tác dụng.
move-comments-4
-- Ưu điểm: có thể chuyển được nhiều comment, có thêm nút "Move it!" ở bên ngoài để admin tiện sử dụng.
-- Nhược điểm: phải cấu hình thêm, không cần thiết phải liệt kê cả những attachment.

4. Move Comments

Tương tự như plugin số 3, plugin này cũng thêm một page tên là Move trong Dashboard > Comments nhưng nó không có phần tùy chọn và cách hoạt động hơi khác một chút.

Thay vì chọn comment trước thì plugin này cho bạn chọn bài viết trước. Có hai danh sách chứa tất cả bài viết trên blog, bạn chọn một bài trong ô -- Move From -- rồi chọn comment cần di chuyển đến một bài trong ô -- Move To --, sau đó bấm nút Update Options »
-- Ưu điểm: có thể chuyển được nhiều comment, không cần cấu hình thêm
-- Nhược điểm: không phân biệt bài nào là post, bài nào là page trong hai danh sách

Kết luận

Như bạn thấy, cả 4 plugin trên đều có ưu-nhược điểm riêng, hai plugin đầu thì gọn nhẹ, đơn giản nhưng chỉ tác động lên một comment còn hai plugin sau thì mạnh hơn, có thể chuyển nhiều comment cùng một lúc. Vì vậy tùy theo tình huống mà bạn hãy chọn plugin cho phù hợp. :)

Tôi đã test qua 4 plugin trên và đã hiểu phần nào về cách thức hoạt động của chúng. Nếu muốn khắc phục nhược điểm của plugin số 3, số 4 thì bạn cứ comment ở đây, tôi sẽ gửi cho bạn bản update của hai plugin đó. Ngoài ra nếu bạn còn biết thêm plugin nào khác hoặc có ý tưởng mới để dễ thao tác hơn thì xin mời bạn chia sẻ, biết đâu những ý tưởng của bạn có thể giúp tôi viết ra một plugin mới tốt hơn. :D

Posted on April 5th, 2009 in WP Plugins | 17,012 views

Vừa rồi tôi có hướng dẫn bạn cách tùy biến Smilies trong WordPress mà không cần dùng đến plugin bằng cách sửa file wp-config.php. Tuy có hơi thủ công một chút nhưng theo tôi cách đó là đơn giản và nhanh chóng nhất, khỏi phải cài plugin - cái mà tôi hạn chế càng ít càng tốt (không biết bạn thế nào :D )

Tuy nhiên, nếu bạn ngại việc sửa file cấu hình hoặc không thích đụng tới code, bạn vẫn có thể dùng plugin cho tiện. Nói về plugin cho vụ này thì có rất nhiều, bạn chỉ việc lựa chọn plugin thích hợp rồi cài vào sử dụng là xong. Tôi có liệt kê sẵn bên dưới một số cái mà tôi biết để giúp bạn đỡ mất thời gian tìm kiếm.

1. Đầu tiên phải kể đến là WP Grins của Alexking. Đây là một plugin khá đơn giản mà Alexking gọi là "A Clickable Smilies hack for WordPress", bằng cách dùng Prototype, nó sẽ tự động thêm một thẻ div (có id là wp_grins) chứa các smilies vào 2 nơi: trước ô nhập nội dung comment trên theme và dưới phần soạn thảo bài viết trong wp-admin. Các smilies được lấy từ biến $wpsmiliestrans nên bạn có thể dùng plugin này kết hợp với cách sửa file wp-config.php mà tôi đã hướng dẫn (xem ở đây)

2. WordPress Yahoo/MSN Messenger Style Smileys - Một plugin của Priyadi (người Indonesia) được khá nhiều người sử dụng, chức năng của nó là thay thế các smilies mặc định của WordPress bằng smilies của Yahoo! Messenger hoặc MSN Messenger.

priyadi-smilies

Priyadi không dùng biến $wpsmiliestrans mà tự định nghĩa thêm 2 biến khác là $yahoosmiliestrans$msnsmiliestrans lần lượt chứa tất cả smilies của Yahoo! và MSN Messenger. Để hiện smilies, bạn chèn <?php smilies_clickable(); ?> vào chỗ bạn thích trong file comments.php, plugin sẽ không hiện tất cả smilies mà chỉ hiện các smilies phổ biến, bạn có thể tùy biến chúng trong 2 biến $smilies_yahoo_always_shown và $smilies_msn_always_shown.

Lưu ý: khi sử dụng plugin này, bạn phải tắt tùy chọn Convert emoticons like :-) and :-P to graphics on display nằm trong "Settings > Writing" để WordPress không dùng các smilies mặc định nữa.

3. Smilies Themer - plugin này không giống như 2 plugin trên, nó không hiện các smilies ra bên ngoài mà chỉ thay đổi hệ thống smilies theo ý riêng của bạn. Nói một cách dễ hiểu là thay vì bạn sửa file wp-config.php bằng tay thì bạn có thể dùng plugin này để thay thế, nó cung cấp khá nhiều bộ smilies cho bạn lựa chọn, sau khi chọn xong, WordPress sẽ chỉ hiện các smilies đó mà thôi. Tôi nghĩ nếu các phiên bản kế tiếp của WordPress mà có tính năng này thì quá tuyệt! :D

4. Smilies Themer Toolbar - đây là plugin dạng "cơm thêm" cho Smilies Themer. Bạn chọn bộ smiles nào trong Smilies Themer thì plugin này sẽ hiện các smilies đó ở bên dưới ô nhập comment hoặc bạn muốn hiện ở chỗ khác thì dùng đoạn code này:

<?php if (function_exists('sm_toolbar_show')) sm_toolbar_show(); ?>

Lưu ý: plugin này chỉ chạy chung với Smilies Themer, nếu Smilies Themer chưa được cài thì plugin này không có tác dụng.
smilies-themer
5. Smiley JS Buttons - đúng như tên gọi của nó, plugin này dùng Javascript để tạo ra các smilies, nó tương tự như plugin WP Grins của Alexking nhưng đơn giản hơn một chút là nó không dùng Prototype và cũng không tự động hiện smilies ở comment form mà bạn phải chèn thêm code sau:

<?php if (function_exists('SJB_outputSmilies')) SJB_outputSmilies(); ?>

smiley_js_buttons

Đón xem tiếp phần 2....

Posted on February 28th, 2009 in WP Plugins | 24,495 views

Quick Slugs ScreenshotDescription:
Quick Slugs is a plugin for WordPress that helps you edit, update posts/pages slugs quickly.

Requires Version:
WordPress 2.7 or higher

Supported Languages:
US English/en_US (default)
Vietnamese/vi_VN

Download:

Installation:

  1. Download the plugin and extract its content
  2. Upload the complete folder “quick-slugs” to the “/wp-content/plugins/” directory
  3. Activate the plugin through the ‘Plugins’ menu in WP-Admin
  4. Go to ‘WP-Admin -> Posts -> Quick Slugs’ to change slugs

This version supports English and Vietnamese, English is the default. To use Vietnamese, follow these steps:
1. Open wp-config.php in the WordPress root directory on your host
2. Search this line:

define ('WPLANG', '');

and revise to

define ('WPLANG', 'vi_VN');

Any questions or suggestions, please leave comments here. Thank you! :P

Posted on December 15th, 2008 in WP Plugins | 68,017 views

This is a plugin for WordPress 2.6+ that can help you know where your commenters come from, which type of web browser and OS they used when they left a comment on your blog. It provides two functions that take IP and User Agent as parameters and then return HTML string contains country flag, web browser and OS icons. You can put these icons anywhere you like in each comment.
In fact, this plugin is a combination of two plugins: WordPress Browser Detection Plugin and Easy IP2Country that I have intergrated as a built-in plugin for my premium theme before, see this page for example, but now I decide to separate it as a new plugin with some enhancements and share it for everyone. :)

Features:

  • Detects and shows commenter's country flag, web browser and operating system
  • Supports many web browsers and operating systems: major desktop browsers, antiquated browsers, blogging software (for trackbacks and pingbacks), text based browsers, various PDAs and cell phones.
  • Uses a binay file for IP to country resolution and supports database sources from Webhosting.info - Software77.net
  • The returned string can be configed as a template to suite your theme

Screenshot:

comment info detector

Download:

download

Installation:

  1. Download the plugin and extract its content
  2. Upload the complete folder "comment-info-detector" to the "/wp-content/plugins/" directory
  3. Activate the plugin through the 'Plugins' menu in WP-Admin
  4. Go to 'WP-Admin -> Settings -> Comment Info Detector' to configure the plugin

Update:

To update new version for this plugin, please deactivate it => delete the old plugin-folder from your server => upload the new plugin-folder => activate the new plugin.

Usage:

  1. Open wp-content/themes/<YOUR THEME NAME>/comment.php
  2. Find the comment loop:
    1
    
    foreach ($comments as $comment)
  3. Add anywhere you like below the comment loop:
    1
    
    <?php if (function_exists("CID_init")) { CID_print_comment_flag(); echo ' '; CID_print_comment_browser(); } ?>
  4. Optional: you can change the CSS style for flag - web browser - OS icons, open and edit:/wp-content/plugins/comment-info-detector/comment-info-detector.css

Credits

Comment Info Detector is written by me, HieuDT. Big thanks to Priyadi Iman Nurcahyo for web browser, OS detection code and Omry Yadan for IP2Country library.

Changelog:

  • 1.0.0 [12-15-2008]: First released.
  • 1.0.1 [12-16-2008]: Added two quick-tags for web browser and operating system to return result correctly.
  • 1.0.2 [01-12-2009]: Updated database for ip2country library and increase ability to detect some new web browsers - operating systems.
  • 1.0.3 [01-18-2009]: Added two options that automatically display icons, no need to modify comments.php file.
  • 1.0.4 [03-02-2009]: Updated database for ip2country and added icons for IE8, Vista.
  • 1.0.5 [09-07-2009]: Updated database for ip2country and added icons for Windows 7.

Now I still continue to develop this plugin and I'm very glad to receive feedback from you. If you feel this plugin is missing or not working well, you are welcome, please let me know! :D

Posted on December 3rd, 2008 in WP Plugins | 12,114 views


Similar to Lightbox 2, WP-Lytebox is a WordPress plugin which uses Lytebox to add a lightbox functionality to images as well as HTML content such as web pages. This plugin will automatically group all the images links in your post content into a gallery with next and previous links. Just download and install it, you are done!

Installation:

  1. Download plugin here.
  2. Upload extracted content to the /wp-content/plugins/ folder, and activate it.
  3. That all!

Note that Lytebox can also be configured via "lytebox.js" if you wish.

Page 1 of 212