February 1, 2008

WordPress 複数設置する方法のメモ

一つのデーターベースで複数のWordPressを運営したい場合
wp-config.phpの12行目 のテーブル接頭語(Prefix)を違うものに変更します。

デフォルトは wp_ となっているので、
wp1_, wp2_ などのように好きな物に変更します。

$table_prefix = ‘wp_’;

$table_prefix = ‘wp1_’;

等に変更してUPしてインストールする。

データベースMySQLは一つでも
アップロード画面からPrefix(接頭辞)を変えれば、
いくつでもWordPressの設置が出来ます。

January 5, 2008

PodPress Plugin ポッドキャストプラグイン

Installation

If you have ever installed a pluggin, then this will be pretty easy.

1. Extract the files. podpress directory into
wp-content/plugins/
2. If your using WordPress 1.5, then you will need to use the replacement wp-rss2.php file that is provided. Look in the podpress/WP1.5_users/ directory
3. Login to the Site Admin and go to Plugins and active podPress
4. Then it can be configured from the Options menu. The config should be pretty straight forward, and it even has a preview of what your podcast would look like on iTunes.

Note: If using PHP5 you may need to increase the memory_limit setting in your php.ini to be at least 12M if you run into the problem of getting a blank screen after enabling the podPress Plugin

Usage


チュートリアル

January 4, 2008

Video とAudioコメント

http://riffly.com/

Mixed video and audio comments integrated with the standard comment system.

WP-EMail 2.20 エントリーをメールで送ることが出来るプラグイン

WP-EMail 2.20

Installation Instructions

1. Open wp-content/plugins Folder
2. Put:

Folder: email

3. Activate WP-EMail Plugin
4. Login To WP-Admin, Click E-Mail Tab
5. Modify your settings accordingly. If the mail server/type settings are not correct, WP-Email will NOT work.
6. You Need To Re-Generate The Permalink (WP-Admin -> Options -> Permalinks -> Update Permalink Structure)
7. Refer To Usage For Further Instructions


Usage Instructions
General Usage

1. Open wp-content/themes//index.php

You may place it in single.php, post.php, page.php or theloop.php also.
2. Find:

3. Add Anywhere Below It:

If you DO NOT want the print link to appear in every post/page, DO NOT use the code above. Just type in [email_link] into the selected post/page content and it will embed the email link into that post/page only.

EMail Stats (Outside WP Loop)

* To Display Most E-Mailed Posts
* Use:



The first value you pass in is what you want to get, 'post', 'page' or 'both'.
The second value you pass in is the maximum number of post you want to get.

Default: get_mostemailed('both', 10);
* To Display Total E-Mails Sent
* Use:



* To Display Total E-Mails Sent Successfully
* Use:



* To Display Total E-Mails Sent Unsuccessfully
* Use:



Note

* If WP-EMail 2.20 does not work for you (404 error even after re-generating of permalink), please drop me an email with page.php of your theme attached to it. The problem is due to your theme is using an outdated method of getting/display posts/pages.

* To change the background color of the popup window:
1. Open wp-email-popup.php
2. Find:

/* background: #ffffff; */

3. Replace:

background-color: #ffffff;

Where #ffffff should be your background color for the popup window.

MyCSS

MyCSS

Installation

1. Download and extract the “MyCSS” folder
2. Upload the “MyCSS” folder to your WordPress plugin directory, usually “wp-content/plugins”
3. Activate the plugin in your WordPress admin panel

January 3, 2008

WP-PostRatings 1.20

WP-PostRatings 1.20

Installation Instructions

1. Open wp-content/plugins Folder
2. Put:

Folder: postratings

3. Activate WP-PostRatings Plugin
4. Refer To Usage For Further Instructions

Upgrade Instructions
From v1.0x To v1.20

1. Deactivate WP-PostRatings Plugin
2. Open wp-content/plugins Folder
3. Overwrite:

Folder: postratings

4. Delete these file if exists:

File: wp-content/plugins/postratings/postratings-js.js

5. Activate WP-PostRatings Plugin
6. Go to 'WP-Admin -> Ratings -> Ratings Options' and restore all the template variables to Default
7. Refer To Usage For Further Instructions


Usage Instructions
General Usage

1. Open wp-content/themes//index.php

You may place it in single.php, post.php or page.php also.
2. Find:

3. Add Anywhere Below It (The Place You Want The Ratings To Show):

If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in [ratings] into the selected post/page content and it will embed ratings into that post/page only.

If you want to embed other post ratings, use [ratings=1], where 1 is the ID of the post/page ratings that you want to display.

If you want to embed other post ratings results, use [ratings_results=1], where 1 is the ID of the post/page ratings resilts that you want to display.

Note

* Note: In IE, some of the post ratings' text may appear jagged (this is normal in IE). To solve this issue,
1. Open postratings-css.css
2. Find:

/* background-color: #ffffff; */

3. Replace:

background-color: #ffffff;

Where #ffffff should be your background color for the poll.

Ratings Stats (With Widgets)

1. Activate WP-PostRatings Widget Plugin
2. Go to 'WP-Admin -> Presentation -> Widgets'
3. To Display Highest Rated Post
4. Drag the Highest Rated Widget to your sidebar
5. You can configure the Highest Rated Widget by clicking on the configure icon
6. To Display Most Rated Post
7. Drag the Most Rated Widget to your sidebar
8. You can configure the Most Rated Widget by clicking on the configure icon
9. Click 'Save changes'

Ratings Stats (Outside WP Loop)

* To Display Highest Rated Post
* Use:





Default: get_highest_rated('both', 10)

The value 'both' will display both the highest rated posts and pages.

If you want to display the highest rated posts only, replace 'both' with 'post'.

If you want to display the highest rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 highest rated posts/pages.
* To Display Highest Rated Post In A Category
* Use:





Default: get_highest_rated_category(0, 'both', 10)

The value 0 will display highest rated post from category id 0.

You can define multiple categories by replacing 0 with array(1,2,3). This will include ratings from category 1, 2 and 3.

The value 'both' will display both the highest rated posts and pages.

If you want to display the highest rated posts only, replace 'both' with 'post'.

If you want to display the highest rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 highest rated posts/pages.
* To Display Most Rated Post
* Use:





Default: get_most_rated('both', 10)

The value 'both' will display both the most rated posts and pages.

If you want to display the most rated posts only, replace 'both' with 'post'.

If you want to display the most rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 most rated posts/pages.


» Usage Instructions
General Usage

1. Open wp-content/themes//index.php

You may place it in single.php, post.php or page.php also.
2. Find:

3. Add Anywhere Below It (The Place You Want The Ratings To Show):

If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in [ratings] into the selected post/page content and it will embed ratings into that post/page only.

If you want to embed other post ratings, use [ratings=1], where 1 is the ID of the post/page ratings that you want to display.

If you want to embed other post ratings results, use [ratings_results=1], where 1 is the ID of the post/page ratings resilts that you want to display.

Note

* Note: In IE, some of the post ratings' text may appear jagged (this is normal in IE). To solve this issue,
1. Open postratings-css.css
2. Find:

/* background-color: #ffffff; */

3. Replace:

background-color: #ffffff;

Where #ffffff should be your background color for the poll.

Ratings Stats (With Widgets)

1. Activate WP-PostRatings Widget Plugin
2. Go to 'WP-Admin -> Presentation -> Widgets'
3. To Display Highest Rated Post
4. Drag the Highest Rated Widget to your sidebar
5. You can configure the Highest Rated Widget by clicking on the configure icon
6. To Display Most Rated Post
7. Drag the Most Rated Widget to your sidebar
8. You can configure the Most Rated Widget by clicking on the configure icon
9. Click 'Save changes'

