source: temp/test-xoops.ec-cube.net/html/modules/tinyd0/README @ 405

Revision 405, 6.1 KB checked in by root, 20 years ago (diff)
Line 
1[mlimg][xlang:en]
2TinyD is a forked module based on Tiny Content made by chapi.
3
4Tiny Content is simple and light content module.
5Since I think that simpleness and lightness is the most important factor for content module, I love this module.
6
7I want to clone this module but it is not so easy.
8Thus, I experimented to make a module which can be easily cloned.
9Though it has not understood whether this experiment succeeded yet, I distribute this funny hacked module.
10
11I thanks to the author -Tobias Liegl (AKA CHAPI)-.
12
13
14HOW TO USE:
15
16If you are new user of TinyD or TinyContent, upload modules/tinyd0 and install it. (It's quite normal way as a Module for Xoops)
17
18If you want to use features of PEAR Wiki or SPAW editor, upload common/PEAR and common/spaw into your XOOPS_ROOT_PATH.
19
20If you already a user of CHAPI's TinyContent, rename tinyd0 to tinycontent and overwrite tinycontent/. After this, update the module in module's admin.
21
22If you already a user of TinyD, reneme tinyd0 to tinycontent* as you like.
23Of course, updating module is necessary.
24
25
26You can clone this module easily. only copy them.
27And the rule of directory's name is quite simple.
28
29This module judges its number by tale of directory's name.
30
31modules/tinyd0 - treated as No.0 module of TinyD
32modules/tinycontent1 - treated as No.1 moudle of TinyD
33modules/c2    - treated as No.2 module of TinyD
34modules/tinycontent - treated as unnumbered module of TinyD
35
36The numbers of TinyD have to be unique.
37Also, unnumbered module have to be unique.
38
39You can install or upgrade TinyD as modules/tinycontent/ for compatibility of URI.
40
41Moreover, this module demonstrates more abilities with mod_rewrite when you wrap many pages.
42If you can use mod_rewrite, rename .htaccess.rewrite into .htaccess .
43
44
45APPENDIX:
46
47This project has already exceeded the experimentation phase and reached practical stage.
48I modified almost files and has been changed far from original spec.
49I recommend this hacked module with confidence.
50
51After mh012, you can also duplicate blocks.
52It is useful as replacement as custom blocks or summary of contents.
53
54If you want to use this block as summary, use [summary][/summary] tag.
55In content block, you can see inside of this tags on the other hand you can see whole of contents in main part.
56
57And you also want to add a link for full view, copy templates/blocks/tinycontent_content_block.html.dist to templates/blocks/tinycontent_content_block.html and edit it as you like.
58
59
60APPENDIX2:
61
62If you want to use SPAW integrated with myAlbum-P, set the path for
63phtos/thumbnails like this:
64
65/uploads/photos(number)/
66/uploads/thumbs(number)/
67
68
69[/xlang:en]
70[xlang:ja]
71
72¤³¤ì¤Ï¡¢CHAPI¤µ¤ó¡ÊËÜ̾ Tobias Liegl¡Ë¤Îºî¤Ã¤¿¥³¥ó¥Æ¥ó¥Ä¥â¥¸¥å¡¼¥ë
73Tiny Content ¤ò¥Ù¡¼¥¹¤ËÂç²þ¤¤·¤¿¥â¥¸¥å¡¼¥ë¤Ç¤¹¡£
74
75Åö½é¤Ï¡¢¥·¥ó¥×¥ë¤ÊHackÈǤǤ·¤¿¤¬¡¢äþ;¶ÊÀÞ¤¢¤Ã¤Æ¡¢º£¤ä´°Á´¥ª¥ê¥¸¥Ê¥ë¥â¥¸¥å¡¼¥ë¤È¸Æ¤ó¤Ç¤âº¹¤·»Ù¤¨¤Ê¤¤¥ì¥Ù¥ë¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¼«É餷¤Æ¤¤¤Þ¤¹¡£
76
77
78»È¤¤Êý:
79
80¿·µ¬¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤¢¤ì¤Ð¡¢¥¢¡¼¥«¥¤¥Ö¤òŸ³«¤·¤¿Ãæ¤Ë¤¢¤ë modules/tinyd0 ¤òÉáÄ̤˥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
81
82PEAR Wikiµ¡Ç½¤ä¡¢spawÊÔ½¸µ¡Ç½¤¬É¬ÍפǤ¢¤ì¤Ð¡¢XOOPS¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¡¢¤³¤Î¥¢¡¼¥«¥¤¥ÖÆâ¤Îcommon¥Ç¥£¥ì¥¯¥È¥ê¤ò´Ý¤´¤È¥³¥Ô¡¼¤·¤Æ¤¯¤À¤µ¤¤¡£
83
84ÍÑÅӤˤè¤Ã¤Æ¤Ï¡¢content ¥Õ¥©¥ë¥À¤ò½ñ¹þ²Äǽ¤Ë¤¹¤ë(chmod 777Åù)ɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤¦¤¤¤¦»È¤¤Êý¤Ï¤¢¤Þ¤ê¤ª¾©¤á¤·¤Þ¤»¤ó¡£
85
86¤¹¤Ç¤Ëchapi¤µ¤ó¤ÎTiny Content ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢modules/tinyd0 ¤ò¡¢modules/tinycontent ¤È¥ê¥Í¡¼¥à¤·¤Æ¾å½ñ¤­¤·¡¢¤½¤Î¸å¡¢¥â¥¸¥å¡¼¥ë¥¢¥Ã¥×¥Ç¡¼¥È¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£
87
88²áµî¤ÎTinyD¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤âƱÍͤˡ¢tinycontent0 Åù¤È¥ê¥Í¡¼¥à¤·¤Æ¥â¥¸¥å¡¼¥ë¥¢¥Ã¥×¥Ç¡¼¥È¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£
89
90¤¹¤Ù¤Æ¤ÎTinyD¤Ë¤Ä¤¤¤Æ¡¢¾å½ñ¤­&¥¢¥Ã¥×¥Ç¡¼¥È¤ò¹Ô¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
91
92
93¤³¤Î¤³¤È¤«¤é¤â¤ªÈ½¤ê¤¤¤¿¤À¤±¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢TinyD2 ¤Ï¡¢¤«¤Ê¤ê¼«Í³¤Ë¥Ç¥£¥ì¥¯¥È¥ê̾¤ò·è¤á¤é¤ì¤Þ¤¹¡£
94¤¿¤À¤·¡¢¤Á¤ç¤Ã¤È¤·¤¿¥ë¡¼¥ë¤¬¤¢¤ë¤Î¤Ç¡¢¤½¤ì¤À¤±¤Ï¼é¤é¤Ê¤¯¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£
95(¿ô»ú°Ê³°¤¬£±»ú°Ê¾å)+(¿ô»ú¤¬£±»ú°Ê¾å)
96¤È¤¤¤¦Ì¾Á°¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
97
98¥Ç¥Õ¥©¥ë¥È¤Î 'tinyd0' ¤Ï¡¢¤â¤Á¤í¤óOK¤Ç¤¹¡£
99¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËÃÖ¤«¤ì¤¿¥â¥¸¥å¡¼¥ë¤Ï¡¢TinyD¤Î0ÈÖÌܤȤ·¤Æ°·¤ï¤ì¤Þ¤¹¡£
100
101¤³¤Î¥â¥¸¥å¡¼¥ë¤ò¥³¥Ô¡¼¤·¤Æ¡¢'test1' ¤È¤·¤ÆÃÖ¤±¤Ð¡¢TinyD¤Î1ÈÖÌܤΤǤ­¤¢¤¬¤ê¡£
102'test00003' ¤È¤«¤·¤Æ¤âÎɤ¤¤Ç¤¹¤¬¡¢¤³¤ì¤Ï3ÈÖÌܤˤʤê¤Þ¤¹¡£
103
104¤È¤ê¤¢¤¨¤º¡¢ÈÖ¹æÌµ¤·,0,1,2,3...9 ¤È£¹¤Ä¤À¤±ÍѰդ·¤Æ¤¢¤ê¤Þ¤¹¡£
105¥Æ¥ó¥×¥ì¡¼¥È¤Èsql¥Õ¥¡¥¤¥ë¤òÍѰդ·¤µ¤¨¤¹¤ì¤Ð¡¢¤¤¤¯¤Ä¤Ç¤âÊ£À½²Äǽ¤Ç¤¹¡£
106
107ÈÖ¹æ¤Ê¤·¤Îdirname¤Ï£±¤Ä¤À¤±²Äǽ¤Ç¤¹¡£tinycontent¤È¤¹¤ë¤³¤È¤Ç¡¢URI¸ß´¹¤òÊݤƤޤ¹¡£
108
109
110¤Þ¤¿¡¢¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢Ê£¿ô¥Ú¡¼¥¸¤Î¥é¥Ã¥Ô¥ó¥°¤ò¹Ô¤¦»þ¤Ê¤É¡¢mod_rewrite ¤òÍøÍѤ¹¤ë¤³¤È¤Ç¡¢¤è¤ê¼ÂÎϤòȯ´ø¤·¤Þ¤¹¡£
111¤â¤·¡¢¤ª»È¤¤¤Î¥µ¡¼¥Ð¤¬mod_rewrite¤ò»È¤¨¤ë¤è¤¦¤Ç¤·¤¿¤é¡¢¥â¥¸¥å¡¼¥ë¥Ç¥£¥ì¥¯¥È¥êľ²¼¤Ë¤¢¤ë¡¢.htaccess.rewrite ¤ò .htaccess ¤È¥ê¥Í¡¼¥à¤·¤Æ¤ª»È¤¤²¼¤µ¤¤¡£tinycontentÆâ¤Î¤¹¤Ù¤Æ¤Î¥Ú¡¼¥¸¤ò¡¢ÀÅŪ¥Ú¡¼¥¸¤Ë¸«¤»¤«¤±¤ë¡¢¤Ê¤ó¤Æ¤³¤È¤â²Äǽ¤È¤Ê¤ê¤Þ¤¹¡£(SEOÂкö¤È¤Ê¤ë¤«¤É¤¦¤«¤ÏÃΤê¤Þ¤»¤ó¡£¤È¤¤¤¦¤«¡¢¾¯¤Ê¤¯¤È¤â»ä¤Ï¶½Ì£¤¢¤ê¤Þ¤»¤ó¡Ë
112
113
114mh012 ¤«¤é¡¢¥Ö¥í¥Ã¥¯¤âÊ£À½²Äǽ¤È¤Ê¤ê¤Þ¤·¤¿¡£Ê£À½²Äǽ¥â¥¸¥å¡¼¥ëÆâ¤Ë¡¢Ê£À½²Äǽ¤Î¥Ö¥í¥Ã¥¯¤¬¤¢¤ë¡£¤â¤Ï¤ä²¿¤¬¤Ê¤ó¤À¤«¡¢¤È¤¤¤¦¾õ¶·¤Ç¤¹¤¬¡¢¥«¥¹¥¿¥à¥Ö¥í¥Ã¥¯¤ÎÃÖ¤­´¹¤¨¤È¤·¤Æ¤â¡¢¥³¥ó¥Æ¥ó¥Ä¤ÎÍ×Ìó¤È¤·¤Æ¤â¡¢¤½¤ì¤Ê¤ê¤Ë»È¤¤¾¡¼ê¤ÏÎɤ¤¤À¤í¤¦¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£
115
116¤Ê¤ª¡¢Í×Ìó¤È¤·¤ÆÍøÍѤ¹¤ë¾ì¹ç¤Ï¡¢Í×ÌóÉôʬ¤ò[summary][/summary]¤Ç¶´¤ó¤Ç¤¯¤À¤µ¤¤¡£¥Ö¥í¥Ã¥¯¤Ë¤Ï¤³¤ÎÆâ¦¤À¤±¤¬É½¼¨¤µ¤ì¡¢¥á¥¤¥óÉôʬ¤Ë¤ÏÁ´ÂΤ¬É½¼¨¤µ¤ì¤Þ¤¹¡£
117
118¤µ¤é¤Ë¡¢Í×Ìó¤Çɽ¼¨¤µ¤ì¤¿¥Ö¥í¥Ã¥¯¤«¤é¸µµ­»ö¤Ø¥ê¥ó¥¯¤¹¤ë¤Ë¤Ï¡¢templates/blocks/tinycontent_content_block.html.dist ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ò tinycontent_content_block.html ¤È¤¤¤¦Ì¾Á°¤Ç¥³¥Ô¡¼¤·¡¢Å¬µ¹½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤
119
120
121
122
123¼ØÂ­:
124
125ºÇ½é¤Ï¡¢¤¢¤¯¤Þ¤Ç¼Â¸³¤Î¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¡ÖÊ£À½²Äǽ¡×¤È¤¤¤¦¥¹¥Ú¥Ã¥¯¤¬ÁÛÁü°Ê¾å¤Ë»È¤¤¤ä¤¹¤¯¡¢Â¾¤ÎÍøÍѼԤ«¤é¤â¹¥É¾¤À¤Ã¤¿¤Î¤Ç¡¢º£¤ÏCHAPI¤µ¤ó¤Î¥ª¥ê¥¸¥Ê¥ë¥³¡¼¥É¤â´Þ¤á¡¢¤«¤Ê¤ê¼ê¤òÆþ¤ì¤Æ¤¤¤Þ¤¹¡£¡Ä¡Ä¤È¤¤¤¦¤«¡¢¤«¤Ê¤ê¹¥¤­¾¡¼ê¤ËÆÍ¤ÃÁö¤Ã¤Æ¤Þ¤¹¡Ê¾Ð¡Ë¡£
126
127¤½¤í¤½¤í¡¢¥ª¥ê¥¸¥Ê¥ë¤È¶èÊ̤¹¤ë¤¿¤á¤Ë¤â¡¢Ê̤θƤÓÊý¤ò¤·¤¿Êý¤¬Îɤ¤¤À¤í¤¦¡¢¤È»×¤Ã¤Æ¤¤¤¿º¢¤Ë¤¿¤Þ¤¿¤ÞÌܤˤ·¤¿ paopao¤µ¤ó¤Î¸Æ¤ÓÊý "TinyD" ¤¬µ¤¤ËÆþ¤Ã¤¿¤Î¤Ç¡¢¤³¤Á¤é¤ò¸ø¼°Ì¾¤È¤·¤Æ¤¤¤Þ¤¹¡£
128
129¥Ð¡¼¥¸¥ç¥ó¤âÆÈΩ¤·¤Æ¡¢2.0¤È¤·¤Æ¤¤¤Þ¤¹¡£1.5 mh014 ¤È¤¤¤¦É½¸½¤¬¤¢¤Þ¤ê¤Ë¤âȽ¤ê¤Å¤é¤«¤Ã¤¿¤¿¤á¤Ç¤¹¡£
130
131ºÇ¸å¤Ë¤Ê¤ê¤Þ¤·¤¿¤¬¡¢TinyConent¤È¤¤¤¦ÁÇÀ²¤é¤·¤¯¡¢²þ¤¤·¤ä¤¹¤¤¥â¥¸¥å¡¼¥ë¤ò¸ø³«¤·¤Æ¤¯¤ì¤¿CHAPI¤µ¤ó¤Ë´¶¼Õ¤·¤Þ¤¹¡£
132
133
134¼ØÂ­2:
135
136¤â¤·¡¢common SPAW ¤ò myAlbum-P ¤È¶¨Ä´Åª¤Ë»È¤¦¤¿¤á¤Ë¤Ï¡¢myAlbum-P¦¤Î
137²èÁü/¥µ¥à¥Í¥¤¥ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¼¡¤Î¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
138
139/uploads/photos(number)/
140/uploads/thumbs(number)/
141
142¾¤Î¥Ñ¥¹¤Ë¤¢¤Ã¤Æ¤âSPAW¤Î²èÁüÁªÂò¥À¥¤¥¢¥í¥°¤Ïǧ¼±¤·¤Þ¤»¤ó¤Î¤Ç¡¢¤´Ãí°Õ
143¤¯¤À¤µ¤¤¡£
144
145
146[/xlang:ja]
Note: See TracBrowser for help on using the repository browser.