7: 2009-07-08 (水) 13:30:19 nao-pon |
現: 2010-06-16 (水) 20:07:35 nao-pon |
| | | |
| **recentchanges [#n5aee703] | | **recentchanges [#n5aee703] |
- | | |
- | **renderattach [#f45493a7] | |
| | | |
| **redirect [#f7877c85] | | **redirect [#f7877c85] |
| #code(php,nonumbar){{ | | #code(php,nonumbar){{ |
| function plugin_search_init () { | | function plugin_search_init () { |
| + | |
| // Allow search via GET method 'index.php?plugin=search&word=keyword' | | // Allow search via GET method 'index.php?plugin=search&word=keyword' |
| // NOTE: Also allows DoS to your site more easily by SPAMbot or worm or ... | | // NOTE: Also allows DoS to your site more easily by SPAMbot or worm or ... |
| $this->cont['PLUGIN_SEARCH_DISABLE_GET_ACCESS'] = 0; // 1, 0 | | $this->cont['PLUGIN_SEARCH_DISABLE_GET_ACCESS'] = 0; // 1, 0 |
| + | |
| $this->cont['PLUGIN_SEARCH_MAX_LENGTH'] = 80; | | $this->cont['PLUGIN_SEARCH_MAX_LENGTH'] = 80; |
| $this->cont['PLUGIN_SEARCH_MAX_BASE'] = 16; // #search(1,2,3,...,15,16) | | $this->cont['PLUGIN_SEARCH_MAX_BASE'] = 16; // #search(1,2,3,...,15,16) |
| + | |
| $this->config['context'] = 'conv'; // ( '': none or 'db': Use database (light) or 'conv': Convert (heavy) ) | | $this->config['context'] = 'conv'; // ( '': none or 'db': Use database (light) or 'conv': Convert (heavy) ) |
| $this->config['resultMax'] = 500; | | $this->config['resultMax'] = 500; |
| + | |
| // Load Language | | // Load Language |
| $this->load_language(); | | $this->load_language(); |
| | | |
| | | |
| + | |
| + | **renderattach [#ad1ad89c] |
| + | [[ここ>http://xoops.hypweb.net/modules/forum/index.php?post_id=7894]]より転載 |
| + | -プラグインで、レンダラーモードで実際にファイル添付をするページの指定をできるようにした。 |
| + | --#renderattach(ページ名) と記述するとそれ以降、その投稿でファイル添付するページを切り替えることができます。 |
| + | ただし、実際のページ名は、$root->render_attach/ページ名 となります。 |
| + | $root->render_attach は初期状態で「[[:RenderAttaches]]」になっていますので、#renderattach(ログインユーザー専用)とした場合は、ファイル添付されるページは、[[:RenderAttaches]]/ログインユーザー専用 となります。 |
| + | なお、このページは予め作成しておく必要があります。 |
| + | -[[:RenderAttaches]]関連記事まとめ |
| + | --[[XCLで xpWikiレンダラーをサイトに適用した時のinclude表示権限>http://xoops.hypweb.net/modules/forum/index.php?topic_id=2220]] |
| + | --[[画面変遷なしのファイル添付とファイル名挿入>http://xoops.hypweb.net/modules/xpwiki/416.html?word=%3ARenderAttaches]] |
| + | |
| + | -[[ここ>http://xoops.hypweb.net/modules/forum/index.php?post_id=7897]]を勉強すること(nonn50:2009/08/23) |
| + | nonn50は、未だに勉強中です。解った人の追記を求む |
| | | |
| **rsslink [#a5cc82bf] | | **rsslink [#a5cc82bf] |