Q&A

1)

http://apmup.com/xe/362

 

위의 링크의 게시글을 참고하여서

게시판(스케치북, Flat Board)에 익명 작성을 선택할 수 있는 기능을 추가하였습니다.
(게시글, 댓글, 대댓글)

 

해당 기능은 올바르게 작동하나,(익명으로 글쓴 사람은 익명이라고 출력)

제가 기존에 사용하고 있던

https://xe1.xpressengine.com/index.php?mid=forum&document_srl=21750023&cpage=2#comment
(아래쪽 부근에 있는 댓글에 파일 있음)
https://xetown.com/rxe_file/3871

 

Misol 님의 익명 애드온과 충돌이 나는 것 같습니다.

 

치환을 돌리는 조건 문인
if($called_position == 'after_module_proc' && $this->act == "procBoardInsertDocument") {
 $module = Context::get('module');
 if(!$module) $module = $this->module;
 if($module != 'board') return;
 if(!$addon_info->ad_codes && !$addon_info->biology_code) return;
 if($this->module_info->use_anonymous == 'Y' && $logged_info->is_admin != 'Y' || $obj->use_anonymous = 'Y' ) {

  

...

 

if($called_position == 'after_module_proc' && $this->act == "procBoardInsertComment") {
 if($this->module_info->use_anonymous == 'Y' && $logged_info->is_admin != 'Y' || $obj->use_anonymous = 'Y' ) {

  

...

 

두 부분을

if($called_position == 'after_module_proc' && $this->act == "procBoardInsertDocument") {
 $module = Context::get('module');
 if(!$module) $module = $this->module;
 if($module != 'board') return;
 if(!$addon_info->ad_codes && !$addon_info->biology_code) return;
 if($this->module_info->use_anonymous == 'Y' && $logged_info->is_admin != 'Y'  || $obj->use_anonymous == 'Y') {

 

if($called_position == 'after_module_proc' && $this->act == "procBoardInsertComment") {
 if($this->module_info->use_anonymous == 'Y' && $logged_info->is_admin != 'Y' || $obj->use_anonymous = 'Y') {

 

이렇게 바꾸니

새로 쓰는 선택 익명 글들에 식별자가 적용이되어서 각각 다른 익명닉네임들로 글이 써지지만,


사이트내의 모든 게시판에서 일반글을 쓸 때 [아이콘]익명적용된식별자 - 클릭 시 메뉴 기능 살아있음의

 

형태로 게시글들이 출력됩니다.

 

아무래도 익명처리 하는 부분이 서로 꼬여서 그런거 같은데,

제 능력으로는 이것저것 시도를 해보아도 해결 방법을 찾지 못했습니다. ㅠㅠ

 

도움을 좀 부탁드립니다. ㅠㅠ


2)
익명의 식별자와 관련된 질문입니다.

익명게시판에서 하나의 게시판에 대해 하루 동안은 한사람이 계속 같은 익명(ex 키큰_호랑이)을 가지고 글이나 댓글을 쓸 수 있고,

특정 시간(ex 자정)을 기점으로 새로운 익명이 되어(혹은 아이피가 바뀌면?) 새로 글을 쓸 때 바뀐 익명(멋진_사자)으로

글이나 댓글을 쓸 수 있는 그런 방식으로 구현할 수는 없을까요?


염치없지만 도움 부탁드립니다.

감사합니다.

댓글 0