mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
회원 가입할경우 해당 사이트의 가입환영 메세지 알림을 추가
This commit is contained in:
parent
f737e726aa
commit
41c1c18002
3 changed files with 55 additions and 18 deletions
|
|
@ -305,7 +305,7 @@ class ncenterliteModel extends ncenterlite
|
|||
public function getNotificationText($notification)
|
||||
{
|
||||
global $lang;
|
||||
|
||||
|
||||
// Get the type of notification.
|
||||
switch ($notification->type)
|
||||
{
|
||||
|
|
@ -313,30 +313,35 @@ class ncenterliteModel extends ncenterlite
|
|||
case 'D':
|
||||
$type = $lang->ncenterlite_document;
|
||||
break;
|
||||
|
||||
|
||||
// Comment.
|
||||
case 'C':
|
||||
$type = $lang->ncenterlite_comment;
|
||||
break;
|
||||
|
||||
|
||||
// Message.
|
||||
case 'E':
|
||||
$type = $lang->ncenterlite_type_message;
|
||||
break;
|
||||
|
||||
|
||||
// Test.
|
||||
case 'T':
|
||||
$type = $lang->ncenterlite_type_test;
|
||||
break;
|
||||
|
||||
|
||||
// Custom string.
|
||||
case 'X':
|
||||
return $notification->target_body;
|
||||
|
||||
|
||||
// Insert member
|
||||
case 'I':
|
||||
$type = $lang->cmd_signup;
|
||||
break;
|
||||
|
||||
// Custom language.
|
||||
case 'Y':
|
||||
return $lang->{$notification->target_body};
|
||||
|
||||
|
||||
// Custom language with string interpolation.
|
||||
case 'Z':
|
||||
return vsprintf($lang->{$notification->target_body}, array(
|
||||
|
|
@ -354,7 +359,7 @@ class ncenterliteModel extends ncenterlite
|
|||
default:
|
||||
return $this->getNotifyTypeString($notification->notify_type, unserialize($notification->target_body)) ?: $lang->ncenterlite;
|
||||
}
|
||||
|
||||
|
||||
// Get the notification text.
|
||||
switch ($notification->target_type)
|
||||
{
|
||||
|
|
@ -362,32 +367,32 @@ class ncenterliteModel extends ncenterlite
|
|||
case 'C':
|
||||
$str = sprintf($lang->ncenterlite_commented, $notification->target_nick_name, $type, $notification->target_summary);
|
||||
break;
|
||||
|
||||
|
||||
// Comment on a board.
|
||||
case 'A':
|
||||
$str = sprintf($lang->ncenterlite_commented_board, $notification->target_nick_name, $notification->target_browser, $notification->target_summary);
|
||||
break;
|
||||
|
||||
|
||||
// Mentioned.
|
||||
case 'M':
|
||||
$str = sprintf($lang->ncenterlite_mentioned, $notification->target_nick_name, $notification->target_browser, $notification->target_summary, $type);
|
||||
break;
|
||||
|
||||
|
||||
// Message arrived.
|
||||
case 'E':
|
||||
$str = sprintf($lang->ncenterlite_message_mention, $notification->target_nick_name, $notification->target_summary);
|
||||
break;
|
||||
|
||||
|
||||
// Test notification.
|
||||
case 'T':
|
||||
$str = sprintf($lang->ncenterlite_test_noti, $notification->target_nick_name);
|
||||
break;
|
||||
|
||||
|
||||
// New document on a board.
|
||||
case 'P':
|
||||
$str = sprintf($lang->ncenterlite_board, $notification->target_nick_name, $notification->target_browser, $notification->target_summary);
|
||||
break;
|
||||
|
||||
|
||||
// New document.
|
||||
case 'S':
|
||||
if($notification->target_browser)
|
||||
|
|
@ -399,22 +404,26 @@ class ncenterliteModel extends ncenterlite
|
|||
$str = sprintf($lang->ncenterlite_article, $notification->target_nick_name, $notification->target_summary);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
// Voted.
|
||||
case 'V':
|
||||
$str = sprintf($lang->ncenterlite_vote, $notification->target_nick_name, $notification->target_summary, $type);
|
||||
break;
|
||||
|
||||
|
||||
// Admin notification.
|
||||
case 'B':
|
||||
$str = sprintf($lang->ncenterlite_admin_content_message, $notification->target_nick_name, $notification->target_browser, $notification->target_summary);
|
||||
break;
|
||||
|
||||
|
||||
case 'I':
|
||||
$str = sprintf($lang->ncenterlite_insert_member_message, $notification->target_nick_name);
|
||||
break;
|
||||
|
||||
// Other.
|
||||
default:
|
||||
$str = $lang->ncenterlite;
|
||||
}
|
||||
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue