[WP-Plugins]WP-UnFormating 1.x
2008.05.09
[ English ][ Japanese ]
WP-UnFormating is a simple plug-in.
As a result, the content enclosed with special tag releases the format.
For instance, to show sources ( Javascript, CSS etc.).
Installation
- Download wp-UnFormating-1.2.2.zip
- Unpack/upload the "wp-UnFormating.php" into "wp-content/plugins/".
- Activate the plugin from the Admin interface; "Plugins".
Using
When you need you to releases the format, it is enclosed with special tag "[unformat][/unfotmat]".
I can set an option if you want to put unformating contents with template tags.(After ver. 1.2)
- <p id="sample" onclick="myClick(this)">sample text</p>
sample text
History
- ver. 1.0
- 2007.11.30
- first version.
- ver. 1.2
- 2008.03.26
- I gathered some functions and some variables in class.
- I was optional and was able to set a parameter.The option supports template tags.
- ver. 1.2.1
- 2008.05.07
- I revised it so that ‘$n’ was not converted.
Thanks, Mr. David. - I was able to apply this plugin in “the_content” first.
- ver. 1.2.2
- 2008.05.09
- Bug Fix. When there was square brackets in options, malfunction occurred.
- I was able to apply this plugin in “the_content” first.
Problem
When RSS is displayed, it is displayed as it is directly when the escape character, “Style” tag, and “Script” tag are used though it is unrelated to this plug-in.
When you devise the putting out method because it is unsightly.
ここから日本語
WP-Unformatingプラグインは単純なプラグインです。
特殊なタグを入れることで、自動整形を一時的に回避します。
Javascriptやカスケードスタイルシートなど1 を書く場合に有効です。
インストール
- wp-UnFormating-1.2.2.zip をダウンロードします。
- 解凍した「wp-UnFormating.php」を 「wp-content/plugins/」に入れます。
- 管理画面の「プラグイン」にて、このプラグインを有効にします。
使い方
自動整形を解除したいところを、[unformat][/unfotmat]タグで囲みます。
もしあなたがテンプレートタグなどを整形しないコンテンツ内に置きたいならば、オプションを設定をすることができます。(ver. 1.2以降)
使用例は上記 Example を見てください。
History
- ver. 1.0
- 2007.11.30
- 初期バージョン
- ver. 1.2
- 2008.03.26
- コードを一新して、変数や関数を一つのクラス内に集めた。
- オプションを設けて、テンプレートタグなどに対応するようにした。
- ver. 1.2.1
- 2008.05.07
- 「$n」が正しく表示されないので修正した。(ありがとう、Mr. David.)
- 「the_content」フィルタの中で最初に適用されるようにした。
- ver. 1.2.2
- 2008.05.09
- バグフィックス。オプション内に角括弧があると不具合を起こしていた。
- 「the_content」フィルタの中で最初に適用されるようにした。
メモ
直接このプラグインとは関係がないけど、エスケープ文字や”style”タグや”script”タグを使用するとRSS表示時にそのまま表示されてしまいます。
見苦しいので出さない方法を考えねば
謝辞
この初期バージョンを作成するにあたり、SuppinさんのWP-InlineJS 1.0を参考にさせていただきました。
- 本当はdlやテーブル時も同様 [back]


6 Comments Add your own
1. Test driving Wordpress Pl&hellip | 12月 19th, 2008 at 8:42 PM
[...] I looking around on the Internet for script or a code which would allow me to display java script in my post. I found WP-UnFormating 1.x to get the job done. I wanted to run a campaign from a site called Unruly Media and the html code would not work [...]
2. WordPressで自動整形&hellip | 2月 19th, 2009 at 12:50 AM
[...] WP-UnFormating [...]
3. WordPress 2.8 ウィジ&hellip | 6月 14th, 2009 at 1:53 AM
[...] WP-UnFormating [...]
4. Inserting code in your Wo&hellip | 12月 13th, 2009 at 2:22 PM
[...] WP-UnFormating WordPress Plugin [...]
5. 2009年度WordPressに入&hellip | 12月 30th, 2009 at 12:48 AM
[...] WP-UnFormating WordPressのhtmlエディターでjavascriptとかの長いタグを打ち込んでると 勝手に自動整形されて br タグとか p タグとかが入っちゃうお節介を止めるプラグイン。 詳しくは「WordPress [...]
6. WordPress 2.8 ウィジ&hellip | 1月 22nd, 2012 at 12:43 AM
[...] WP-UnFormating [...]
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed