diff -urN p2ex-050610-0100.orig/p2/conf/conf_user_ex.php p2ex-050610-0100.P008_handle/p2/conf/conf_user_ex.php
--- p2ex-050610-0100.orig/p2/conf/conf_user_ex.php 2005-06-10 01:00:11.000000000 +0900
+++ p2ex-050610-0100.P008_handle/p2/conf/conf_user_ex.php 2005-06-10 11:55:43.000000000 +0900
@@ -252,6 +252,27 @@
// }}}
/* ---------------------------------------------------------------------- */
+// {{{ handle
+
+/**
+ * コテハン/トリップ記入支援
+ *
+ * 名前欄に記入できる定型文を追加できる。
+ */
+
+// 支援機能を有効にする(off:0, on:1)
+$_exconf['handle']['*'] = 0; // (0)
+
+//コテハン&トリップのリスト設定(必要に応じて追加、変更、削除して下さい)
+// 書式:$_exconf['handle']['リストに表示する名前'] = "定型文";
+// HTMLの特殊文字を実体参照で記述しなくてもよい。(出力時に自動で変換)
+$_exconf['handle']['名無しさんですよ'] = "名無しさんですよ#abcdefg";
+$_exconf['handle']['非通知さんですよ'] = "非通知さんですよ#hijklmn";
+$_exconf['handle']['ぬるぽさんですよ'] = "ぬるぽさんですよ#opqrstu";
+$_exconf['handle']['デフォルト名無し'] = ""; // 板標準(名前欄を空欄にする)
+
+// }}}
+/* ---------------------------------------------------------------------- */
// {{{ editor
/**
diff -urN p2ex-050610-0100.orig/p2/js/post_form.js p2ex-050610-0100.P008_handle/p2/js/post_form.js
--- p2ex-050610-0100.orig/p2/js/post_form.js 2005-06-10 01:00:11.000000000 +0900
+++ p2ex-050610-0100.P008_handle/p2/js/post_form.js 2005-06-10 11:55:43.000000000 +0900
@@ -1,6 +1,13 @@
/* vim: set fileencoding=cp932 autoindent noexpandtab ts=4 sw=4 sts=0: */
/* mi: charset=Shift_JIS */
+function inputHandle(obj) {
+ handle=document.getElementById('FROM');
+ handle.value=obj.options[obj.selectedIndex].value;
+ //これあるとdpreviewの邪魔 obj.options[0].selected=true;
+ handle.focus();
+}
+
function setFocus(ID) {
document.getElementById(ID).focus();
}
diff -urN p2ex-050610-0100.orig/p2/lib/expack/handle.inc.php p2ex-050610-0100.P008_handle/p2/lib/expack/handle.inc.php
--- p2ex-050610-0100.orig/p2/lib/expack/handle.inc.php 1970-01-01 09:00:00.000000000 +0900
+++ p2ex-050610-0100.P008_handle/p2/lib/expack/handle.inc.php 2005-06-10 11:55:43.000000000 +0900
@@ -0,0 +1,21 @@
+
+ \n
+EOSS;
+foreach (array_map('htmlspecialchars', $_exconf['handle']) as $handle_key => $handle_value) {
+ if($handle_key != "*"){
+ $htm['handle_ht'] .=<<{$handle_key}\n
+EOO;
+ }
+}
+$htm['handle_ht'] .=<<
+
\n
+EOSE;
+
+?>
diff -urN p2ex-050610-0100.orig/p2/lib/post_form.inc.php p2ex-050610-0100.P008_handle/p2/lib/post_form.inc.php
--- p2ex-050610-0100.orig/p2/lib/post_form.inc.php 2005-06-10 01:00:11.000000000 +0900
+++ p2ex-050610-0100.P008_handle/p2/lib/post_form.inc.php 2005-06-10 11:55:43.000000000 +0900
@@ -5,12 +5,18 @@
* p2 書き込みフォーム
*/
+// handle記入支援
+if ($_exconf['handle']['*']) {
+ @include(P2EX_LIBRARY_DIR . '/handle.inc.php');
+}
+
// 文字コード判定用文字列を先頭に仕込むことでmb_convert_variables()の自動判定を助ける
$htm['post_form'] = <<
+ {$htm['handle_ht']}
{$htm['subject']}
{$htm['maru_post']} 名前:
E-mail :