Go to the documentation of this file.
17 parent::__construct($oConfig,
$oDb);
81 $aLanguageKeys = array(
82 'by' =>
_t(
'_ch_shoutbox_by'),
83 'visitor' =>
_t(
'_Visitor'),
84 'delete' =>
_t(
'_ch_shoutbox_delete_message'),
85 'sure' =>
_t(
'_Are_you_sure'),
86 'block' =>
_t(
'_ch_shoutbox_block_ip'),
89 foreach($aMessages
as $iKey => $aItems) {
99 $sMemberIcon =
$oFunctions -> getMemberIcon($aItems[
'OwnerID']);
101 $sLink =
'javascript:void(0)';
102 $sNickName = $aLanguageKeys[
'visitor'];
107 'owner_icon' => $sMemberIcon,
108 'message' => htmlentities(
WordWrapStr(html_entity_decode($aItems[
'Message'], ENT_COMPAT,
'UTF-8')), ENT_COMPAT,
'UTF-8',
false),
109 'by' => $aLanguageKeys[
'by'],
110 'owner_nick' => $sNickName,
112 'owner_link' => $sLink,
114 'ch_if:delete_allowed' => array (
115 'condition' => $bDeleteAllowed,
119 'message_id' => $aItems[
'ID'],
122 'ch_if:block_allowed' => array (
123 'condition' => $bBlockAllowed,
127 'message_id' => $aItems[
'ID'],
134 :
'visitor_message.html';
152 $this -> addJS(array(
153 'emoji-picker/js/jquery.emojipicker.js',
154 'emoji-picker/js/jquery.emojipicker.tw.js',
158 'plugins/emoji-picker/css/|jquery.emojipicker.css',
162 $this ->
addCssAsync(
'plugins/emoji-picker/css|jquery.emojipicker.tw.css');
164 $sShoutboxWrapperClass =
"ch_shoutbox_{$sObject}_{$iHandler}";
166 'params'=> array(
'remove_form' =>
true),
171 'content' =>
'<div class="shoutbox_wrapper ' . $sShoutboxWrapperClass .
'">' .
$sMessagesList .
'</div>',
180 'onkeypress' =>
"if(typeof oShoutBox != 'undefined') return oShoutBox.sendMessage(event, this);",
181 'id' =>
'shoutbox_msg_field',
187 $aKeys = array(
'options' => json_encode(array(
188 'object' => $sObject,
189 'handler' => (
int)$iHandler,
190 'message_empty_message' =>
_t(
'_ch_shoutbox_enter_message'),
192 'update_time' => $this -> _oConfig -> iUpdateTime,
193 'last_message_id' => $iLastMessageId,
194 'wait_cpt' =>
_t(
'_ch_shoutbox_wait'),
__construct(&$oConfig, &$oDb)
WordWrapStr($sString, $iWidth=25, $sWrapCharacter='­')
adminBlock($sContent, $sTitle, $aMenu=array())
ch_js_string($mixedInput, $iQuoteType=CH_ESCAPE_STR_AUTO)
defineTimeInterval($iTime, $bAutoDateConvert=true, $bShort=false)
getProcessedMessages($aMessages=array(), $bDeleteAllowed=false, $bBlockAllowed=false)
ch_import($sClassName, $aModule=array())
$_page_cont[$_ni]['page_main_code']
addCss($mixedFiles, $bDynamic=false)
ch_html_attribute($mixedInput)
getShoutboxWindow($sObject, $iHandler, $sModulePath, $iLastMessageId=0, $sMessagesList='')
DesignBoxAdmin($sTitle, $sContent, $mixedTopItems='', $sBottomItems='', $iIndex=1)
PageCodeAdmin($oTemplate=null)
_t($key, $arg0="", $arg1="", $arg2="")
getProfileLink( $iID, $sLinkAdd='')
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
parseHtmlByName($sName, $aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)