function dofreePDF() { $kunena_app =& JFactory::getApplication(); $kunena_db =& JFactory::getDBO(); $kunena_acl =& JFactory::getACL(); $kunena_my =& JFactory::getUser(); $kunena_config = KunenaFactory::getConfig(); $catid = JRequest::getInt('catid', 0); $id = JRequest::getInt('id', 0); $limit = JRequest::getInt('limit', 0); $limitstart = JRequest::getInt('limitstart', 0); if ($limit < 1) { $limit = $kunena_config->messages_per_page - 1; } require_once KUNENA_PATH_LIB . '/kunena.timeformat.class.php'; $kunena_session = KunenaFactory::getSession(true); $kunena_session->updateAllowedForums(); $allow_forum = $kunena_session->allowed != '' ? explode(',', $kunena_session->allowed) : array(); if (in_array($catid, $allow_forum) && $id) { //first get the thread id for the current post to later on determine the parent post $kunena_db->setQuery("SELECT thread FROM #__kunena_messages WHERE id={$kunena_db->Quote($id)} AND catid={$kunena_db->Quote($catid)}"); $threadid = $kunena_db->loadResult(); if (KunenaError::checkDatabaseError()) { return; } //load topic post and details $kunena_db->setQuery("SELECT a.*, b.* FROM #__kunena_messages AS a, #__kunena_messages_text AS b WHERE a.thread={$kunena_db->Quote($threadid)} AND a.catid={$kunena_db->Quote($catid)} AND a.parent='0' AND a.id=b.mesid"); $row = $kunena_db->loadObjectList(); if (KunenaError::checkDatabaseError()) { return; } if (file_exists(KUNENA_ROOT_PATH . '/includes/class.ezpdf.php')) { include KUNENA_ROOT_PATH . '/includes/class.ezpdf.php'; $pdf = new Cezpdf('a4', 'P'); //A4 Portrait } elseif (class_exists('JDocument')) { $pdf = new fbpdfwrapper(); } else { echo 'No supported pdf class found!'; exit; } if (empty($row)) { //if the messages doesn't exist don't need to continue echo '<br /><br /><div align="center">' . JText::_('COM_KUNENA_PDF_NOT_GENERATED_MESSAGE_DELETED') . '</div><br /><br />'; echo CKunenaLink::GetAutoRedirectHTML(KunenaRoute::_(KUNENA_LIVEURLREL . '&func=showcat&catid=' . $catid), 3500); } else { $mes_text = $row[0]->message; filterHTML($mes_text); $pdf->ezSetCmMargins(2, 1.5, 1, 1); $pdf->selectFont('./fonts/Helvetica.afm'); //choose font $all = $pdf->openObject(); $pdf->saveState(); $pdf->setStrokeColor(0, 0, 0, 1); // footer $pdf->line(10, 40, 578, 40); $pdf->line(10, 822, 578, 822); $pdf->addText(30, 34, 6, $kunena_config->board_title . ' - ' . $kunena_app->getCfg('sitename')); $strtmp = JText::_('COM_KUNENA_PDF_VERSION'); $strtmp = str_replace('%version%', "NEW VERSION GOES HERE", $strtmp); // TODO: fxstein - Need to change version handling $pdf->addText(250, 34, 6, $strtmp); $strtmp = JText::_('COM_KUNENA_PDF_DATE'); $strtmp = str_replace('%date%', date('j F, Y, H:i', CKunenaTimeformat::internalTime()), $strtmp); $pdf->addText(450, 34, 6, $strtmp); $pdf->restoreState(); $pdf->closeObject(); $pdf->addObject($all, 'all'); $pdf->ezSetDy(30); $txt0 = $row[0]->subject; $pdf->ezText($txt0, 14); $pdf->ezText(JText::_('COM_KUNENA_VIEW_POSTED') . " " . $row[0]->name . " - " . CKunenaTimeformat::showDate($row[0]->time), 8); $pdf->ezText("_____________________________________", 8); //$pdf->line( 10, 780, 578, 780 ); $txt3 = "\n"; $txt3 .= $mes_text; $pdf->ezText($txt3, 10); $pdf->ezText("\n============================================================================\n\n", 8); //now let's try to see if there's more... $query = "SELECT a.*, b.* FROM #__kunena_messages AS a, #__kunena_messages_text AS b WHERE a.catid={$kunena_db->Quote($catid)} AND a.thread={$kunena_db->Quote($threadid)} AND a.id=b.mesid AND a.parent!='0' ORDER BY a.time ASC"; $kunena_db->setQuery($query, $limitstart, $limit); $replies = $kunena_db->loadObjectList(); if (KunenaError::checkDatabaseError()) { return; } $countReplies = count($replies); if ($countReplies > 0) { foreach ($replies as $reply) { $mes_text = $reply->message; filterHTML($mes_text); $txt0 = $reply->subject; $pdf->ezText($txt0, 14); $pdf->ezText(JText::_('COM_KUNENA_VIEW_POSTED') . " " . $reply->name . " - " . CKunenaTimeformat::showDate($reply->time), 8); $pdf->ezText("_____________________________________", 8); $txt3 = "\n"; $txt3 .= $mes_text; $pdf->ezText($txt3, 10); $pdf->ezText("\n============================================================================\n\n", 8); } } $pdf->ezStream(); } } else { echo "You don't have access to this resource."; } }
/** * @version $Id$ * Kunena Component * @package Kunena * * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org * **/ // Dont allow direct linking defined('_JEXEC') or die; $dateshown = $datehover = ''; if ($this->msg->modified_time) { $datehover = 'title="' . CKunenaTimeformat::showDate($this->msg->modified_time, 'config_post_dateformat_hover') . '"'; $dateshown = CKunenaTimeformat::showDate($this->msg->modified_time, 'config_post_dateformat') . ' '; } ?> <div> <?php if ($this->signatureHtml) { ?> <div class="kmsgsignature"> <?php echo $this->signatureHtml; ?> </div> <?php } ?> </div>
protected function isIPBanned() { // Disabled for now.. return false; kimport('userban'); $banned = KunenaUserBan::getInstanceByIP($_SERVER['REMOTE_ADDR']); if ($banned) { if (!$banned->isLifetime()) { require_once KPATH_SITE . '/lib/kunena.timeformat.class.php'; $this->_app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_IP_BANNED_NOACCESS_EXPIRY', CKunenaTimeformat::showDate($banned->expiration)), 'error'); $this->redirectBack(); return true; } else { $this->_app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_IP_BANNED_NOACCESS'), 'error'); $this->redirectBack(); return true; } } return false; }
?> "></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER'); ?> :</strong> <?php echo $this->gender; ?> </li> <li class="bd"><span class="kicon-profile kicon-profile-birthdate"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE'); ?> :</strong> <span title="<?php echo CKunenaTimeformat::showDate($this->profile->birthdate, 'ago', 'utc', 0); ?> "><?php echo CKunenaTimeformat::showDate($this->profile->birthdate, 'date', 'utc', 0); ?> </span> <!-- <a href="#" title=""><span class="bday-remind"></span></a> --> </li> </ul> </div> </div> <div class="clrline"></div> <div id="kprofile-rightcolbot"> <div class="kprofile-rightcol2"> <ul> <?php if ($this->config->showemail && (!$this->profile->hideEmail || CKunenaTools::isModerator($this->my->id))) { ?>
<div class="kcontainer" id="ksearchresult"> <div class="kbody"> <table> <tbody> <tr> <td> <?php foreach ($this->results as $result) { ?> <table> <thead> <tr class="ksth"> <th colspan="2"> <span class="kmsgdate"> <?php echo CKunenaTimeformat::showDate($result->time); ?> </span> </th> </tr> </thead> <tbody> <?php $k = 0; if ($this->total == 0 && $this->int_kunena_errornr) { ?> <tr class="k<?php echo $this->tabclass[$k]; ?> " > <td>
</div> <div class="kcontainer" id="khistory"> <div class="kbody"> <?php foreach ($this->messages as $mes) { ?> <table> <thead> <tr class="ksth"> <th colspan="2"> <span class="kmsgdate khistory-msgdate" title="<?php echo CKunenaTimeformat::showDate($mes->time, 'config_post_dateformat_hover'); ?> "> <?php echo CKunenaTimeformat::showDate($mes->time, 'config_post_dateformat'); ?> </span> <a name="<?php echo intval($mes->id); ?> "></a> <?php echo $this->getNumLink($mes->id, $this->replycount--); ?> </th> </tr> </thead> <tbody> <tr> <td rowspan="2" valign="top" class="kprofile-left kauthor">
?> </span></li><?php } ?> <li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE'); ?> :</strong> GMT <?php echo CKunenaTimeformat::showTimezone($this->timezone); ?> </li> <li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME'); ?> :</strong> <?php echo CKunenaTimeformat::showDate('now', 'time', 'utc', $this->timezone); ?> </li> <?php if (!empty($this->posts)) { ?> <li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS'); ?> :</strong> <?php echo intval($this->posts); ?> </li><?php } ?> <?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>
<ul class="kprofilebox-welcome"> <li><?php echo JText::_('COM_KUNENA_PROFILEBOX_WELCOME'); ?> , <strong><?php echo CKunenaLink::GetProfileLink(intval($this->user->id), $this->escape($this->kunena_username)); ?> </strong></li> <li class="kms"><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE'); ?> :</strong> <span title="<?php echo CKunenaTimeformat::showDate($this->user->lastvisitDate, 'ago', 'utc'); ?> "><?php echo CKunenaTimeformat::showDate($this->user->lastvisitDate, 'date_today', 'utc'); ?> </span></li> <?php if ($logout) { ?> <li> <form action="<?php echo KunenaRoute::_(KUNENA_LIVEURLREL); ?> " method="post" name="login"> <input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT'); ?> " /> <input type="hidden" name="option" value="<?php
<?php if ($this->params->get('sh_author')) { ?> <li class="klatest-author"><?php echo JText::_('MOD_KUNENALATEST_LAST_POST_BY') . ' ' . CKunenaLink::GetProfileLink($item->userid, $item->name); ?> </li> <?php } ?> <?php if ($this->params->get('sh_time')) { ?> <li class="klatest-posttime"><?php $override = $this->params->get('dateformat'); echo CKunenaTimeformat::showDate($this->params->get('choosemodel') == 'latestposts' ? $item->time : $item->lasttime, $override ? $override : 'config_post_dateformat'); ?> </li> <?php } ?> </ul> </li> <?php } //end foreach ?> </ul> <?php if ($this->params->get('sh_morelink')) { ?>
public function profileIcon($name) { switch ($name) { case 'gender': switch ($this->gender) { case 1: $gender = 'male'; break; case 2: $gender = 'female'; break; default: $gender = 'unknown'; } $title = JText::_('COM_KUNENA_MYPROFILE_GENDER') . ': ' . JText::_('COM_KUNENA_MYPROFILE_GENDER_' . $gender); return '<span class="kicon-profile kicon-profile-gender-' . $gender . '" title="' . $title . '"></span>'; break; case 'birthdate': if ($this->birthdate) { jimport('joomla.utilities.date'); $date = new JDate($this->birthdate, 0); if ($date->toFormat('%Y') < 1902) { break; } return '<span class="kicon-profile kicon-profile-birthdate" title="' . JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE') . ': ' . CKunenaTimeformat::showDate($this->birthdate, 'date', 'utc', 0) . '"></span>'; } break; case 'location': if ($this->location) { return '<span class="kicon-profile kicon-profile-location" title="' . JText::_('COM_KUNENA_MYPROFILE_LOCATION') . ': ' . kunena_htmlspecialchars($this->location) . '"></span>'; } break; case 'website': $url = 'http://' . $this->websiteurl; if (!$this->websitename) { $websitename = $this->websiteurl; } else { $websitename = $this->websitename; } if ($this->websiteurl) { return '<a href="' . kunena_htmlspecialchars($url) . '" target="_blank"><span class="kicon-profile kicon-profile-website" title="' . JText::_('COM_KUNENA_MYPROFILE_WEBSITE') . ': ' . kunena_htmlspecialchars($websitename) . '"></span></a>'; } break; case 'private': $pms = KunenaFactory::getPrivateMessaging(); return $pms->showIcon($this->userid); break; case 'email': // TODO: show email return; // '<span class="email" title="'. JText::_('COM_KUNENA_MYPROFILE_EMAIL').'"></span>'; break; case 'profile': if (!$this->userid) { return; } return CKunenaLink::GetProfileLink($this->userid, '<span class="profile" title="' . JText::_('COM_KUNENA_VIEW_PROFILE') . '"></span>'); break; } }
} ?> <?php if ($this->params->get('lastlog')) { ?> <li> <span class="klogin-lasttext"><?php echo JText::_('MOD_KUNENALOGIN_LASTVISIT'); ?> </span> <span class="klogin-lastdate" title="<?php echo CKunenaTimeformat::showDate($this->my->lastvisitDate, 'date_today', 'utc'); ?> "> <?php echo CKunenaTimeformat::showDate($this->my->lastvisitDate, 'ago', 'utc'); ?> </span> </li> <?php } ?> <li class="klogin-logout-button"> <input type="submit" name="Submit" class="kbutton" value="<?php echo JText::_('MOD_KUNENALOGIN_BUTTON_LOGOUT'); ?> " /> </li> </ul> </div> <div class="klogin-links">
?> <div class="klatest-subject ks"> <?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': ' . CKunenaLink::GetThreadPageLink('view', intval($category->catid), intval($category->thread), intval($category->page), intval($this->config->messages_per_page), KunenaParser::parseText($category->subject, 30), intval($category->id_last_msg)); ?> </div> <div class="klatest-subject-by ks"> <?php echo JText::_('COM_KUNENA_BY') . ' '; if (!empty($category->userid)) { echo CKunenaLink::GetProfileLink(intval($category->userid), $this->escape($this->config->username ? $category->username : $category->uname)); } else { echo CKunenaLink::GetProfileLink(intval($category->userid), $this->escape($category->mname)); } echo '<br /><span class="nowrap" title="' . CKunenaTimeformat::showDate($category->time_last_msg, 'config_post_dateformat_hover') . '">' . CKunenaTimeformat::showDate($category->time_last_msg, 'config_post_dateformat') . '</span>'; ?> </div> </td> <?php } else { ?> <td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?> </td> <?php } ?> </tr>
?> :</div> <div class="kmoderate-message"> <h4><?php echo $this->escape($this->message->subject); ?> </h4> <div class="kmessage-timeby"><span class="kmessage-time" title="<?php echo CKunenaTimeformat::showDate($this->message->time, 'config_post_dateformat_hover'); ?> "> <?php echo JText::_('COM_KUNENA_POSTED_AT'); ?> <?php echo CKunenaTimeformat::showDate($this->message->time, 'config_post_dateformat'); ?> </span> <span class="kmessage-by"><?php echo JText::_('COM_KUNENA_GEN_BY') . ' ' . CKunenaLink::GetProfileLink(intval($this->message->userid), $this->escape($this->message->name)); ?> </span></div> <div class="kmessage-avatar"><?php echo $this->user->getAvatarLink('', 'list'); ?> </div> <div class="kmessage-msgtext"><?php echo KunenaParser::stripBBCode($this->message->message, 300); ?> </div> </div>
echo CKunenaLink::GetThreadPageLink('view', intval($leaf->catid), intval($leaf->thread), 1, intval($this->config->messages_per_page), JText::_('COM_KUNENA_GEN_LAST_POST'), intval($this->lastreply[$leaf->thread]->id)); } if ($leaf->name) { echo ' ' . JText::_('COM_KUNENA_GEN_BY') . ' ' . CKunenaLink::GetProfileLink(intval($this->lastreply[$leaf->thread]->userid), $this->escape($this->lastreply[$leaf->thread]->name), '', 'nofollow'); } ?> </span> <!-- /Latest Post --> <br /> <!-- Latest Post Date --> <span class="ktopic-date" title="<?php echo CKunenaTimeformat::showDate($this->lastreply[$leaf->thread]->time, 'config_post_dateformat_hover'); ?> "> <?php echo CKunenaTimeformat::showDate($this->lastreply[$leaf->thread]->time, 'config_post_dateformat'); ?> </span> <!-- /Latest Post Date --> </div> </td> <?php if (count($this->actionDropdown) > 1) { ?> <td class="kcol-mid ktopicmoderation"> <?php if ($this->func == 'favorites' || $this->func == 'subscriptions') { ?> <input class ="kDelete_bulkcheckboxes_<?php echo $this->func;
"><?php echo CKunenaTimeformat::showDate($user->registerDate, 'datetime_today', 'utc'); ?> </td> <?php } ?> <?php if ($this->config->userlist_lastvisitdate) { ?> <td class="kcol-mid" title="<?php echo CKunenaTimeformat::showDate($klvisit); ?> "><?php echo CKunenaTimeformat::showDate($klvisit); ?> </td> <?php } ?> <?php if ($this->config->userlist_userhits) { ?> <td class="kcol-mid"><?php echo $this->escape($user->uhits); ?> </td> <?php }
function showConfig($option) { require_once KUNENA_PATH_LIB . '/kunena.timeformat.class.php'; $kunena_db =& JFactory::getDBO(); $kunena_config = KunenaFactory::getConfig(); $lists = array(); // options to be used later $rss_yesno = array(); $rss_yesno[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_A_NO')); $rss_yesno[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_A_YES')); // ------ $rss_type = array(); $rss_type[] = JHTML::_('select.option', 'post', JText::_('COM_KUNENA_A_RSS_TYPE_POST')); $rss_type[] = JHTML::_('select.option', 'topic', JText::_('COM_KUNENA_A_RSS_TYPE_TOPIC')); $rss_type[] = JHTML::_('select.option', 'recent', JText::_('COM_KUNENA_A_RSS_TYPE_RECENT')); // build the html select list $lists['rss_type'] = JHTML::_('select.genericlist', $rss_type, 'cfg_rss_type', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_type); // ------ $rss_timelimit = array(); $rss_timelimit[] = JHTML::_('select.option', 'week', JText::_('COM_KUNENA_A_RSS_TIMELIMIT_WEEK')); $rss_timelimit[] = JHTML::_('select.option', 'month', JText::_('COM_KUNENA_A_RSS_TIMELIMIT_MONTH')); $rss_timelimit[] = JHTML::_('select.option', 'year', JText::_('COM_KUNENA_A_RSS_TIMELIMIT_YEAR')); // build the html select list $lists['rss_timelimit'] = JHTML::_('select.genericlist', $rss_timelimit, 'cfg_rss_timelimit', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_timelimit); // ------ $rss_specification = array(); $rss_specification[] = JHTML::_('select.option', 'rss0.91', 'RSS 0.91'); $rss_specification[] = JHTML::_('select.option', 'rss1.0', 'RSS 1.0'); $rss_specification[] = JHTML::_('select.option', 'rss2.0', 'RSS 2.0'); $rss_specification[] = JHTML::_('select.option', 'atom1.0', 'Atom 1.0'); // build the html select list $lists['rss_specification'] = JHTML::_('select.genericlist', $rss_specification, 'cfg_rss_specification', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_specification); // ------ $rss_author_format = array(); $rss_author_format[] = JHTML::_('select.option', 'name', JText::_('COM_KUNENA_A_RSS_AUTHOR_FORMAT_NAME')); $rss_author_format[] = JHTML::_('select.option', 'email', JText::_('COM_KUNENA_A_RSS_AUTHOR_FORMAT_EMAIL')); $rss_author_format[] = JHTML::_('select.option', 'both', JText::_('COM_KUNENA_A_RSS_AUTHOR_FORMAT_BOTH')); // build the html select list $lists['rss_author_format'] = JHTML::_('select.genericlist', $rss_author_format, 'cfg_rss_author_format', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_author_format); // ------ // build the html select list $lists['rss_author_in_title'] = JHTML::_('select.genericlist', $rss_yesno, 'cfg_rss_author_in_title', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_author_in_title); // ------ $rss_word_count = array(); $rss_word_count[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_A_RSS_WORD_COUNT_ALL')); $rss_word_count[] = JHTML::_('select.option', '50', '50'); $rss_word_count[] = JHTML::_('select.option', '100', '100'); $rss_word_count[] = JHTML::_('select.option', '250', '250'); $rss_word_count[] = JHTML::_('select.option', '500', '500'); $rss_word_count[] = JHTML::_('select.option', '750', '750'); $rss_word_count[] = JHTML::_('select.option', '1000', '1000'); // build the html select list $lists['rss_word_count'] = JHTML::_('select.genericlist', $rss_word_count, 'cfg_rss_word_count', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_word_count); // ------ // build the html select list $lists['rss_allow_html'] = JHTML::_('select.genericlist', $rss_yesno, 'cfg_rss_allow_html', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_allow_html); // ------ // build the html select list $lists['rss_old_titles'] = JHTML::_('select.genericlist', $rss_yesno, 'cfg_rss_old_titles', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_old_titles); // ------ $rss_cache = array(); $rss_cache[] = JHTML::_('select.option', '0', '0'); // disable $rss_cache[] = JHTML::_('select.option', '60', '1'); $rss_cache[] = JHTML::_('select.option', '300', '5'); $rss_cache[] = JHTML::_('select.option', '900', '15'); $rss_cache[] = JHTML::_('select.option', '1800', '30'); $rss_cache[] = JHTML::_('select.option', '3600', '60'); $lists['rss_cache'] = JHTML::_('select.genericlist', $rss_cache, 'cfg_rss_cache', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rss_cache); // ------ // build the html select list - (moved enablerss here, to keep all rss-related features together) $lists['enablerss'] = JHTML::_('select.genericlist', $rss_yesno, 'cfg_enablerss', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->enablerss); // build the html select list // make a standard yes/no list $yesno = array(); $yesno[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_A_NO')); $yesno[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_A_YES')); $lists['jmambot'] = JHTML::_('select.genericlist', $yesno, 'cfg_jmambot', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->jmambot); $lists['disemoticons'] = JHTML::_('select.genericlist', $yesno, 'cfg_disemoticons', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->disemoticons); $lists['regonly'] = JHTML::_('select.genericlist', $yesno, 'cfg_regonly', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->regonly); $lists['board_offline'] = JHTML::_('select.genericlist', $yesno, 'cfg_board_offline', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->board_offline); $lists['pubwrite'] = JHTML::_('select.genericlist', $yesno, 'cfg_pubwrite', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->pubwrite); $lists['useredit'] = JHTML::_('select.genericlist', $yesno, 'cfg_useredit', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->useredit); $lists['showhistory'] = JHTML::_('select.genericlist', $yesno, 'cfg_showhistory', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showhistory); $lists['showannouncement'] = JHTML::_('select.genericlist', $yesno, 'cfg_showannouncement', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showannouncement); $lists['avataroncat'] = JHTML::_('select.genericlist', $yesno, 'cfg_avataroncat', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->avataroncat); $lists['showchildcaticon'] = JHTML::_('select.genericlist', $yesno, 'cfg_showchildcaticon', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showchildcaticon); $lists['showuserstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showuserstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showuserstats); $lists['showwhoisonline'] = JHTML::_('select.genericlist', $yesno, 'cfg_showwhoisonline', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showwhoisonline); $lists['showpopsubjectstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showpopsubjectstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showpopsubjectstats); $lists['showgenstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showgenstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showgenstats); $lists['showpopuserstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showpopuserstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showpopuserstats); $lists['subscriptionschecked'] = JHTML::_('select.genericlist', $yesno, 'cfg_subscriptionschecked', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->subscriptionschecked); $lists['allowfavorites'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowfavorites', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowfavorites); $lists['mailmod'] = JHTML::_('select.genericlist', $yesno, 'cfg_mailmod', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->mailmod); $lists['mailadmin'] = JHTML::_('select.genericlist', $yesno, 'cfg_mailadmin', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->mailadmin); $lists['showemail'] = JHTML::_('select.genericlist', $yesno, 'cfg_showemail', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showemail); $lists['askemail'] = JHTML::_('select.genericlist', $yesno, 'cfg_askemail', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->askemail); $lists['changename'] = JHTML::_('select.genericlist', $yesno, 'cfg_changename', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->changename); $lists['allowavatarupload'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowavatarupload', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowavatarupload); $lists['allowavatargallery'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowavatargallery', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowavatargallery); $lists['showstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showstats); $lists['showranking'] = JHTML::_('select.genericlist', $yesno, 'cfg_showranking', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showranking); $lists['rankimages'] = JHTML::_('select.genericlist', $yesno, 'cfg_rankimages', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->rankimages); $lists['username'] = JHTML::_('select.genericlist', $yesno, 'cfg_username', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->username); $lists['shownew'] = JHTML::_('select.genericlist', $yesno, 'cfg_shownew', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->shownew); $lists['allowimageupload'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowimageupload', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowimageupload); $lists['allowimageregupload'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowimageregupload', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowimageregupload); $lists['allowfileupload'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowfileupload', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowfileupload); $lists['allowfileregupload'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowfileregupload', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowfileregupload); $lists['editmarkup'] = JHTML::_('select.genericlist', $yesno, 'cfg_editmarkup', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->editmarkup); $lists['showkarma'] = JHTML::_('select.genericlist', $yesno, 'cfg_showkarma', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showkarma); $lists['enablepdf'] = JHTML::_('select.genericlist', $yesno, 'cfg_enablepdf', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->enablepdf); $lists['enableforumjump'] = JHTML::_('select.genericlist', $yesno, 'cfg_enableforumjump', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->enableforumjump); $lists['userlist_online'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_online', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_online); $lists['userlist_avatar'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_avatar', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_avatar); $lists['userlist_name'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_name', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_name); $lists['userlist_username'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_username', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_username); $lists['userlist_posts'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_posts', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_posts); $lists['userlist_karma'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_karma', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_karma); $lists['userlist_email'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_email', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_email); $lists['userlist_usertype'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_usertype', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_usertype); $lists['userlist_joindate'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_joindate', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_joindate); $lists['userlist_lastvisitdate'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_lastvisitdate', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_lastvisitdate); $lists['userlist_userhits'] = JHTML::_('select.genericlist', $yesno, 'cfg_userlist_userhits', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_userhits); $lists['usernamechange'] = JHTML::_('select.genericlist', $yesno, 'cfg_usernamechange', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->usernamechange); $lists['reportmsg'] = JHTML::_('select.genericlist', $yesno, 'cfg_reportmsg', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->reportmsg); $lists['captcha'] = JHTML::_('select.genericlist', $yesno, 'cfg_captcha', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->captcha); $lists['mailfull'] = JHTML::_('select.genericlist', $yesno, 'cfg_mailfull', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->mailfull); // New for 1.0.5 $lists['showspoilertag'] = JHTML::_('select.genericlist', $yesno, 'cfg_showspoilertag', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showspoilertag); $lists['showvideotag'] = JHTML::_('select.genericlist', $yesno, 'cfg_showvideotag', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showvideotag); $lists['showebaytag'] = JHTML::_('select.genericlist', $yesno, 'cfg_showebaytag', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showebaytag); $lists['trimlongurls'] = JHTML::_('select.genericlist', $yesno, 'cfg_trimlongurls', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->trimlongurls); $lists['autoembedyoutube'] = JHTML::_('select.genericlist', $yesno, 'cfg_autoembedyoutube', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->autoembedyoutube); $lists['autoembedebay'] = JHTML::_('select.genericlist', $yesno, 'cfg_autoembedebay', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->autoembedebay); $lists['highlightcode'] = JHTML::_('select.genericlist', $yesno, 'cfg_highlightcode', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->highlightcode); // New for 1.5.8 -> SEF $lists['sef'] = JHTML::_('select.genericlist', $yesno, 'cfg_sef', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->sef); $lists['sefcats'] = JHTML::_('select.genericlist', $yesno, 'cfg_sefcats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->sefcats); $lists['sefutf8'] = JHTML::_('select.genericlist', $yesno, 'cfg_sefutf8', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->sefutf8); // New for 1.6 -> Hide images and files for guests $lists['showimgforguest'] = JHTML::_('select.genericlist', $yesno, 'cfg_showimgforguest', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showimgforguest); $lists['showfileforguest'] = JHTML::_('select.genericlist', $yesno, 'cfg_showfileforguest', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showfileforguest); // New for 1.6 -> Check Image MIME types $lists['checkmimetypes'] = JHTML::_('select.genericlist', $yesno, 'cfg_checkmimetypes', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->checkmimetypes); //New for 1.6 -> Poll $lists['pollallowvoteone'] = JHTML::_('select.genericlist', $yesno, 'cfg_pollallowvoteone', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->pollallowvoteone); $lists['pollenabled'] = JHTML::_('select.genericlist', $yesno, 'cfg_pollenabled', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->pollenabled); $lists['showpoppollstats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showpoppollstats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showpoppollstats); $lists['pollresultsuserslist'] = JHTML::_('select.genericlist', $yesno, 'cfg_pollresultsuserslist', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->pollresultsuserslist); //New for 1.6 -> Choose ordering system $ordering_system_list = array(); $ordering_system_list[] = JHTML::_('select.option', 'mesid', JText::_('COM_KUNENA_COM_A_ORDERING_SYSTEM_NEW')); $ordering_system_list[] = JHTML::_('select.option', 'replyid', JText::_('COM_KUNENA_COM_A_ORDERING_SYSTEM_OLD')); $lists['ordering_system'] = JHTML::_('select.genericlist', $ordering_system_list, 'cfg_ordering_system', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->ordering_system); // New for 1.6: datetime require_once KUNENA_PATH_LIB . '/kunena.timeformat.class.php'; $dateformatlist = array(); $time = CKunenaTimeformat::internalTime() - 80000; $dateformatlist[] = JHTML::_('select.option', 'none', JText::_('COM_KUNENA_OPTION_DATEFORMAT_NONE')); $dateformatlist[] = JHTML::_('select.option', 'ago', CKunenaTimeformat::showDate($time, 'ago')); $dateformatlist[] = JHTML::_('select.option', 'datetime_today', CKunenaTimeformat::showDate($time, 'datetime_today')); $dateformatlist[] = JHTML::_('select.option', 'datetime', CKunenaTimeformat::showDate($time, 'datetime')); $lists['post_dateformat'] = JHTML::_('select.genericlist', $dateformatlist, 'cfg_post_dateformat', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->post_dateformat); $lists['post_dateformat_hover'] = JHTML::_('select.genericlist', $dateformatlist, 'cfg_post_dateformat_hover', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->post_dateformat_hover); // New for 1.6: hide ip $lists['hide_ip'] = JHTML::_('select.genericlist', $yesno, 'cfg_hide_ip', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->hide_ip); //New for 1.6: choose if you want that ghost message box checked by default $lists['boxghostmessage'] = JHTML::_('select.genericlist', $yesno, 'cfg_boxghostmessage', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->boxghostmessage); // New for 1.6 -> Thank you button $lists['showthankyou'] = JHTML::_('select.genericlist', $yesno, 'cfg_showthankyou', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showthankyou); kimport('integration.integration'); $lists['integration_access'] = KunenaIntegration::getConfigOptions('access'); $lists['integration_activity'] = KunenaIntegration::getConfigOptions('activity'); $lists['integration_avatar'] = KunenaIntegration::getConfigOptions('avatar'); $lists['integration_login'] = KunenaIntegration::getConfigOptions('login'); $lists['integration_profile'] = KunenaIntegration::getConfigOptions('profile'); $lists['integration_private'] = KunenaIntegration::getConfigOptions('private'); $listUserDeleteMessage = array(); $listUserDeleteMessage[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_A_DELETEMESSAGE_NOT_ALLOWED')); $listUserDeleteMessage[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_A_DELETEMESSAGE_ALLOWED_IF_REPLIES')); $listUserDeleteMessage[] = JHTML::_('select.option', '2', JText::_('COM_KUNENA_A_DELETEMESSAGE_ALWAYS_ALLOWED')); $lists['userdeletetmessage'] = JHTML::_('select.genericlist', $listUserDeleteMessage, 'cfg_userdeletetmessage', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userdeletetmessage); $latestCategoryIn = array(); $latestCategoryIn[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_COM_A_LATESTCATEGORY_IN_HIDE')); $latestCategoryIn[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_COM_A_LATESTCATEGORY_IN_SHOW')); $lists['latestcategory_in'] = JHTML::_('select.genericlist', $latestCategoryIn, 'cfg_latestcategory_in', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->latestcategory_in); $optionsShowHide = array(); $optionsShowHide[] = JHTML::_('select.option', 0, JText::_('COM_KUNENA_COM_A_LATESTCATEGORY_SHOWALL')); $lists['latestcategory'] = CKunenaTools::KSelectList('cfg_latestcategory[]', $optionsShowHide, 'class="inputbox" multiple="multiple"', false, 'latestcategory', explode(',', $kunena_config->latestcategory)); $lists['topicicons'] = JHTML::_('select.genericlist', $yesno, 'cfg_topicicons', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->topicicons); $lists['onlineusers'] = JHTML::_('select.genericlist', $yesno, 'cfg_onlineusers', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->onlineusers); $lists['debug'] = JHTML::_('select.genericlist', $yesno, 'cfg_debug', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->debug); $lists['showbannedreason'] = JHTML::_('select.genericlist', $yesno, 'cfg_showbannedreason', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showbannedreason); $lists['version_check'] = JHTML::_('select.genericlist', $yesno, 'cfg_version_check', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->version_check); $lists['showpopthankyoustats'] = JHTML::_('select.genericlist', $yesno, 'cfg_showpopthankyoustats', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->showpopthankyoustats); $seerestoredeleted = array(); $seerestoredeleted[] = JHTML::_('select.option', 2, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_NOBODY')); $seerestoredeleted[] = JHTML::_('select.option', 0, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_ADMINS')); $seerestoredeleted[] = JHTML::_('select.option', 1, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_ADMINSMODS')); $lists['mod_see_deleted'] = JHTML::_('select.genericlist', $seerestoredeleted, 'cfg_mod_see_deleted', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->mod_see_deleted); $listBbcodeImgSecure = array(); $listBbcodeImgSecure[] = JHTML::_('select.option', 'text', JText::_('COM_KUNENA_COM_A_BBCODE_IMG_SECURE_OPTION_TEXT')); $listBbcodeImgSecure[] = JHTML::_('select.option', 'link', JText::_('COM_KUNENA_COM_A_BBCODE_IMG_SECURE_OPTION_LINK')); $listBbcodeImgSecure[] = JHTML::_('select.option', 'image', JText::_('COM_KUNENA_COM_A_BBCODE_IMG_SECURE_OPTION_IMAGE')); $lists['bbcode_img_secure'] = JHTML::_('select.genericlist', $listBbcodeImgSecure, 'cfg_bbcode_img_secure', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->bbcode_img_secure); $lists['listcat_show_moderators'] = JHTML::_('select.genericlist', $yesno, 'cfg_listcat_show_moderators', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->listcat_show_moderators); $showlightbox = $yesno; $showlightbox[] = JHTML::_('select.option', 2, JText::_('COM_KUNENA_A_LIGHTBOX_NO_JS')); $lists['lightbox'] = JHTML::_('select.genericlist', $showlightbox, 'cfg_lightbox', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->lightbox); $timesel[] = JHTML::_('select.option', 0, JText::_('COM_KUNENA_SHOW_LASTVISIT')); $timesel[] = JHTML::_('select.option', 4, JText::_('COM_KUNENA_SHOW_4_HOURS')); $timesel[] = JHTML::_('select.option', 8, JText::_('COM_KUNENA_SHOW_8_HOURS')); $timesel[] = JHTML::_('select.option', 12, JText::_('COM_KUNENA_SHOW_12_HOURS')); $timesel[] = JHTML::_('select.option', 24, JText::_('COM_KUNENA_SHOW_24_HOURS')); $timesel[] = JHTML::_('select.option', 48, JText::_('COM_KUNENA_SHOW_48_HOURS')); $timesel[] = JHTML::_('select.option', 168, JText::_('COM_KUNENA_SHOW_WEEK')); $timesel[] = JHTML::_('select.option', 720, JText::_('COM_KUNENA_SHOW_MONTH')); $timesel[] = JHTML::_('select.option', 8760, JText::_('COM_KUNENA_SHOW_YEAR')); // build the html select list $lists['show_list_time'] = JHTML::_('select.genericlist', $timesel, 'cfg_show_list_time', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->show_list_time); $sessiontimetype[] = JHTML::_('select.option', 0, JText::_('COM_KUNENA_SHOW_SESSION_TYPE_ALL')); $sessiontimetype[] = JHTML::_('select.option', 1, JText::_('COM_KUNENA_SHOW_SESSION_TYPE_VALID')); $sessiontimetype[] = JHTML::_('select.option', 2, JText::_('COM_KUNENA_SHOW_SESSION_TYPE_TIME')); $lists['show_session_type'] = JHTML::_('select.genericlist', $sessiontimetype, 'cfg_show_session_type', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->show_session_type); $userlist_allowed = array(); $userlist_allowed[] = JHTML::_('select.option', '1', JText::_('COM_KUNENA_A_NO')); $userlist_allowed[] = JHTML::_('select.option', '0', JText::_('COM_KUNENA_A_YES')); $lists['userlist_allowed'] = JHTML::_('select.genericlist', $userlist_allowed, 'cfg_userlist_allowed', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_allowed); $lists['pubprofile'] = JHTML::_('select.genericlist', $yesno, 'cfg_pubprofile', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->pubprofile); $userlist_count_users[] = JHTML::_('select.option', 0, JText::_('COM_KUNENA_SHOW_USERLIST_COUNTUNSERS_ALL')); $userlist_count_users[] = JHTML::_('select.option', 1, JText::_('COM_KUNENA_SHOW_USERLIST_COUNTUNSERS_ACTIVATED_ACCOUNT')); $userlist_count_users[] = JHTML::_('select.option', 2, JText::_('COM_KUNENA_SHOW_USERLIST_COUNTUNSERS_ACTIVE')); $userlist_count_users[] = JHTML::_('select.option', 3, JText::_('COM_KUNENA_SHOW_USERLIST_COUNTUNSERS_NON_BLOCKED_USERS')); $lists['userlist_count_users'] = JHTML::_('select.genericlist', $userlist_count_users, 'cfg_userlist_count_users', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->userlist_count_users); // Added new options into K1.6.4 $lists['allowsubscriptions'] = JHTML::_('select.genericlist', $yesno, 'cfg_allowsubscriptions', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->allowsubscriptions); $category_subscriptions = array(); $category_subscriptions[] = JHTML::_('select.option', 'disabled', JText::_('COM_KUNENA_OPTION_CATEGORY_SUBSCRIPTIONS_DISABLED')); $category_subscriptions[] = JHTML::_('select.option', 'topic', JText::_('COM_KUNENA_OPTION_CATEGORY_SUBSCRIPTIONS_TOPIC')); $category_subscriptions[] = JHTML::_('select.option', 'post', JText::_('COM_KUNENA_OPTION_CATEGORY_SUBSCRIPTIONS_POST')); $lists['category_subscriptions'] = JHTML::_('select.genericlist', $category_subscriptions, 'cfg_category_subscriptions', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->category_subscriptions); $topic_subscriptions = array(); $topic_subscriptions[] = JHTML::_('select.option', 'disabled', JText::_('COM_KUNENA_OPTION_TOPIC_SUBSCRIPTIONS_DISABLED')); $topic_subscriptions[] = JHTML::_('select.option', 'first', JText::_('COM_KUNENA_OPTION_TOPIC_SUBSCRIPTIONS_FIRST')); $topic_subscriptions[] = JHTML::_('select.option', 'every', JText::_('COM_KUNENA_OPTION_TOPIC_SUBSCRIPTIONS_EVERY')); $lists['topic_subscriptions'] = JHTML::_('select.genericlist', $topic_subscriptions, 'cfg_topic_subscriptions', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->topic_subscriptions); // Added new options into K1.6.6 $email_recipient_privacy = array(); $email_recipient_privacy[] = JHTML::_('select.option', 'to', JText::_('COM_KUNENA_A_SUBSCRIPTIONS_EMAIL_RECIPIENT_PRIVACY_OPTION_TO')); $email_recipient_privacy[] = JHTML::_('select.option', 'cc', JText::_('COM_KUNENA_A_SUBSCRIPTIONS_EMAIL_RECIPIENT_PRIVACY_OPTION_CC')); $email_recipient_privacy[] = JHTML::_('select.option', 'bcc', JText::_('COM_KUNENA_A_SUBSCRIPTIONS_EMAIL_RECIPIENT_PRIVACY_OPTION_BCC')); $lists['email_recipient_privacy'] = JHTML::_('select.genericlist', $email_recipient_privacy, 'cfg_email_recipient_privacy', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->email_recipient_privacy); $recaptcha_theme = array(); $recaptcha_theme[] = JHTML::_('select.option', 'red', JText::_('COM_KUNENA_A_RECAPTCHA_THEME_OPTION_RED')); $recaptcha_theme[] = JHTML::_('select.option', 'white', JText::_('COM_KUNENA_A_RECAPTCHA_THEME_OPTION_WHITE')); $recaptcha_theme[] = JHTML::_('select.option', 'blackglass', JText::_('COM_KUNENA_A_RECAPTCHA_THEME_OPTION_BLACK')); $recaptcha_theme[] = JHTML::_('select.option', 'clean', JText::_('COM_KUNENA_A_RECAPTCHA_THEME_OPTION_CLEAN')); $lists['recaptcha_theme'] = JHTML::_('select.genericlist', $recaptcha_theme, 'cfg_recaptcha_theme', 'class="inputbox" size="1"', 'value', 'text', $kunena_config->recaptcha_theme); html_Kunena::showConfig($kunena_config, $lists, $option); }
<?php $k = 0; if (!empty($this->announcements)) { foreach ($this->announcements as $ann) { $k = 1 - $k; ?> <tr class="krow<?php echo $k; ?> "> <td class="kcol-first kcol-annid"><?php echo intval($ann->id); ?> </td> <td class="kcol-mid kcol-anndate"><?php echo CKunenaTimeformat::showDate($ann->created, 'date_today'); ?> </td> <td class="kcol-mid kcol-anntitle"> <div class="overflow"><?php echo CKunenaLink::GetAnnouncementLink('read', intval($ann->id), KunenaParser::parseText($ann->title), KunenaParser::parseText($ann->title), 'follow'); ?> </div> </td> <?php if ($this->canEdit) { ?> <td class="kcol-mid kcol-annpublish"> <?php if ($ann->published > 0) { echo JText::_('COM_KUNENA_ANN_PUBLISHED');
<?php echo CKunenaLink::GetProfileLink(intval($this->messages[$message->id]->userid), $useravatar); ?> </span> <?php } } ?> <!-- /Avatar --> <!-- By --> <span class="ktopic-posted-time" title="<?php echo CKunenaTimeformat::showDate($message->time, 'config_post_dateformat_hover'); ?> "> <?php echo JText::_('COM_KUNENA_POSTED_AT') . ' ' . CKunenaTimeformat::showDate($message->time, 'config_post_dateformat'); ?> </span> <?php if ($message->name) { ?> <br /> <span class="ktopic-by"><?php echo JText::_('COM_KUNENA_GEN_BY') . ' ' . CKunenaLink::GetProfileLink(intval($message->userid), $this->escape($message->name)); ?> </span> <?php } ?>
echo '<img src="'.$this->ktemplate->getImagePath('icons/lock_sm.png').'" alt="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" />'; } } ?> </li> <?php if ($this->params->get ( 'sh_firstcontentcharacter' )) : ?> <li class="klatest-preview-content"><?php echo JString::substr(KunenaParser::stripBBCode($item->message), '0', $this->params->get ( 'lengthcontentcharacters' )); ?></li> <?php endif; ?> <?php if ($this->params->get ( 'sh_category' )) : ?> <li class="klatest-cat"><?php echo JText::_ ( 'MOD_KUNENALATEST_IN_CATEGORY' ).' '.CKunenaLink::GetCategoryLink ( 'showcat', $item->catid, $item->catname ); ?></li> <?php endif; ?> <?php if ($this->params->get ( 'sh_author' )) : ?> <li class="klatest-author"><?php echo JText::_ ( 'MOD_KUNENALATEST_LAST_POST_BY' ) .' '. CKunenaLink::GetProfileLink ( $item->userid, $item->name ); ?></li> <?php endif; ?> <?php if ($this->params->get ( 'sh_time' )) : ?> <li class="klatest-posttime"><?php $override = $this->params->get ( 'dateformat' ); echo CKunenaTimeformat::showDate($this->params->get( 'choosemodel' ) == 'latestposts' ? $item->time : $item->lasttime, $override ? $override : 'config_post_dateformat');?></li> <?php endif; ?> </ul> </li> <?php } //end foreach ?> </ul> <?php if ($this->params->get ( 'sh_morelink' )): ?> <p class="klatest-more"><?php echo CKunenaLink::GetShowLatestLink ( JText::_ ( 'MOD_KUNENALATEST_MORE_LINK' ) , $this->latestdo ); ?></p> <?php endif; ?> <?php } else { echo JText::_('MOD_KUNENALATEST_OFFLINE'); } ?> </div>