function getAnnouncement($id = 0, $mode = 0) { if ($mode) { $published = "AND published='1'"; } else { $published = ""; } if (!$id) { $query = "SELECT * FROM #__kunena_announcement WHERE published='1' ORDER BY created DESC"; } else { $query = "SELECT * FROM #__kunena_announcement WHERE id={$this->db->Quote($id)} {$published}"; } $this->db->setQuery($query, 0, 1); $announcement = $this->db->loadObject(); if (KunenaError::checkDatabaseError()) { return; } if (!$announcement) { return; } // TODO: deprecated $this->id = $announcement->id; $this->title = KunenaParser::parseText($announcement->title); $this->sdescription = KunenaParser::parseBBCode($announcement->sdescription); $this->description = KunenaParser::parseBBCode($announcement->description); $this->created = $announcement->created; $this->published = $announcement->published; $this->showdate = $announcement->showdate; // end deprecated $this->announcement = $announcement; }
?> </p> <p><?php $profile = KunenaFactory::getUser(intval($mes->userid)); $useravatar = $profile->getAvatarLink('', '', 'profile'); if ($useravatar) { echo CKunenaLink::GetProfileLink(intval($mes->userid), $useravatar); } ?> </p> </td> <td class="kmessage-left khistorymsg"> <div class="kmsgbody"> <div class="kmsgtext"> <?php echo KunenaParser::parseBBCode($mes->message, $this); ?> </div> </div> <?php if (!empty($this->attachmentslist[$mes->id])) { $this->displayAttachments($this->attachmentslist[$mes->id]); } ?> </td> </tr> </tbody> </table> <?php } ?>
protected function _getPreview($data) { $result = array(); $config = KunenaFactory::getConfig(); $this->msg->userid = JFactory::getUser()->id; $msgbody = KunenaParser::parseBBCode($data, $this); $result['preview'] = $msgbody; return $result; }
function parseBBCode($txt) { user_error(__CLASS__ . '::' . __FUNCTION__ . '(): Deprecated', E_USER_NOTICE); kimport('html.parser'); return KunenaParser::parseBBCode($txt); }
/** * Pulls together data and options and outputs the build feed. * Header and mime is automaticly set. * * @access private * @param array $items */ private function buildFeed($items = array()) { // Build items for feed foreach ($items as $data) { $item = new JFeedItem(); // Calcution to define the last page of the topic $threadPages = ceil($data->msgcount / $this->config->messages_per_page); // Build unique direct linking url for each item (htmlspecialchars_decode because FeedCreator uses htmlspecialchars on input) $url = CKunenaLink::GetThreadPageURL('view', $data->catid, $data->thread, $threadPages, $this->config->messages_per_page, $data->id); // Extract the data, we want to present and store it in $tmp $tmp = array(); $tmp['title'] = $data->subject; // Remove confidential information from message $data->message = preg_replace('/\\[confidential\\](.*?)\\[\\/confidential\\]/s', '', $data->message); $data->message = preg_replace('/\\[hide\\](.*?)\\[\\/hide\\]/s', '', $data->message); $data->message = preg_replace('/\\[spoiler\\]/s', '[spoilerlight]', $data->message); $data->message = preg_replace('/\\[\\/spoiler\\]/s', '[/spoilerlight]', $data->message); $data->message = preg_replace('/\\[code\\](.*?)\\[\\/code]/s', '', $data->message); $tmp['text'] = $data->message; $tmp['date'] = $data->time; $tmp['email'] = $data->email; $tmp['name'] = $data->name; $tmp['cat_name'] = $data->catname; // Link and source is always the same $tmp['link'] = $this->uri->toString(array('scheme', 'host', 'port')) . $url; $tmp['source'] = $this->uri->toString(array('scheme', 'host', 'port')) . $url; // Determine title format if ($this->old_titles) { $tmp['title'] = JText::_('COM_KUNENA_GEN_SUBJECT') . ': ' . $tmp['title']; } // Determine author format switch ($this->author_format) { case 'both': $tmp['author'] = $tmp['email'] . ' (' . $tmp['name'] . ')'; break; case 'email': $tmp['author'] = $tmp['email']; break; case 'name': default: $tmp['author'] = $tmp['name']; } // Do we want author in item titles? if ($this->author_in_title) { $tmp['title'] .= ' - ' . JText::_('COM_KUNENA_GEN_BY') . ': ' . $tmp['name']; } // Limit number of words if ($this->word_count) { $Newmessage = ''; $t_newString = explode(" ", $tmp['text']); foreach ($t_newString as $key => $word) { if ($key < $this->word_count) { $Newmessage .= $word . ' '; } } // Append userfriendly '...' string if (strlen($tmp['text']) != strlen($Newmessage)) { $Newmessage .= ' ...'; } $tmp['text'] = $Newmessage; } if ($this->allow_html) { // Not nessecary to convert specialchars or use parsetext. // ParseBBCode does it for us $tmp['text'] = KunenaParser::parseBBCode($tmp['text']); } else { // Not nessecary to convert specialchars. // FeedCreator does it for us $tmp['text'] = KunenaParser::parseText($tmp['text']); } // Assign values to feed item $item->title = $tmp['title']; $item->link = $tmp['link']; $item->description = $tmp['text']; $item->date = $tmp['date']; $item->source = $tmp['source']; $item->author = $tmp['author']; $item->category = $tmp['cat_name']; // Finally add item to feed $this->document->addItem($item); } }
public function onAfterReply($message) { CFactory::load('libraries', 'userpoints'); CUserPoints::assignPoint('com_kunena.thread.reply'); // Check for permisions of the current category - activity only if public or registered if (!empty($message->parent)) { //activity stream - reply post require_once KPATH_SITE . '/lib/kunena.link.class.php'; $JSPostLink = CKunenaLink::GetThreadPageURL('view', $message->get('catid'), $message->get('thread'), 1); $content = $message->get('message'); // Strip content not allowed for guests $content = preg_replace('/\\[hide\\](.*?)\\[\\/hide\\]/s', '', $content); $content = preg_replace('/\\[confidential\\](.*?)\\[\\/confidential\\]/s', '', $content); $content = preg_replace('/\\[spoiler\\]/s', '[spoilerlight]', $content); $content = preg_replace('/\\[\\/spoiler\\]/s', '[/spoilerlight]', $content); $content = preg_replace('/\\[attachment(.*?)\\](.*?)\\[\\/attachment\\]/s', '', $content); $content = preg_replace('/\\[code\\](.*?)\\[\\/code]/s', '', $content); // limit activity stream output if limit is set $content = KunenaParser::parseBBCode($content, null, intval($this->_config->activity_limit)); // Add readmore link $content .= '<br /><a href="' . CKunenaLink::GetMessageURL($message->get('id')) . '" class="small profile-newsfeed-item-action">' . JText::_('COM_KUNENA_READMORE') . '</a>'; $act = new stdClass(); $act->cmd = 'wall.write'; $act->actor = $message->get('userid'); $act->target = 0; // no target $act->title = JText::_('{single}{actor}{/single}{multiple}{actors}{/multiple} ' . JText::_('COM_KUNENA_JS_ACTIVITYSTREAM_REPLY_MSG1') . ' <a href="' . $JSPostLink . '">' . $message->get('subject') . '</a> ' . JText::_('COM_KUNENA_JS_ACTIVITYSTREAM_REPLY_MSG2')); $act->content = $content; $act->app = 'kunena.post'; $act->cid = $message->get('thread'); $act->access = $this->getAccess($message); CFactory::load('libraries', 'activities'); CActivityStream::add($act); } }
function decodeHTML($string) { require_once JPATH_ADMINISTRATOR . '/components/com_kunena/libraries/html/parser.php'; $string = KunenaParser::parseBBCode($string); return $string; }
<a href="http://<?php echo $this->escape($this->profile->websiteurl); ?> " target="_blank"><?php echo KunenaParser::parseText($this->profile->websitename); ?> </a></li> </ul> </div> <div class="kprofile-rightcol1"> <h4><?php echo JText::_('COM_KUNENA_MYPROFILE_SIGNATURE'); ?> </h4> <div class="kmsgsignature"><div><?php echo KunenaParser::parseBBCode($this->signature); ?> </div></div> </div> </div> <div class="clrline"></div> <div id="kprofile-tabs"> <dl class="tabs"> <?php if (CKunenaTools::isModerator($this->my->id)) { ?> <dt class="open" title="<?php echo JText::_('COM_KUNENA_MESSAGE_ADMINISTRATION');
function display($mode = '') { $message = $this->msg; $this->id = $message->id; $this->catid = $message->catid; $this->thread = $message->thread; // Link to individual message if ($this->config->ordering_system == 'replyid') { $this->numLink = CKunenaLink::GetSamePageAnkerLink($this->id, '#' . $this->replynum); } else { $this->numLink = CKunenaLink::GetSamePageAnkerLink($this->id, '#' . $this->id); } // New post suffix for class if ($message->new) { $this->msgsuffix = '-new'; } // Add attachments if (!empty($message->attachments)) { $this->attachments = $message->attachments; } $subject = $message->subject; $this->resubject = JString::strtolower(JString::substr($subject, 0, JString::strlen(JText::_('COM_KUNENA_POST_RE')))) == JString::strtolower(JText::_('COM_KUNENA_POST_RE')) ? $subject : JText::_('COM_KUNENA_POST_RE') . ' ' . $subject; $this->subjectHtml = KunenaParser::parseText($subject); $this->messageHtml = KunenaParser::parseBBCode($message->message, $this); //Show admins the IP address of the user: if ($message->ip && (CKunenaTools::isAdmin() || CKunenaTools::isModerator($this->my->id, $this->catid) && !$this->config->hide_ip)) { $this->ipLink = CKunenaLink::GetMessageIPLink($message->ip); } $this->profile = KunenaFactory::getUser($message->userid); // Modify profile values by integration $triggerParams = array('userid' => $message->userid, 'userinfo' => &$this->profile); $integration = KunenaFactory::getProfile(); $integration->trigger('profileIntegration', $triggerParams); // Choose username $this->userid = $this->profile->userid; $this->username = $this->config->username ? $this->profile->username : $this->profile->name; if ((!$this->username || !$message->userid || $this->config->changename) && $message->name) { $this->username = $message->name; } if ($this->params->get('avatarPosition') == 'left' || $this->params->get('avatarPosition') == 'right') { $avatar = $this->profile->getAvatarLink('kavatar', 'post'); } else { $avatar = $this->profile->getAvatarLink('kavatar', 'welcome'); } if ($avatar) { $this->avatar = '<span class="kavatar">' . $avatar . '</span>'; } if ($this->config->showuserstats) { $activityIntegration = KunenaFactory::getActivityIntegration(); if ($this->config->userlist_usertype) { $this->usertype = $this->profile->getType($this->catid); } $this->userrankimage = $this->profile->getRank($this->catid, 'image'); $this->userranktitle = $this->profile->getRank($this->catid, 'title'); $this->userposts = $this->profile->posts; $this->userpoints = $activityIntegration->getUserPoints($this->profile->userid); $this->usermedals = $activityIntegration->getUserMedals($this->profile->userid); } //karma points and buttons $this->userkarma_minus = $this->userkarma_plus = ''; if ($this->config->showkarma && $this->profile->userid) { $this->userkarma = JText::_('COM_KUNENA_KARMA') . ": " . $this->profile->karma; if ($this->my->id && $this->my->id != $this->profile->userid) { $this->userkarma_minus = CKunenaLink::GetKarmaLink('decrease', $this->catid, $this->id, $this->userid, '<span class="kkarma-minus" alt="Karma-" border="0" title="' . JText::_('COM_KUNENA_KARMA_SMITE') . '"> </span>'); $this->userkarma_plus = CKunenaLink::GetKarmaLink('increase', $this->catid, $this->id, $this->userid, '<span class="kkarma-plus" alt="Karma+" border="0" title="' . JText::_('COM_KUNENA_KARMA_APPLAUD') . '"> </span>'); } } $this->profilelink = $this->profile->profileIcon('profile'); $this->personaltext = $this->profile->personalText; $this->signatureHtml = KunenaParser::parseBBCode($this->profile->signature); //Thankyou info and buttons if ($this->config->showthankyou && $this->profile->userid && $mode != 'threaded') { require_once KPATH_SITE . '/lib/kunena.thankyou.php'; $thankyou = new CKunenaThankyou(); $this->total_thankyou = $thankyou->getThankYouUser($this->id); $this->thankyou = array_slice($this->total_thankyou, 0, $this->config->thankyou_max); if ($this->my->id && $this->my->id != $this->profile->userid) { $this->message_thankyou = CKunenaLink::GetThankYouLink($this->catid, $this->id, $this->userid, CKunenaTools::showButton('thankyou', JText::_('COM_KUNENA_BUTTON_THANKYOU')), JText::_('COM_KUNENA_BUTTON_THANKYOU_LONG'), 'kicon-button kbuttonuser btn-left'); } } if (!$message->hold && (CKunenaTools::isModerator($this->my->id, $this->catid) || !$this->topicLocked)) { //user is allowed to reply/quote $this->captcha = KunenaSpamRecaptcha::getInstance(); if ($this->my->id && (CKunenaTools::isModerator($this->my->id, $this->catid) || $this->me->posts >= $this->config->captcha_post_limit)) { $this->message_quickreply = CKunenaLink::GetTopicPostReplyLink('reply', $this->catid, $this->id, CKunenaTools::showButton('reply', JText::_('COM_KUNENA_BUTTON_QUICKREPLY')), 'nofollow', 'kicon-button kbuttoncomm btn-left kqreply', JText::_('COM_KUNENA_BUTTON_QUICKREPLY_LONG'), ' id="kreply' . $this->id . '"'); } $this->message_reply = CKunenaLink::GetTopicPostReplyLink('reply', $this->catid, $this->id, CKunenaTools::showButton('reply', JText::_('COM_KUNENA_BUTTON_REPLY')), 'nofollow', 'kicon-button kbuttoncomm btn-left', JText::_('COM_KUNENA_BUTTON_REPLY_LONG')); $this->message_quote = CKunenaLink::GetTopicPostReplyLink('quote', $this->catid, $this->id, CKunenaTools::showButton('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->topicLocked) { $this->message_closed = JText::_('COM_KUNENA_POST_LOCK_SET'); } else { $this->message_closed = JText::_('COM_KUNENA_VIEW_DISABLED'); } } $this->msgclass = 'kmsg'; //Offer an moderator a few tools if (CKunenaTools::isModerator($this->my->id, $this->catid)) { unset($this->message_closed); $this->message_edit = CKunenaLink::GetTopicPostReplyLink('edit', $this->catid, $this->id, CKunenaTools::showButton('edit', JText::_('COM_KUNENA_BUTTON_EDIT')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_EDIT_LONG')); $this->message_moderate = CKunenaLink::GetTopicPostReplyLink('moderate', $this->catid, $this->id, CKunenaTools::showButton('moderate', JText::_('COM_KUNENA_BUTTON_MODERATE')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_MODERATE_LONG')); if ($message->hold == 1) { $this->message_publish = CKunenaLink::GetTopicPostLink('approve', $this->catid, $this->id, CKunenaTools::showButton('approve', JText::_('COM_KUNENA_BUTTON_APPROVE')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_APPROVE_LONG')); $this->msgclass .= ' kunapproved'; } if ($message->hold == 2 || $message->hold == 3) { $this->msgclass .= ' kunapproved kdeleted'; $this->message_undelete = CKunenaLink::GetTopicPostLink('undelete', $this->catid, $this->id, CKunenaTools::showButton('undelete', JText::_('COM_KUNENA_BUTTON_UNDELETE')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_UNDELETE_LONG')); $this->message_permdelete = CKunenaLink::GetTopicPostLink('permdelete', $this->catid, $this->id, CKunenaTools::showButton('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', $this->catid, $this->id, CKunenaTools::showButton('delete', JText::_('COM_KUNENA_BUTTON_DELETE')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_DELETE_LONG')); } } else { if ($this->config->useredit && $this->my->id && $this->my->id == $this->profile->userid) { //Now, if the viewer==author and the viewer is allowed to edit his/her own post then offer an 'edit' link if ($message->hold != 2 && CKunenaTools::editTimeCheck($message->modified_time, $message->time)) { $this->message_edit = CKunenaLink::GetTopicPostReplyLink('edit', $this->catid, $this->id, CKunenaTools::showButton('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->replynum == $this->replycnt) { $this->message_delete = CKunenaLink::GetTopicPostLink('delete', $this->catid, $this->id, CKunenaTools::showButton('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', $this->catid, $this->id, CKunenaTools::showButton('delete', JText::_('COM_KUNENA_BUTTON_DELETE')), 'nofollow', 'kicon-button kbuttonmod btn-left', JText::_('COM_KUNENA_BUTTON_DELETE_LONG')); } } } } } $this->class = 'class="' . $this->msgclass . '"'; if (!$mode) { $templatefile = '/view/message.php'; } else { $templatefile = "/view/message.{$mode}.php"; } CKunenaTools::loadTemplate($templatefile, false, $this->templatepath); }
<div class="kblock"> <div class="kheader"> <span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE'); ?> " rel="frontstats_tbody"></a></span> <h2><span><?php echo JText::_('COM_KUNENA_FORUM_HEADER'); ?> </span></h2> </div> <div class="kcontainer" id="frontstats_tbody"> <div class="kbody"> <div class="kfheadercontent"> <?php echo KunenaParser::parseBBCode($this->headerdesc); ?> </div> </div> </div> </div> <?php } ?> <!-- B: List Actions --> <table class="klist-actions"> <tr> <td class="klist-actions-goto"> <a name="forumtop"> </a> <?php
/** * Display results * @param string actionstring */ function show() { extract($this->params); $this->quser = $this->get_searchusername(); $this->selected = ' selected="selected"'; $this->checked = ' checked="checked"'; $this->advsearch_hide = 1; if ($this->int_kunena_errornr) { $this->advsearch_hide = 0; } $this->tabclass = array("row1", "row2"); $searchdatelist = array(); $searchdatelist[] = JHTML::_('select.option', 'lastvisit', JText::_('COM_KUNENA_SEARCH_DATE_LASTVISIT')); $searchdatelist[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_SEARCH_DATE_YESTERDAY')); $searchdatelist[] = JHTML::_('select.option', '7', JText::_('COM_KUNENA_SEARCH_DATE_WEEK')); $searchdatelist[] = JHTML::_('select.option', '14', JText::_('COM_KUNENA_SEARCH_DATE_2WEEKS')); $searchdatelist[] = JHTML::_('select.option', '30', JText::_('COM_KUNENA_SEARCH_DATE_MONTH')); $searchdatelist[] = JHTML::_('select.option', '90', JText::_('COM_KUNENA_SEARCH_DATE_3MONTHS')); $searchdatelist[] = JHTML::_('select.option', '180', JText::_('COM_KUNENA_SEARCH_DATE_6MONTHS')); $searchdatelist[] = JHTML::_('select.option', '365', JText::_('COM_KUNENA_SEARCH_DATE_YEAR')); $searchdatelist[] = JHTML::_('select.option', 'all', JText::_('COM_KUNENA_SEARCH_DATE_ANY')); $this->searchdatelist = JHTML::_('select.genericlist', $searchdatelist, 'searchdate', 'class="ks"', 'value', 'text', $this->params['searchdate']); $beforeafterlist = array(); $beforeafterlist[] = JHTML::_('select.option', 'after', JText::_('COM_KUNENA_SEARCH_DATE_NEWER')); $beforeafterlist[] = JHTML::_('select.option', 'before', JText::_('COM_KUNENA_SEARCH_DATE_OLDER')); $this->beforeafterlist = JHTML::_('select.genericlist', $beforeafterlist, 'beforeafter', 'class="ks"', 'value', 'text', $this->params['beforeafter']); $sortbylist = array(); $sortbylist[] = JHTML::_('select.option', 'title', JText::_('COM_KUNENA_SEARCH_SORTBY_TITLE')); //$sortbylist[] = JHTML::_('select.option', 'replycount', JText::_('COM_KUNENA_SEARCH_SORTBY_POSTS') ); $sortbylist[] = JHTML::_('select.option', 'views', JText::_('COM_KUNENA_SEARCH_SORTBY_VIEWS')); //$sortbylist[] = JHTML::_('select.option', 'threadstart', JText::_('COM_KUNENA_SEARCH_SORTBY_START') ); $sortbylist[] = JHTML::_('select.option', 'lastpost', JText::_('COM_KUNENA_SEARCH_SORTBY_POST')); //$sortbylist[] = JHTML::_('select.option', 'postusername', JText::_('COM_KUNENA_SEARCH_SORTBY_USER') ); $sortbylist[] = JHTML::_('select.option', 'forum', JText::_('COM_KUNENA_SEARCH_SORTBY_FORUM')); $this->sortbylist = JHTML::_('select.genericlist', $sortbylist, 'sortby', 'class="ks"', 'value', 'text', $this->params['sortby']); $limitlist = array(); $limitlist[] = JHTML::_('select.option', '5', JText::_('COM_KUNENA_SEARCH_LIMIT5')); $limitlist[] = JHTML::_('select.option', '10', JText::_('COM_KUNENA_SEARCH_LIMIT10')); $limitlist[] = JHTML::_('select.option', '15', JText::_('COM_KUNENA_SEARCH_LIMIT15')); $limitlist[] = JHTML::_('select.option', '20', JText::_('COM_KUNENA_SEARCH_LIMIT20')); $this->limitlist = JHTML::_('select.genericlist', $limitlist, 'limit', 'class="ks"', 'value', 'text', $this->limit); //category select list $options = array(); $options[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_SEARCH_SEARCHIN_ALLCATS')); $this->categorylist = CKunenaTools::forumSelectList('searchlist', explode(',', $this->params['catids']), $options, 'class="inputbox" size="8" multiple="multiple"', true); CKunenaTools::loadTemplate('/search/advsearch.php'); $this->results = $this->get_results(); $this->pagination = $this->getPagination($this->func, $this->q, $this->getUrlParams(), floor($this->limitstart / $this->limit) + 1, $this->limit, floor($this->total / $this->limit) + 1, 7); if (defined('KUNENA_DEBUG')) { echo '<p style="background-color:#FFFFCC;border:1px solid red;">' . $this->str_kunena_errormsg . '</p>'; } $searchlist = $this->get_searchstrings(); foreach ($this->results as $i => $result) { // Clean up subject $ressubject = KunenaParser::parseText($result->subject); // Strip smiles and bbcode out of search results; they look ugly $resmessage = KunenaParser::parseBBCode($result->message); foreach ($searchlist as $searchword) { if (empty($searchword)) { continue; } $ressubject = preg_replace("/" . preg_quote($searchword, '/') . "/iu", '<span class="searchword" >' . $searchword . '</span>', $ressubject); // FIXME: enable highlighting, but only after we can be sure that we do not break html //$resmessage = preg_replace ( "/" . preg_quote ( $searchword, '/' ) . "/iu", '<span class="searchword" >' . $searchword . '</span>', $resmessage ); } $this->results[$i]->htmlsubject = $ressubject; $this->results[$i]->htmlmessage = $resmessage; } CKunenaTools::loadTemplate('/search/search.php'); }
<?php echo CKunenaLink::GetAnnouncementLink('show', NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?> </div> <?php } ?> <div class="kbody"> <div class="kanndesc"> <?php if ($this->announcement->showdate > 0) { ?> <div class="anncreated" title="<?php echo CKunenaTimeformat::showDate($this->announcement->created, 'ago'); ?> "> <?php echo CKunenaTimeformat::showDate($this->announcement->created, 'date_today'); ?> </div> <?php } ?> <div class="anndesc"><?php echo !empty($this->announcement->description) ? KunenaParser::parseBBCode($this->announcement->description) : KunenaParser::parseBBCode($this->announcement->sdescription); ?> </div> </div> </div> </div> </div>
echo '<sup class="knewchar">(' . intval($category->new) . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ")</sup>"; } if ($category->locked) { echo CKunenaTools::showIcon('kforumlocked', JText::_('COM_KUNENA_GEN_LOCKED_FORUM')); } if ($category->review) { echo CKunenaTools::showIcon('kforummoderated', JText::_('COM_KUNENA_GEN_MODERATED')); } ?> </div> <?php if (!empty($category->description)) { ?> <div class="kthead-desc km"><?php echo KunenaParser::parseBBCode($category->description); ?> </div> <?php } ?> <?php // Display subcategories if (!empty($this->childforums[$category->id])) { ?> <div class="kthead-child"> <div class="kcc-table"> <?php foreach ($this->childforums[$category->id] as $childforum) { ?> <div class="kcc-subcat km">
<?php if ($this->announcement->showdate) { ?> <div class="anncreated"><?php echo CKunenaTimeformat::showDate($this->announcement->created, 'date_today'); ?> </div> <?php } ?> <?php if (!empty($this->announcement->sdescription)) { ?> <div class="anndesc"> <?php echo KunenaParser::parseBBCode($this->announcement->sdescription); ?> <?php if (!empty($this->announcement->description)) { ?> ...<br /><?php echo CKunenaLink::GetAnnouncementLink('read', $this->id, JText::_('COM_KUNENA_ANN_READMORE'), JText::_('COM_KUNENA_ANN_READMORE'), 'follow'); ?> <?php } ?> </div> <?php } ?> </div>