本文整理汇总了PHP中CKunenaLink::GetReportMessageLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetReportMessageLink方法的具体用法?PHP CKunenaLink::GetReportMessageLink怎么用?PHP CKunenaLink::GetReportMessageLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetReportMessageLink方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
echo JText::_('COM_KUNENA_EDITING_LASTEDIT') . ': ' . $dateshown . JText::_('COM_KUNENA_BY') . ' ' . ($this->config->username ? $this->escape($this->msg->modified_username) : $this->escape($this->msg->modified_name)) . '.';
?>
<?php
if ($this->msg->modified_reason) {
echo JText::_('COM_KUNENA_REASON') . ': ' . $this->escape($this->msg->modified_reason);
}
?>
</span>
<?php
}
?>
<?php
if ($this->config->reportmsg && $this->my->id) {
?>
<span class="kmessage-informmarkup"><?php
echo CKunenaLink::GetReportMessageLink(intval($this->catid), intval($this->id), JText::_('COM_KUNENA_REPORT'));
?>
</span>
<?php
}
?>
<?php
if (!empty($this->ipLink)) {
?>
<span class="kmessage-informmarkup"><?php
echo $this->ipLink;
?>
</span>
<?php
}
?>
示例2: date
<!-- -->
</tr>
<tr><td class = "fb-msgview-right-b" >
<div class="fb_message_editMarkUp_cover">
<?php
if ($fmessage->modified_by) {
echo '<span class="fb_message_editMarkUp">' . _KUNENA_EDITING_LASTEDIT . ': ' . date(_DATETIME, $fmessage->modified_time) . ' ' . _KUNENA_BY . ' ' . CKunenaTools::whoisID($fmessage->modified_by) . '.';
if ($fmessage->modified_reason) {
echo _KUNENA_REASON . ': ' . kunena_htmlspecialchars(stripslashes($fmessage->modified_reason));
}
echo '</span>';
}
if ($fbConfig->reportmsg && $kunena_my->id > 1) {
echo '<span class="fb_message_informMarkUp">' . CKunenaLink::GetReportMessageLink($catid, $msg_id, _KUNENA_REPORT) . '</span>';
}
if (isset($msg_ip)) {
echo '<span class="fb_message_informMarkUp">' . CKunenaLink::GetMessageIPLink($msg_ip) . '</span>';
}
?>
</div>
<div class="fb_message_buttons_cover">
<div class="fb_message_buttons_row">
<?php
//we should only show the Quick Reply section to registered users. otherwise we are missing too much information!!
/* onClick="expandcontent(this, 'sc<?php echo $msg_id;?>')" */
if ($kunena_my->id > 0 && !isset($msg_closed)) {
?>
<span id = "fb_qr_sc__<?php
echo $msg_id;
示例3: isset
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class = "fb-msgview-left-c">
</td>
<td class = "fb-msgview-right-c" >
<div class="fb_smalltext" >
<?php
if ($fbConfig->reportmsg && $kunena_my->id > 1) {
echo CKunenaLink::GetReportMessageLink($catid, $msg_id, _KUNENA_REPORT);
}
?>
<?php
echo isset($fbIcons['msgip']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msgip'] . '" border="0" alt="' . _KUNENA_REPORT_LOGGED . '" />' : ' <img src="' . KUNENA_URLEMOTIONSPATH . 'ip.gif" border="0" alt="' . _KUNENA_REPORT_LOGGED . '" />';
?>
<span class="fb_smalltext"> <?php
echo _KUNENA_REPORT_LOGGED;
?>
</span>
<?php
//Check that the user is an admin to display the ip in messages
$check = '0';
if ($fbConfig->hide_ip) {
if ($is_admin) {
示例4: if
<div>
<?php if ($this->signatureHtml) : ?>
<div class="kmsgsignature">
<?php echo $this->signatureHtml ?>
</div>
<?php endif ?>
</div>
<div class="kmessage-editmarkup-cover">
<?php if ($this->message->modified_by && $this->config->editmarkup) : ?>
<span class="kmessage-editmarkup" <?php echo $datehover ?>>
<?php echo JText::_('COM_KUNENA_EDITING_LASTEDIT') . ': ' . $dateshown . JText::_('COM_KUNENA_BY') . ' ' . $this->message->getModifier()->getLink() . '.'; ?>
<?php if ($this->message->modified_reason) echo JText::_('COM_KUNENA_REASON') . ': ' . $this->escape ( $this->message->modified_reason ); ?>
</span>
<?php endif ?>
<?php if ($this->config->reportmsg && KunenaUserHelper::getMyself()->exists()) :?>
<span class="kmessage-informmarkup"><?php echo CKunenaLink::GetReportMessageLink ( intval($this->category->id), intval($this->message->id), JText::_('COM_KUNENA_REPORT') ) ?></span>
<?php endif ?>
<?php if (!empty ( $this->ipLink )) : ?>
<span class="kmessage-informmarkup"><?php echo $this->ipLink ?></span>
<?php endif ?>
</div>
<div class="kmessage-buttons-cover">
<div class="kmessage-buttons-row">
<?php if (empty( $this->message_closed )) : ?>
<?php echo $this->message_quickreply; ?>
<?php echo $this->message_reply; ?>
<?php echo $this->message_quote; ?>
<?php echo $this->message_edit; ?>
<?php echo $this->message_moderate; ?>
<?php echo $this->message_delete; ?>
<?php echo $this->message_permdelete; ?>
示例5: getMessageActions
function getMessageActions() {
$me = KunenaUserHelper::getMyself();
$catid = $this->state->get('item.catid');
//Thankyou info and buttons
$this->message_thankyou = '';
$this->message_thankyou_delete = '';
if ($this->config->showthankyou && $this->profile->userid) {
$thankyou = $this->message->getThankyou();
$this->thankyou = array();
//TODO: for normal users, show only limited number of thankyou (config->thankyou_max)
foreach( $thankyou->getList() as $userid=>$time){
if ( $me->userid && $me->isModerator() ) {
$this->message_thankyou_delete = '<a title="'.JText::_('COM_KUNENA_BUTTON_THANKYOU_REMOVE_LONG').'" href="'.KunenaRoute::_("index.php?option=com_kunena&view=topic&catid={$this->topic->category_id}&mesid={$this->message->id}&task=unthankyou&userid={$userid}&".JUtility::getToken() .'=1').'"><img src="'.$this->template->getImagePath('icons/publish_x.png').'" title="" alt="" /></a>';
}
$this->thankyou[] = CKunenaLink::GetProfileLink($userid).' '.$this->message_thankyou_delete;
}
if($me->userid && !$thankyou->exists($me->userid) && $me->userid != $this->profile->userid) {
$this->message_thankyou = CKunenaLink::GetThankyouLink ( 'thankyou', $catid, $this->message->id, $this->profile->userid , $this->getButton ( 'thankyou', JText::_('COM_KUNENA_BUTTON_THANKYOU') ), JText::_('COM_KUNENA_BUTTON_THANKYOU_LONG'), 'kicon-button kbuttonuser btn-left');
}
}
if ($this->config->reportmsg && KunenaUserHelper::getMyself()->exists()) {
$this->message_report = CKunenaLink::GetReportMessageLink ( $catid, $this->message->id, $this->getButton ( 'report', JText::_('COM_KUNENA_BUTTON_REPORT') ), 'nofollow', 'kicon-button kbuttonuser btn-left', JText::_('COM_KUNENA_BUTTON_REPORT') );
}
$this->message_quickreply = $this->message_reply = $this->message_quote = '';
if ($this->topic->authorise('reply')) {
//user is allowed to reply/quote
if ($this->quickreply) {
$this->message_quickreply = CKunenaLink::GetTopicPostReplyLink ( 'reply', $catid, $this->message->id, $this->getButton ( 'reply', JText::_('COM_KUNENA_BUTTON_QUICKREPLY') ), 'nofollow', 'kicon-button kbuttoncomm btn-left kqreply', JText::_('COM_KUNENA_BUTTON_QUICKREPLY_LONG'), ' id="kreply'.$this->message->id.'"' );
}
$this->message_reply = CKunenaLink::GetTopicPostReplyLink ( 'reply', $catid, $this->message->id, $this->getButton ( 'reply', JText::_('COM_KUNENA_BUTTON_REPLY') ), 'nofollow', 'kicon-button kbuttoncomm btn-left', JText::_('COM_KUNENA_BUTTON_REPLY_LONG') );
$this->message_quote = CKunenaLink::GetTopicPostReplyLink ( 'quote', $catid, $this->message->id, $this->getButton ( 'quote', JText::_('COM_KUNENA_BUTTON_QUOTE') ), 'nofollow', 'kicon-button kbuttoncomm btn-left', JText::_('COM_KUNENA_BUTTON_QUOTE_LONG') );
} else {
//user is not allowed to write a post
if ($this->topic->locked) {
$this->message_closed = JText::_('COM_KUNENA_POST_LOCK_SET');
} else {
$this->message_closed = JText::_('COM_KUNENA_VIEW_DISABLED');
}
}
//Offer an moderator a few tools
$this->message_edit = $this->message_moderate = '';
$this->message_delete = $this->message_undelete = $this->message_permdelete = $this->message_publish = '';
if ($me->isModerator ( $this->topic->category_id )) {
unset($this->message_closed);
$this->message_edit = CKunenaLink::GetTopicPostReplyLink ( 'edit', $catid, $this->message->id, $this->getButton ( 'edit', JText::_('COM_KUNENA_BUTTON_EDIT') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_EDIT_LONG') );
$this->message_moderate = CKunenaLink::GetTopicPostReplyLink ( 'moderate', $catid, $this->message->id, $this->getButton ( 'moderate', JText::_('COM_KUNENA_BUTTON_MODERATE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_MODERATE_LONG') );
if ($this->message->hold == 1) {
$this->message_publish = CKunenaLink::GetTopicPostLink ( 'approve', $catid, $this->message->id, $this->getButton ( 'approve', JText::_('COM_KUNENA_BUTTON_APPROVE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_APPROVE_LONG') );
}
if ($this->message->hold == 2 || $this->message->hold == 3) {
$this->message_undelete = CKunenaLink::GetTopicPostLink ( 'undelete', $catid, $this->message->id, $this->getButton ( 'undelete', JText::_('COM_KUNENA_BUTTON_UNDELETE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_UNDELETE_LONG') );
$this->message_permdelete = CKunenaLink::GetTopicPostLink ( 'permdelete', $catid, $this->message->id, $this->getButton ( 'permdelete', JText::_('COM_KUNENA_BUTTON_PERMDELETE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_PERMDELETE_LONG') );
} else {
$this->message_delete = CKunenaLink::GetTopicPostLink ( 'delete', $catid, $this->message->id, $this->getButton ( 'delete', JText::_('COM_KUNENA_BUTTON_DELETE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_DELETE_LONG') );
}
}
else if ($this->message->authorise('edit')) {
$this->message_edit = CKunenaLink::GetTopicPostReplyLink ( 'edit', $catid, $this->message->id, $this->getButton ( 'edit', JText::_('COM_KUNENA_BUTTON_EDIT') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_EDIT_LONG') );
if ( $this->config->userdeletetmessage == '1' ) {
if ($this->message->id == $this->topic->last_post_id) $this->message_delete = CKunenaLink::GetTopicPostLink ( 'delete', $catid, $this->message->id, $this->getButton ( 'delete', JText::_('COM_KUNENA_BUTTON_DELETE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_DELETE_LONG') );
} else if ( $this->config->userdeletetmessage == '2' ) {
$this->message_delete = CKunenaLink::GetTopicPostLink ( 'delete', $catid, $this->message->id, $this->getButton ( 'delete', JText::_('COM_KUNENA_BUTTON_DELETE') ), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_DELETE_LONG') );
}
}
return $this->loadTemplate("message_actions");
}