Ratings Stats (Outside WP Loop)

* To Display Highest Rated Post
* Use:





Default: get_highest_rated('both', 10)

The value 'both' will display both the highest rated posts and pages.

If you want to display the highest rated posts only, replace 'both' with 'post'.

If you want to display the highest rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 highest rated posts/pages.
* To Display Highest Rated Post In A Category
* Use:





Default: get_highest_rated_category(0, 'both', 10)

The value 0 will display highest rated post from category id 0.

You can define multiple categories by replacing 0 with array(1,2,3). This will include ratings from category 1, 2 and 3.

The value 'both' will display both the highest rated posts and pages.

If you want to display the highest rated posts only, replace 'both' with 'post'.

If you want to display the highest rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 highest rated posts/pages.
* To Display Most Rated Post
* Use:





Default: get_most_rated('both', 10)

The value 'both' will display both the most rated posts and pages.

If you want to display the most rated posts only, replace 'both' with 'post'.

If you want to display the most rated pages only, replace 'both' with 'page'.

The value 10 will display only the top 10 most rated posts/pages.

January 2, 2008

Star Rating Plugin

Star Rating

Rating Plugin
Installation

1. Download and extract the “star-rating-for-reviews” folder
2. Upload the “star-rating-for-reviews” folder to your WordPress plugin directory, usually “wp-content/plugins”
3. Activate the plugin in your WordPress admin panel

Upgrade

1. Deactivate the plugin in your WordPress admin panel
2. Remove the “star-rating-for-reviews” folder in your WordPress plugin directory
3. Follow the installation guide above

Normal rating:
[rating:3.5] = Rating: ★★★½☆

By default, this will be interpreted as 3.5/5, as shown in the rating stars generated. Default denominator can be changed via options detailed in the next section. Even though this tagging style is simple, it might not be future proof when someday you decided to change the default denominator to say 10 (for whatever reason). In this case 3.5 will be interpreted as 3.5/10, which is very different compared to 3.5/5. Once you start using this tagging style, make sure you are not going to change the default denominator in the future. :)
[rating:3/4] = Rating: ★★★☆

“3/4″ will generate a “3 out of 4 stars” rating and “2/8″ will generate “2 out of 8 stars” and so on. This will continue to work as long as the denominator is not larger than 20. Beyond that, the score will be normalized and display in the default 5 stars system, as shown in the next example.
[rating:93/100] = Rating: ★★★★½

The “Rating:” prefix you can see in all examples above is the default prefix, which you can remove easily to show just the stars or add in your own custom CSS class by changing some options. More information about this in the Options section.

January 1, 2008

WordPress インストール方法 メモ

1. Download and unzip the WordPress package, if you haven't already.
2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
3. Rename the wp-config-sample.php file to wp-config.php.
4. Open wp-config.php in your favorite text editor and fill in your database details.
5. Place the WordPress files in the desired location on your web server:

* If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.

* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.

Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.


6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
* If you installed WordPress in the root directory, you should visit:    http://example.com/wp-admin/install.php
* If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

December 28, 2007

シェイクスピアデータベースのアップグレード

シェイクスピアデータベースで、使っているCGIを
最新版にして、手直しをして、シェイクスピアデータベースを
version 2.0にのアップグレードしました。

テンプレートを変えてから、日本語でのサーチが出来なくなくなっていた不具も訂正し、サーチ結果もテンプレート内に表示させる様にしました。

近日中に、訪問者の皆様にも、ユーザー登録後、データを登録、編集出来る様にします。

April 23, 2007

Feed to JavaScript導入で、いつも最新ニュースを表示可能に。

moondakota のサービスを使って、RSSを読み込んでみましたが、moondakota のサーバーが不安定なので、feed2jsのfeed2jsを使って、自前でJavaScript作成が出来る様にした。それにより、いつでも最新ニュースをサイト内に表示可能になりました。