Archive for April, 2008

Manual page of rebuildlet

Sunday, April 27th, 2008

What’s this

  • All blogs are restructured with the bookmarklet.

Requirements (MT)

  • MTOS
  • MT4.1

Requirements (Browsers)

  • Firefox2 or 3
  • IE7

Installation and Execution

  1. Download JavaScript file from mt-rebuild.js
  2. Upload the downloaded file to an arbitrary server.
    (It need not be the same as the server in which MT is installed. )
  3. Register the following one line as a bookmark.
    javascript:(function(){var s=document.createElement(%22script%22);s.charset=%22UTF-8%22;s.src=%22http://uploaded-server/uploaded-directory/mt-rebuild.js%22;document.body.appendChild(s)})();
  4. It is installation completion. Please execute the bookmarklet.

License

MIT License

Tag/Modifire reference of ToIUtil

Thursday, April 17th, 2008

Tags

<MTToIBlogs>

block

Fetching blogs by using name.

Usage

<MTToIBlogs blog_names="blog1,blog2">
<MTBlogName> !
</MTToIBlogs>
Blog1 !
Blog2 !

<MTToICategories>

block

Fetching categories by using name.

Usage

<MTToICategories labels="category1,category2">
<MTCategoryLabel> !
</MTToICategories>
category1 !
category2 !

<MTToICalendar>

block

Displaying month of calendar.

<MTToICalendarDays>

block

Displaying day of calendar.

<MTToIApply>

block

Displaying just a content.(using for applying global modifire)

Usage

<MTToIApply some_global_modifire="1">
some contents
</MTToIApply>
some contents

<MTToITable>

block

Converting CSV or TSV into table.

Usage

<MTToITable>
a, b, c
d, e, f
</MTToITable>
<td class="data_1">a</td><td class="data_2">b</td><td class="data_3">c</td>
<td class="data_1">d</td><td class="data_2">e</td><td class="data_3">f</td>

Modifires

numeric_reference

Converting contents into numeric reference.

Usage

<MTToIApply numeric_reference="1">
abcdefg
</MTToIApply>
&#97;&#98;&#99;&#100;&#101;&#102;&#103;

convert_encoding

Converting contents into arbitrary Japanese character code.

Usage

<MTToIApply convert_encoding="sjis">
utf8 encoded string
</MTToIApply>
sjis encoded string

encode_csv

Encoding contents for CSV format.

Usage

<MTToIApply encode_csv="1">
abc"de"fg
</MTToIApply>
"abc""de""fg"

trim_to_dots

The first N character is taken out. “…” is added when cut short.

Usage

<MTToIApply trim_to_dots="10,...">
The first N character is taken out.
</MTToIApply>
The fir...