117 $rowCol =
'ilModeratorPosting';
119 $rowCol =
'ilModeratorPosting';
130 $tpl->
setVariable(
'TXT_CENSORSHIP_ADVICE', $this->
lng->txt(
'post_censored_comment_by_moderator'));
131 $rowCol =
'tblrowmarked';
136 $tpl->
setVariable(
'POST_NOT_ACTIVATED_YET', $this->
lng->txt(
'frm_post_not_activated_yet'));
146 if ($authorinfo->hasSuffix()) {
147 if (!$authorinfo->isDeleted()) {
148 $tpl->
setVariable(
'USR_NAME', $authorinfo->getAlias());
150 $tpl->
setVariable(
'AUTHOR', $authorinfo->getSuffix());
152 if ($authorinfo->getAuthorName(
true) && !$this->objProperties->isAnonymized()) {
153 $tpl->
setVariable(
'USR_NAME', $authorinfo->getAuthorName(
true));
155 $tpl->
setVariable(
'AUTHOR', $authorinfo->getAuthorShortName());
158 if (self::MODE_EXPORT_CLIENT === $mode) {
159 if ($authorinfo->getAuthor()->getPref(
'public_profile') !==
'n') {
160 $tpl->
setVariable(
'TXT_REGISTERED', $this->
lng->txt(
'registered_since'));
163 $this->frm->convertDate($authorinfo->getAuthor()->getCreateDate())
168 if ($this->is_moderator) {
171 $num_posts = $this->frm->countActiveUserArticles($post->
getDisplayUserId());
173 $tpl->
setVariable(
'TXT_NUM_POSTS', $this->
lng->txt(
'forums_posts'));
178 $tpl->
setVariable(
'USR_IMAGE', $authorinfo->getProfilePicture());
183 if ($authorinfo->getAuthor()->getGender() ===
'f') {
185 } elseif ($authorinfo->getAuthor()->getGender() ===
'm') {
195 $spanClass =
'moderator_small';
209 $this->
lng->txt(
'edited_on') .
': ' . $this->frm->convertDate($post->
getChangeDate()) .
' - ' . strtolower($this->
lng->txt(
'by'))
211 $tpl->
setVariable(
'UPDATE_AUTHOR', $authorinfo->getLinkedAuthorShortName());
212 if ($authorinfo->getAuthorName(
true) && !$this->objProperties->isAnonymized()) {
213 $tpl->
setVariable(
'UPDATE_USR_NAME', $authorinfo->getAuthorName(
true));
224 $spanClass =
'moderator';
233 if ($spanClass !==
'') {
static _replaceMediaObjectImageSrc(string $a_text, int $a_direction=0, string $nic='')
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
static switchColor(int $a_num, string $a_css1, string $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
setMessage(string $a_message)
isOwner(int $a_user_id=0)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static getInstance(int $a_obj_id=0)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setChangeDate(?string $a_changedate)
static _isModerator(int $a_ref_id, int $a_usr_id)