mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
유저알림 설정에 스크랩 추천 대댓글 알림도 설정옵션 추가
This commit is contained in:
parent
4aec371983
commit
72526438c8
7 changed files with 86 additions and 6 deletions
|
|
@ -29,13 +29,17 @@ $lang->ncenterlite_notify_settings = '알림 설정';
|
|||
$lang->ncenterlite_userconfig_title = '%s님의 알림센터 설정';
|
||||
$lang->ncenterlite_userconfig_about = '알림센터의 개인의 설정을 저장하도록 합니다.';
|
||||
$lang->ncenterlite_comment_noti = '댓글 알림';
|
||||
$lang->ncenterlite_comment_noti_about = '내 게시물의 혹은 내 댓글에 댓글이 달릴경우 알림을 받습니다.';
|
||||
$lang->ncenterlite_comment_noti_about = '내 게시물에 댓글이 달릴경우 알림을 받습니다.';
|
||||
$lang->ncenterlite_mention_noti = '멘션 알림';
|
||||
$lang->ncenterlite_mention_noti_about = '누군가 글, 혹은 댓글을 통해서 나를 멘션 했을 경우 알려줍니다. (멘션 방법 @닉네임 )';
|
||||
$lang->ncenterlite_message_noti = '쪽지 알림';
|
||||
$lang->ncenterlite_message_noti_about = '누군가에게 받은 쪽지를 알림을 받습니다.';
|
||||
$lang->ncenterlite_comment_comment_noti = '대댓글 알림';
|
||||
$lang->ncenterlite_comment_comment_noti_about = '내 댓글에 댓글이 달릴경우 알림을 받습니다.';
|
||||
$lang->ncenterlite_vote_noti = '추천 알림';
|
||||
$lang->ncenterlite_vote_noti_about = '내 게시글, 혹은 댓글이 추천을 받았을 때 알림을 받습니다.';
|
||||
$lang->ncenterlite_scrap_noti = '스크랩 알림';
|
||||
$lang->ncenterlite_scrap_noti_about = '누군가 내 게시글을 스크랩 했을 경우 알려줍니다.';
|
||||
$lang->ncenterlite_activate = '사용';
|
||||
$lang->ncenterlite_inactivate = '사용 안함';
|
||||
$lang->ncenterlite_userconfig_about_warning = '주의! 당신은 관리자 권한으로 다른 사용자의 설정창에 접속하였습니다.';
|
||||
|
|
|
|||
|
|
@ -110,6 +110,21 @@ class ncenterlite extends ModuleObject
|
|||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'comment_comment_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'vote_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set', 'scrap_notify'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// PK duplicate
|
||||
if($oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
|
||||
{
|
||||
|
|
@ -218,6 +233,20 @@ class ncenterlite extends ModuleObject
|
|||
$oDB->dropIndex('ncenterlite_notify', 'idx_notify');
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','comment_comment_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'comment_comment_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','vote_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'vote_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists('ncenterlite_user_set','scrap_notify'))
|
||||
{
|
||||
$oDB->addColumn('ncenterlite_user_set', 'scrap_notify', 'char', 1, null, true);
|
||||
}
|
||||
|
||||
$config = getModel('ncenterlite')->getConfig();
|
||||
if(!$config)
|
||||
|
|
|
|||
|
|
@ -31,8 +31,11 @@ class ncenterliteController extends ncenterlite
|
|||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->comment_notify = $obj->comment_notify;
|
||||
$args->comment_comment_notify = $obj->comment_comment_notify;
|
||||
$args->mention_notify = $obj->mention_notify;
|
||||
$args->message_notify = $obj->message_notify;
|
||||
$args->vote_notify = $obj->vote_notify;
|
||||
$args->scrap_notify = $obj->scrap_notify;
|
||||
|
||||
if(!$user_config->data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
<columns>
|
||||
<column name="member_srl" var="member_srl" notnull="notnull" />
|
||||
<column name="comment_notify" var="comment_notify" notnull="notnull" />
|
||||
<column name="comment_comment_notify" var="comment_comment_notify" notnull="notnull" />
|
||||
<column name="mention_notify" var="mention_notify" notnull="notnull" />
|
||||
<column name="vote_notify" var="vote_notify" notnull="notnull" />
|
||||
<column name="scrap_notify" var="scrap_notify" notnull="notnull" />
|
||||
<column name="message_notify" var="message_notify" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@
|
|||
</tables>
|
||||
<columns>
|
||||
<column name="comment_notify" var="comment_notify" notnull="notnull" />
|
||||
<column name="comment_comment_notify" var="comment_comment_notify" notnull="notnull" />
|
||||
<column name="mention_notify" var="mention_notify" notnull="notnull" />
|
||||
<column name="vote_notify" var="vote_notify" notnull="notnull" />
|
||||
<column name="scrap_notify" var="scrap_notify" notnull="notnull" />
|
||||
<column name="message_notify" var="message_notify" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<table name="ncenterlite_user_set">
|
||||
<column name="member_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" brief="member_srl 고유맴버 번호" />
|
||||
<column name="comment_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="comment_comment_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="mention_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="vote_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="scrap_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="message_notify" type="char" size="1" notnull="notnull" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<label class="control-label">{$lang->ncenterlite_comment_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> {$lang->ncenterlite_activate}
|
||||
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
<label class="control-label">{$lang->ncenterlite_mention_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> {$lang->ncenterlite_activate}
|
||||
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<label class="control-label">{$lang->ncenterlite_message_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> {$lang->ncenterlite_activate}
|
||||
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
|
|
@ -56,7 +56,42 @@
|
|||
<p class="help-block">{$lang->ncenterlite_message_noti_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">{$lang->ncenterlite_vote_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="vote_notify" value="Y" checked="checked"|cond="$user_config->vote_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="vote_notify" value="N" checked="checked"|cond="$user_config->vote_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
</label>
|
||||
<p class="help-block">{$lang->ncenterlite_vote_noti_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{$lang->ncenterlite_scrap_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="scrap_notify" value="Y" checked="checked"|cond="$user_config->scrap_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="scrap_notify" value="N" checked="checked"|cond="$user_config->scrap_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
</label>
|
||||
<p class="help-block">{$lang->ncenterlite_scrap_noti_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{$lang->ncenterlite_comment_comment_noti}</label>
|
||||
<div class="controls">
|
||||
<label class="inline">
|
||||
<input type="radio" name="comment_comment_notify" value="Y" checked="checked"|cond="$user_config->comment_comment_notify != 'N'" /> {$lang->ncenterlite_activate}
|
||||
</label>
|
||||
<label class="inline">
|
||||
<input type="radio" name="comment_comment_notify" value="N" checked="checked"|cond="$user_config->comment_comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
|
||||
</label>
|
||||
<p class="help-block">{$lang->ncenterlite_comment_comment_noti_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="clearfix btnArea">
|
||||
<div class="pull-right">
|
||||
|
|
@ -65,4 +100,4 @@
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<include target="../../../member/skins/default/common_footer.html" />
|
||||
<include target="../../../member/skins/default/common_footer.html" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue