質問箱/5236
の編集
Top
/
質問箱
/
5236
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
Wikiを試したい方へ:
「この」Wikiは、
PukiWiki
のための公式Wikiです。
テスト書き込みなどは
お試しサイト
https://pukiwiki.osdn.jp/_trial/
をご利用ください
**[[質問箱/5236]] [#l467fb4b] |RIGHT:70|LEFT:410|c |~カテゴリ|デザイン・CSS・スキン| |~サマリ|skinにプラグインを直接埋め込む方法| |~バージョン|1.5.1| |~投稿者|[[yan]]| |~状態|完了| |~投稿日|&new{2016-10-06 (木) 03:54:02};| ***質問 [#n91ba5a2] pcommentプラグインをスキンに組み込みたいのですが、プラグイン自体は埋め込めるのですが、引数の指定方法が分かりません。 #pcomment(,10,below,reply) 出来れば上記の形でskinに埋め込みたいのですがご教授お願いいたします。 <?php if (exist_plugin('pcomment')) echo plugin_pcomment_convert(func_get_args()); ?> 現状では上記の形でスキンに埋め込む事は出来ています。 ***回答 [#z772e550] - lib/plugin.php のexist_plugin_convert() とdo_plugin_convert() を使う方が早いかな? <?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?> みたいなかんじで。plugin_pcomment_init() が無いし問題なさそうだから、という事で直接plugin_pcomment_convert() を叩きたいなら、do_plugin_convert() からロジックを拝借して csv_explode(',', ',10,below,reply') でパラメーターのarray を作成してplugin_pcomment_convert() に渡すという事も一応できるはず -- &new{2016-10-06 (木) 20:32:39}; -パラメーターのarray を作成してplugin_pcomment_convert() に渡すと言う方法を自分でも探していたのですがphpの知識が乏しい為、出来ずに終わっていました。 後学の為にもarrayの勉強もしたかったのですが。 <?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?> 上記の方法で問題なく実装できたので、今回はこれで質問を終わりたいと思います。 早い回答大変ありがとうございました。-- [[yan]] &new{2016-10-07 (金) 02:53:57}; //#comment
**[[質問箱/5236]] [#l467fb4b] |RIGHT:70|LEFT:410|c |~カテゴリ|デザイン・CSS・スキン| |~サマリ|skinにプラグインを直接埋め込む方法| |~バージョン|1.5.1| |~投稿者|[[yan]]| |~状態|完了| |~投稿日|&new{2016-10-06 (木) 03:54:02};| ***質問 [#n91ba5a2] pcommentプラグインをスキンに組み込みたいのですが、プラグイン自体は埋め込めるのですが、引数の指定方法が分かりません。 #pcomment(,10,below,reply) 出来れば上記の形でskinに埋め込みたいのですがご教授お願いいたします。 <?php if (exist_plugin('pcomment')) echo plugin_pcomment_convert(func_get_args()); ?> 現状では上記の形でスキンに埋め込む事は出来ています。 ***回答 [#z772e550] - lib/plugin.php のexist_plugin_convert() とdo_plugin_convert() を使う方が早いかな? <?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?> みたいなかんじで。plugin_pcomment_init() が無いし問題なさそうだから、という事で直接plugin_pcomment_convert() を叩きたいなら、do_plugin_convert() からロジックを拝借して csv_explode(',', ',10,below,reply') でパラメーターのarray を作成してplugin_pcomment_convert() に渡すという事も一応できるはず -- &new{2016-10-06 (木) 20:32:39}; -パラメーターのarray を作成してplugin_pcomment_convert() に渡すと言う方法を自分でも探していたのですがphpの知識が乏しい為、出来ずに終わっていました。 後学の為にもarrayの勉強もしたかったのですが。 <?php if (exist_plugin_convert('pcomment')) echo do_plugin_convert('pcomment', ',10,below,reply'); ?> 上記の方法で問題なく実装できたので、今回はこれで質問を終わりたいと思います。 早い回答大変ありがとうございました。-- [[yan]] &new{2016-10-07 (金) 02:53:57}; //#comment
テキスト整形のルールを表示する