1. 로그인 접속자 위젯의 이름 클릭시 # 속성으로 스크롤업되는 문제 수정

2. 문서 모듈 설정의 휴지통 TAB 잘못된 태그 수정
3. 익명 게시판 기능 추가


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5921 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-20 08:54:54 +00:00
parent d807512aca
commit 46bb24295c
18 changed files with 71 additions and 8 deletions

View file

@ -30,6 +30,7 @@
// 기본 값외의 것들을 정리
if($args->use_category!='Y') $args->use_category = 'N';
if($args->except_notice!='Y') $args->except_notice = 'N';
if($args->use_anonymous!='Y') $args->use_anonymous= 'N';
if($args->consultation!='Y') $args->consultation = 'N';
if(!in_array($args->order_target,$this->order_target)) $args->order_target = 'list_order';
if(!in_array($args->order_type,array('asc','desc'))) $args->order_type = 'asc';

View file

@ -45,6 +45,12 @@
// 이미 존재하는 글인지 체크
$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
// 익명 설정일 경우 여러가지 요소를 미리 제거 (알림용 정보들 제거)
if($this->module_info->use_anonymous == 'Y') {
$obj->notify_message = 'N';
$this->module_info->admin_mail = '';
}
// 이미 존재하는 경우 수정
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl) {
$output = $oDocumentController->updateDocument($oDocument, $obj);
@ -76,6 +82,18 @@
// 오류 발생시 멈춤
if(!$output->toBool()) return $output;
// 익명 사용시 글의 글쓴이 정보를 모두 제거
if($this->module_info->use_anonymous == 'Y' && Context::get('is_logged')) {
$logged_info = Context::get('logged_info');
$oDocument = $oDocumentModel->getDocument($output->get('document_srl'));
$obj = $oDocument->getObjectVars();
$obj->member_srl = -1*$logged_info->member_srl;
$obj->email_address = $obj->homepage = $obj->user_id = '';
$obj->user_name = $obj->nick_name = 'anonymous';
$output = executeQuery('document.updateDocument', $obj);
if(!$output->toBool()) return $output;
}
// 결과를 리턴
$this->add('mid', Context::get('mid'));
$this->add('document_srl', $output->get('document_srl'));
@ -134,6 +152,12 @@
$oDocument = $oDocumentModel->getDocument($obj->document_srl);
if(!$oDocument->isExists()) return new Object(-1,'msg_not_permitted');
// 익명 설정일 경우 여러가지 요소를 미리 제거 (알림용 정보들 제거)
if($this->module_info->use_anonymous == 'Y') {
$obj->notify_message = 'N';
$this->module_info->admin_mail = '';
}
// comment 모듈의 model 객체 생성
$oCommentModel = &getModel('comment');
@ -141,8 +165,8 @@
$oCommentController = &getController('comment');
// comment_srl이 존재하는지 체크
// 만일 comment_srl이 n/a라면 getNextSequence()로 값을 얻어온다.
if(!$obj->comment_srl) {
// 만일 comment_srl이 n/a라면 getNextSequence()로 값을 얻어온다.
if(!$obj->comment_srl) {
$obj->comment_srl = getNextSequence();
} else {
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
@ -185,9 +209,20 @@
$output = $oCommentController->updateComment($obj, $this->grant->manager);
$comment_srl = $obj->comment_srl;
}
if(!$output->toBool()) return $output;
// 익명 사용시 글의 글쓴이 정보를 모두 제거
if($this->module_info->use_anonymous == 'Y' && Context::get('is_logged')) {
$logged_info = Context::get('logged_info');
$comment = $oCommentModel->getComment($output->get('comment_srl'), $this->grant->manager);
$obj = $comment->getObjectVars();
$obj->member_srl = -1*$logged_info->member_srl;
$obj->email_address = $obj->homepage = $obj->user_id = '';
$obj->user_name = $obj->nick_name = 'anonymous';
$output = executeQuery('comment.updateComment', $obj);
if(!$output->toBool()) return $output;
}
$this->setMessage('success_registed');
$this->add('mid', Context::get('mid'));
$this->add('document_srl', $obj->document_srl);

View file

@ -8,6 +8,7 @@
$lang->board = 'Board';
$lang->except_notice = 'Exclude Notices';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = 'Manage Menus';
$lang->list_target_item = 'Target Item';
@ -30,6 +31,7 @@
$lang->about_layout_setup = 'You can manually modify board layout code. Insert or manage the widget code anywhere you want';
$lang->about_board_category = 'You can make board categories.<br />When board category is broken, try rebuilding the cache file manually.';
$lang->about_except_notice = 'Notice articles will not be displayed on normal list.';
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = 'This module is for creating and managing boards.';
$lang->about_consultation = "Non-administrator members would see their own articles.\nNon-members would not be able to write articles when using consultation.";
$lang->about_secret = 'Users will be able to write secret articles or comments.';

View file

@ -8,6 +8,7 @@
$lang->board = 'Tablero';
$lang->except_notice = 'Excluir Avisos';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = 'Manejo del menú';
$lang->list_target_item = 'Target Item';
$lang->list_display_item = 'Display Item';
@ -32,6 +33,7 @@
$lang->about_layout_setup = 'Puede modificar manualmente el código del diseño de tableros. Insertar o modificar el código de widget.';
$lang->about_board_category = 'Puede crear las categorias de tableros.<br />Cuando no funciona la categoría de tableros, rehacer el archivo caché manualmente para solucionar.';
$lang->about_except_notice = 'Aviso de los artículos no se mostrará en la lista normal.';
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = 'Este módulo es para crear y manejar los tableros.';
$lang->about_consultation = "No administrador de los miembros que consideran que su propia artocles. \ NNon miembros no serían capaces de escribir artículos al utilizar la consulta.";
$lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.';

View file

@ -8,6 +8,7 @@
$lang->board = 'Panneau';
$lang->except_notice = 'Exclure des Notices';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = 'Administration de Menu';
$lang->list_target_item = 'Target Item';
@ -29,6 +30,7 @@
$lang->about_layout_setup = 'Vous pouvez manuellement modifier le code de Mise en Page du blogue. Insérez ou administrez le code de Gadget n\'importe où vous voulez.';
$lang->about_board_category = 'Vous pouvez créer des catégories de Panneau d\'Affichage. Quand la catégorie d\'affichage est cassé, essayez manuellement rétablir l\'antémémoire du fichier.';
$lang->about_except_notice = "Le titre de Notice dont l'article se représentera toujours en tête de la liste ne sera exposé sur la liste générale.";
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = 'Ce module se sert à créer et à administrer des Panneaux d\'Affichage.';
$lang->about_consultation = "Les membres non-administratifs verront seulement les ariticles d\'eux-même.\nNon-membres ne pourraient pas écrire des articles quand la Consultation est appliqué.";
$lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.';

View file

@ -8,6 +8,7 @@
$lang->board = '掲示板';
$lang->except_notice = 'お知らせの非表示機能';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = 'メニュー管理';
$lang->list_target_item = 'Target Item';
@ -32,6 +33,7 @@
$lang->about_layout_setup = 'ブログのレイアウトのコードを直接修正します。ウィジェットコードを好きなところに入力、又は管理して下さい。';
$lang->about_board_category = 'ブログのカテゴリを作成します。<br />ブログのカテゴリが誤作動する場合、「キャッシュファイルの再生性」を手動で行うことで解決できます。';
$lang->about_except_notice = "リストの上段に常に表示されるお知らせの書き込みを一般リストからお知らせの書き込みが表示されないようにします。";
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = '掲示板の生成、および管理する掲示板モジュールです。';
$lang->about_consultation = "相談機能とは、管理権限のない会員に本人の書き込みだけを表示する機能です。\n但し、相談機能を使用する際は、非会員の書き込みは自動的に禁止されます。";
$lang->about_secret = '掲示板およびコメントの秘密文を登録できるようにします。';

View file

@ -7,6 +7,7 @@
$lang->board = '게시판';
$lang->except_notice = '공지사항 제외';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = '메뉴관리';
$lang->list_target_item = '대상 항목';
$lang->list_display_item = '표시 항목';
@ -29,6 +30,7 @@
$lang->about_layout_setup = '블로그의 레이아웃 코드를 직접 수정할 수 있습니다. 위젯 코드를 원하는 곳에 삽입하시거나 관리하세요';
$lang->about_board_category = '분류를 만드실 수 있습니다.<br />분류가 오동작을 할 경우 캐시파일 재생성을 수동으로 해주시면 해결이 될 수 있습니다.';
$lang->about_except_notice = '목록 상단에 늘 나타나는 공지사항을 일반 목록에서 공지사항을 출력하지 않도록 합니다.';
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = '게시판을 생성하고 관리할 수 있는 게시판 모듈입니다.';
$lang->about_consultation = "상담 기능은 관리권한이 없는 회원은 자신이 쓴 글만 보이도록 하는 기능입니다\n단 상담기능 사용시 비회원 글쓰기는 자동으로 금지됩니다.";
$lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.';

View file

@ -8,6 +8,7 @@
$lang->board = 'Форум';
$lang->except_notice = '공지사항 제외';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = 'Управление меню';
$lang->list_target_item = 'Target Item';
@ -35,6 +36,7 @@
$lang->about_layout_setup = 'Вы можете вручную изменять лейаут код блога. Вставляйте или управляйте кодом виджетов везде, где хотите';
$lang->about_board_category = 'Вы можете сделать категории блога.<br />Когда категория блога испорчена, попробуйте перепостроить файл кеша вручную.';
$lang->about_except_notice = "목록 상단에 늘 나타나는 공지사항을 일반 목록에서 공지사항을 출력하지 않도록 합니다.";
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = 'Этот модуль служит для создания и управления форумами.';
$lang->about_consultation = "상담 기능은 관리권한이 없는 회원은 자신이 쓴 글만 보이도록 하는 기능입니다\n단 상담기능 사용시 비회원 글쓰기는 자동으로 금지됩니다.";
$lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.';

View file

@ -7,6 +7,7 @@
$lang->board = "版面";
$lang->except_notice = "公告选项";
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = '菜单管理';
$lang->list_target_item = '备选项';
$lang->list_display_item = '显示项';
@ -29,6 +30,7 @@
$lang->about_layout_setup = '可直接编辑博客布局代码。可以把控件代码插入到您喜欢的位置。';
$lang->about_board_category = '可以添加/删除分类项<br />分类有异常情况时,可以尝试重新生成缓冲文件。';
$lang->about_except_notice = "设置公告目录项不再重复显示到普通目录当中。";
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = "可生成及管理版面的模块。";
$lang->about_consultation = "咨询功能是指除有管理权限的会员以外,其他会员只能浏览自己发表的主题。\n使用咨询功能时系统将自动禁止非会员的发表主题权限。";
$lang->about_secret = '设置主题及评论当中使用密帖与否。';

View file

@ -7,6 +7,7 @@
$lang->board = '討論板';
$lang->except_notice = '公告選項';
$lang->use_anonymous = '익명 사용';
$lang->cmd_manage_menu = '選單管理';
$lang->list_target_item = '目標項目';
$lang->list_display_item = '顯示項目';
@ -29,6 +30,7 @@
$lang->about_layout_setup = '可直接編輯部落格版面設計原始碼。可把控件原始碼插入到您喜歡的位置。';
$lang->about_board_category = '可以新增/刪除分類項目<br />分類有異常情況時,可以嘗試重新建立暫存檔。';
$lang->about_except_notice = '設置公告列表項目,不再重複顯示到普通列表當中。';
$lang->about_use_anonymous = '글쓴이의 정보를 없애고 익명으로 게시판 사용을 할 수 있게 합니다. 스킨설정에서 글쓰인 정보등을 보이지 않도록 하시면 더욱 유용합니다';
$lang->about_board = '可建立及管理討論板的模組。';
$lang->about_consultation = "咨詢功能是指除有管理權限的會員以外,其他會員只能瀏覽自己發表的主題。\n使用咨詢功能時系統將自動禁止非會員的發表主題權限。";
$lang->about_secret = '可用於討論板或回覆時選擇是否使用。';

View file

@ -127,6 +127,13 @@
<p>{$lang->about_except_notice}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->use_anonymous}</div></th>
<td>
<input type="checkbox" name="use_anonymous" value="Y" <!--@if($module_info->use_anonymous=='Y')-->checked="checked"<!--@end--> />
<p>{$lang->about_use_anonymous}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->consultation}</div></th>
<td>

View file

@ -19,6 +19,7 @@
<param name="list_count" target="list_count" />
<param name="search_list_count" target="search_list_count" />
<param name="except_notice" target="except_notice" />
<param name="use_anonymous" target="use_anonymous" />
<param name="consultation" target="consultation" />
<param name="secret" target="secret" />
<param name="admin_mail" target="admin_mail" />