Exemplo n.º 1
0
 public function displayAll()
 {
     if ($this->me->isAdmin()) {
         if ($this->config->board_offline) {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
         }
         if ($this->config->debug) {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
         }
     }
     if ($this->me->isBanned()) {
         $banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
         if (!$banned->isLifetime()) {
             $this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
         } else {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
         }
     }
     $this->state = $this->get('State');
     $this->ktemplate->initialize();
     if (JFactory::getApplication()->isAdmin()) {
         $this->displayLayout();
     } else {
         $this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
         include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
         if ($this->config->get('credits', 1)) {
             $this->poweredBy();
         }
     }
 }
Exemplo n.º 2
0
 /**
  * Prepare login display.
  *
  * @return boolean
  */
 protected function before()
 {
     parent::before();
     $login = KunenaLogin::getInstance();
     if (!$login->enabled()) {
         return false;
     }
     $this->me = KunenaUserHelper::getMyself();
     $this->name = $this->me->exists() ? 'Widget/Login/Logout' : 'Widget/Login/Login';
     $this->my = JFactory::getUser();
     if ($this->my->guest) {
         $this->registrationUrl = $login->getRegistrationUrl();
         $this->resetPasswordUrl = $login->getResetUrl();
         $this->remindUsernameUrl = $login->getRemindUrl();
         $this->rememberMe = $login->getRememberMe();
     } else {
         $this->lastvisitDate = KunenaDate::getInstance($this->my->lastvisitDate);
         $private = KunenaFactory::getPrivateMessaging();
         if ($private) {
             $count = $private->getUnreadCount($this->me->userid);
             $this->inboxCount = $count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX');
             $this->pm_link = $private->getInboxURL();
         }
         // Display announcements.
         if ($this->me->isModerator()) {
             $this->announcementsUrl = KunenaForumAnnouncementHelper::getUrl('list');
         }
     }
     return true;
 }
Exemplo n.º 3
0
 public function displayAll()
 {
     if ($this->inLayout) {
         throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
     }
     if ($this->me->isAdmin()) {
         if ($this->config->board_offline) {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
         }
         if ($this->config->debug) {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
         }
     }
     if ($this->me->isBanned()) {
         $banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
         if (!$banned->isLifetime()) {
             $this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
         } else {
             $this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
         }
     }
     $this->state = $this->get('State');
     $this->ktemplate->initialize();
     $menu = $this->app->getMenu();
     $home = $menu->getItems('type', 'alias');
     $juricurrent = JURI::current();
     if (JFactory::getApplication()->isAdmin()) {
         $this->displayLayout();
     } elseif ($home) {
         $this->document->addHeadLink($juricurrent, 'canonical', 'rel', '');
         include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
     } else {
         $this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
         include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
         if ($this->config->get('credits', 1)) {
             $this->poweredBy();
         }
     }
 }
Exemplo n.º 4
0
 protected function _display()
 {
     // Load language files.
     KunenaFactory::loadLanguage();
     KunenaFactory::loadLanguage('com_kunena.templates');
     $this->params->def('greeting', 1);
     $this->document = JFactory::getDocument();
     $this->me = KunenaFactory::getUser();
     $token = JSession::getFormToken();
     $login = KunenaLogin::getInstance();
     if (!$this->me->exists()) {
         $this->type = 'login';
         $this->login = null;
         if ($login) {
             $this->lostPasswordUrl = $login->getResetURL();
             $this->lostUsernameUrl = $login->getRemindURL();
             $this->registerUrl = $login->getRegistrationURL();
             $this->remember = JPluginHelper::isEnabled('system', 'remember');
         }
     } else {
         $this->type = 'logout';
         $this->logout = null;
         $this->lastvisitDate = KunenaDate::getInstance($this->me->lastvisitDate);
         if ($login) {
             $this->logout = $login->getLogoutURL();
             $this->recentPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics', JText::_('MOD_KUNENALOGIN_RECENT'));
             $this->myPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics&layout=user&mode=default', JText::_('MOD_KUNENALOGIN_MYPOSTS'));
         }
         // Private messages
         $private = KunenaFactory::getPrivateMessaging();
         $this->privateMessages = '';
         if ($this->params->get('showmessage') && $private) {
             $count = $private->getUnreadCount($this->me->userid);
             $this->privateMessages = $private->getInboxLink($count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX'));
         }
     }
     $this->return = $this->getReturnURL();
     require JModuleHelper::getLayoutPath('mod_kunenalogin');
 }
Exemplo n.º 5
0
					?>
					<tr class="krow<?php echo ($i^=1)+1;?>">
						<td class="kcol-first kid">
							<?php echo $j; ?>
						</td>
						<td class="kcol-mid kbanned-user">
							<a href="#"><?php echo CKunenaLink::GetProfileLink ( intval($userban->userid) ); ?> </a>
						</td>
						<td class="kcol-mid kbanned-from">
							<span><?php echo $userban->blocked ? JText::_('COM_KUNENA_BAN_BANLEVEL_JOOMLA') : JText::_('COM_KUNENA_BAN_BANLEVEL_KUNENA'); ?></span>
						</td>
						<td class="kcol-mid kbanned-start">
							<span><?php echo KunenaDate::getInstance($userban->created_time)->toKunena('datetime'); ?></span>
						</td>
						<td class="kcol-mid kbanned-expire">
							<span><?php echo $userban->isLifetime() ? JText::_('COM_KUNENA_BAN_LIFETIME') : KunenaDate::getInstance($userban->expiration)->toKunena('datetime'); ?></span>
						</td>
					</tr>
					<?php endforeach; ?>
					<?php else : ?>
					<tr class="krow2">
						<td colspan="5" class="kcol-first">
							<?php echo JText::_('COM_KUNENA_BAN_NO_BANNED_USERS'); ?>
						</td>
					</tr>
					<?php endif; ?>
				</tbody>
			</table>
		</div>
	</div>
</div>
Exemplo n.º 6
0
 /**
  * @param null $tpl
  *
  * @throws Exception
  */
 protected function displayCommon($tpl = null)
 {
     $userid = JFactory::getApplication()->input->getInt('userid');
     $this->_db = JFactory::getDBO();
     $this->do = JFactory::getApplication()->input->getWord('layout');
     if (!$userid) {
         $this->user = JFactory::getUser();
     } else {
         $this->user = JFactory::getUser($userid);
     }
     if ($this->user->id == 0 || $this->me->userid == 0 && !$this->config->pubprofile) {
         $this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILEPAGE_NOT_ALLOWED_FOR_GUESTS'), 'notice');
         return;
     }
     $integration = KunenaFactory::getProfile();
     $activityIntegration = KunenaFactory::getActivityIntegration();
     $template = KunenaFactory::getTemplate();
     $this->params = $template->params;
     if (get_class($integration) == 'KunenaProfileNone') {
         $this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILE_DISABLED'), 'notice');
         return;
     }
     $this->allow = true;
     $this->profile = KunenaFactory::getUser($this->user->id);
     if (!$this->profile->exists()) {
         $this->profile->save();
     }
     if ($this->profile->userid == $this->me->userid) {
         if ($this->do != 'edit') {
             $this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_EDIT') . ' &raquo;', JText::_('COM_KUNENA_EDIT') . ' &raquo;', 'nofollow', 'edit', '');
         } else {
             $this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_BACK') . ' &raquo;', JText::_('COM_KUNENA_BACK') . ' &raquo;', 'nofollow', '', '');
         }
     }
     $this->name = $this->user->username;
     if ($this->config->showuserstats) {
         $this->rank_image = $this->profile->getRank(0, 'image');
         $this->rank_title = $this->profile->getRank(0, 'title');
         $this->posts = $this->profile->posts;
         $this->thankyou = $this->profile->thankyou;
         $this->userpoints = $activityIntegration->getUserPoints($this->profile->userid);
         $this->usermedals = $activityIntegration->getUserMedals($this->profile->userid);
     }
     if ($this->config->userlist_joindate || $this->me->isModerator()) {
         $this->registerdate = $this->user->registerDate;
     }
     if ($this->config->userlist_lastvisitdate || $this->me->isModerator()) {
         $this->lastvisitdate = $this->user->lastvisitDate;
     }
     if (!isset($this->lastvisitdate) || $this->lastvisitdate == "0000-00-00 00:00:00") {
         $this->lastvisitdate = null;
     }
     $this->avatarlink = $this->profile->getAvatarImage('kavatar', 'profile');
     $this->personalText = $this->profile->personalText;
     $this->signature = $this->profile->signature;
     $this->signatureHtml = KunenaHtmlParser::parseBBCode($this->signature, null, $this->config->maxsig);
     $this->localtime = KunenaDate::getInstance('now', $this->user->getParam('timezone', $this->app->get('offset', null)));
     try {
         $offset = new DateTimeZone($this->user->getParam('timezone', $this->app->get('offset', null)));
     } catch (Exception $e) {
         $offset = null;
     }
     $this->localtime->setTimezone($offset);
     $this->moderator = KunenaAccess::getInstance()->getModeratorStatus($this->profile);
     $this->admin = $this->profile->isAdmin();
     switch ($this->profile->gender) {
         case 1:
             $this->genderclass = 'male';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_MALE');
             break;
         case 2:
             $this->genderclass = 'female';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE');
             break;
         default:
             $this->genderclass = 'unknown';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN');
     }
     if ($this->profile->location) {
         $this->locationlink = '<a href="http://maps.google.com?q=' . $this->escape($this->profile->location) . '" target="_blank">' . $this->escape($this->profile->location) . '</a>';
     } else {
         $this->locationlink = JText::_('COM_KUNENA_LOCATION_UNKNOWN');
     }
     $this->online = $this->profile->isOnline();
     $this->showUnusedSocial = true;
     if (!preg_match("~^(?:f|ht)tps?://~i", $this->profile->websiteurl)) {
         $this->websiteurl = 'http://' . $this->profile->websiteurl;
     } else {
         $this->websiteurl = $this->profile->websiteurl;
     }
     $avatar = KunenaFactory::getAvatarIntegration();
     $this->editavatar = $avatar instanceof KunenaAvatarKunena ? true : false;
     $this->banInfo = KunenaUserBan::getInstanceByUserid($userid, true);
     $this->canBan = $this->banInfo->canBan();
     if ($this->config->showbannedreason) {
         $this->banReason = $this->banInfo->reason_public;
     }
     // Which tabs to show?
     $this->showUserPosts = true;
     $this->showSubscriptions = $this->config->allowsubscriptions && $this->me->userid == $this->profile->userid;
     $this->showFavorites = $this->config->allowfavorites && $this->me->userid == $this->profile->userid;
     $this->showThankyou = $this->config->showthankyou && $this->me->exists();
     $this->showUnapprovedPosts = $this->me->isAdmin() || KunenaAccess::getInstance()->getModeratorStatus();
     // || $this->me->userid == $this->profile->userid;
     $this->showAttachments = $this->canManageAttachments() && ($this->me->isModerator() || $this->me->userid == $this->profile->userid);
     $this->showBanManager = $this->me->isModerator() && $this->me->userid == $this->profile->userid;
     $this->showBanHistory = $this->me->isModerator() && $this->me->userid != $this->profile->userid;
     $this->showBanUser = $this->canBan;
     if ($this->me->userid != $this->profile->userid) {
         $this->profile->uhits++;
         $this->profile->save();
     }
     $private = KunenaFactory::getPrivateMessaging();
     if ($this->me->userid == $this->user->id) {
         $this->pmCount = $private->getUnreadCount($this->me->userid);
         $this->pmLink = $private->getInboxLink($this->pmCount ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $this->pmCount) : JText::_('COM_KUNENA_PMS_INBOX'));
     } else {
         $this->pmLink = $this->profile->profileIcon('private');
     }
     $this->_prepareDocument('common');
     $layout = $this->getLayout() != 'default' ? "User/{$this->getLayout()}" : 'User/Item';
     $this->render($layout, $tpl);
 }
Exemplo n.º 7
0
 /**
  * Return ban modification date.
  *
  * @return KunenaDate
  */
 public function getModificationDate()
 {
     return KunenaDate::getInstance($this->modified_time);
 }
Exemplo n.º 8
0
        ?>
"><?php 
        echo KunenaDate::getInstance($user->registerDate)->toKunena('datetime_today');
        ?>
</td>
					<?php 
    }
    ?>
					<?php 
    if ($this->config->userlist_lastvisitdate) {
        ?>
						<td class="kcol-mid" title="<?php 
        echo KunenaDate::getInstance($lastvisitDate)->toKunena('ago');
        ?>
"><?php 
        echo KunenaDate::getInstance($lastvisitDate)->toKunena('datetime_today');
        ?>
</td>
					<?php 
    }
    ?>
					<?php 
    if ($this->config->userlist_userhits) {
        ?>
						<td class="kcol-mid"><?php 
        echo $this->escape($profile->uhits);
        ?>
</td>
					<?php 
    }
    ?>
Exemplo n.º 9
0
?>

			<span class="ktopic-latest-post">
			<?php 
echo $this->getTopicLink($this->topic, 'last', JText::_('COM_KUNENA_GEN_LAST_POST'));
echo ' ' . JText::_('COM_KUNENA_BY') . ' ' . $this->topic->getLastPostAuthor()->getLink();
?>
			</span>
         </div>
         <div class="klatest-post-info">
			<span class="ktopic-date"  title="<?php 
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat_hover');
?>
">
				<?php 
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat');
?>
			</span>
		</div>
	</td>

<?php 
if (!empty($this->topicActions)) {
    ?>
	<td class="kcol-mid ktopicmoderation"><input class ="kcheck" type="checkbox" name="topics[<?php 
    echo $this->topic->id;
    ?>
]" value="1" /></td>
<?php 
}
?>
Exemplo n.º 10
0
    echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today');
    ?>
</span></li><?php 
}
?>
	<?php 
if (!empty($this->lastvisitdate)) {
    ?>
<li><strong><?php 
    echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE');
    ?>
:</strong> <span title="<?php 
    echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago');
    ?>
"><?php 
    echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today');
    ?>
</span></li><?php 
}
?>
	<li><strong><?php 
echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE');
?>
:</strong> GMT <?php 
echo $this->localtime->toTimezone();
?>
</li>
	<li><strong><?php 
echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME');
?>
:</strong> <?php 
Exemplo n.º 11
0
    $useravatar = $profile->getAvatarImage('klist-avatar', 'list');
    if ($useravatar) {
        ?>
					<span class="ktopic-latest-post-avatar"> <?php 
        echo $this->message->getAuthor()->getLink($useravatar);
        ?>
 </span>
				<?php 
    }
}
?>
			<span class="ktopic-posted-time" title="<?php 
echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat_hover');
?>
"> <?php 
echo JText::_('COM_KUNENA_POSTED_AT') . ' ' . KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat');
?>
&nbsp; </span>
			<?php 
if ($this->message->userid) {
    ?>
				<br />
				<span class="ktopic-by"><?php 
    echo JText::_('COM_KUNENA_BY') . ' ' . $this->message->getAuthor()->getLink();
    ?>
</span>
			<?php 
}
?>
		</div>
	</td>
Exemplo n.º 12
0
								<?php echo $this->profile->socialButton('msn', $this->showUnusedSocial) ?>
							</div>
							<div class="kiconrow">
								<?php echo $this->profile->socialButton('blogspot', $this->showUnusedSocial) ?>
								<?php echo $this->profile->socialButton('flickr', $this->showUnusedSocial) ?>
								<?php echo $this->profile->socialButton('bebo', $this->showUnusedSocial) ?>
							</div>
						</div>
						<div class="kprofile-rightcol1">
							<ul>
								<li><span class="kicon-profile kicon-profile-location"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION') ?>:</strong> <?php echo $this->locationlink ?></li>
								<li><span class="kicon-profile kicon-profile-gender-unknown"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER') ?>:</strong> <?php echo $this->gender ?></li>
								<li><span class="kicon-profile kicon-profile-birthdate"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE') ?>:</strong> <?php //echo KunenaDate::getInstance($this->profile->birthdate)->toKunena('date', 'ago', 'utc') ?></li>
							</ul>
						</div>
					</div>
					<div id="kprofile-leftcolbot">
						<div class="kprofile-leftcol2">
							<ul>
								<?php if ($this->config->showemail && (!$this->profile->hideEmail || $this->me->isModerator())) : ?><li><span class="kicon-profile kicon-profile-email"></span><?php echo JHTML::_('email.cloak', $this->user->email) ?></li><?php endif; ?>
								<?php if (!empty($this->profile->websiteurl)):?><li><span class="kicon-profile kicon-profile-website"></span><a href="http://<?php echo $this->escape($this->profile->websiteurl) ?>" target="_blank"><?php echo KunenaHtmlParser::parseText($this->profile->websitename) ?></a></li><?php endif ?>
								<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->registerdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
								<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->lastvisitdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
								<?php if (!empty($this->posts)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS') ?>:</strong> <?php echo intval($this->posts) ?></li><?php endif; ?>
								<?php if (!empty($this->userpoints)): ?><li><strong><?php echo JText::_('COM_KUNENA_AUP_POINTS') ?></strong> <?php echo intval($this->userpoints) ?></li><?php endif; ?>
								<?php if (!empty($this->thankyou)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_THANKYOU_RECEIVED') ?></strong> <?php echo intval($this->thankyou) ?></li><?php endif; ?>
								<?php if (!empty($this->pmLink)) : ?><li><?php echo $this->pmLink ?></li><?php endif ?>
								<?php if (!empty($this->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
							</ul>
						</div>
					</div>
Exemplo n.º 13
0
	$PMlink = $private->getInboxLink($PMCount ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $PMCount) : JText::_('COM_KUNENA_PMS_INBOX'));
} else {
	$PMlink = $this->profile->profileIcon('private');
}
?>
<?php if ($this->avatarlink) : ?>
<div class="kavatar-lg"><?php echo $this->avatarlink; ?></div>
<?php endif; ?>
<div id="kprofile-stats">
<ul>
	<?php if ( !empty($this->banReason) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BANINFO'); ?>:</strong> <?php echo $this->escape($this->banReason); ?></li><?php } ?>
	<li><span class="kicon-button kbuttononline-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span class="online-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span><?php echo $this->profile->isOnline(JText::_('COM_KUNENA_ONLINE'), JText::_('COM_KUNENA_OFFLINE')); ?></span></span></span></li>
	<?php if (!empty($this->usertype)): ?><li class="usertype"><?php echo $this->escape($this->usertype); ?></li><?php endif; ?>
	<?php if (!empty($this->rank_title)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_RANK'); ?>: </strong><?php echo $this->escape($this->rank_title); ?></li><?php endif; ?>
	<?php if (!empty($this->rank_image)): ?><li class="kprofile-rank"><?php echo $this->rank_image; ?></li><?php endif; ?>
	<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->registerdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
	<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
	<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE'); ?>:</strong> GMT <?php echo $this->localtime->toTimezone(); ?></li>
	<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME'); ?>:</strong> <?php echo $this->localtime->toKunena('time'); ?></li>
	<?php if (!empty($this->posts)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS'); ?>:</strong> <?php echo intval($this->posts); ?></li><?php endif; ?>
	<?php if (!empty($this->userpoints)): ?><li><strong><?php echo JText::_('COM_KUNENA_AUP_POINTS'); ?></strong> <?php echo intval($this->userpoints); ?></li><?php endif; ?>
	<?php if (!empty($this->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
	<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_PROFILEVIEW'); ?>:</strong> <?php echo intval($this->profile->uhits); ?></li>
	<li><?php echo $this->displayKarma(); ?></li>
	<?php if ($PMlink) {
			?>
	<li><?php echo $PMlink; ?></li>
	<?php  } ?>
	<?php if( !empty($this->personalText) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_ABOUTME'); ?>:</strong> <?php echo KunenaHtmlParser::parseText($this->personalText); ?></li><?php } ?>
</ul>
</div>
Exemplo n.º 14
0
 function fillTopicInfo($matches)
 {
     switch ($matches[1]) {
         case 'ROW':
             return $matches[2] . ($this->position & 1 ? 'odd' : 'even') . ($this->topic->ordering ? " {$matches[2]}sticky" : '');
         case 'TOPIC_ICON':
             return $this->topic->getIcon();
         case 'TOPIC_NEW_COUNT':
             return $this->topic->unread ? $this->getTopicLink($this->topic, 'unread', '<sup class="kindicator-new">(' . $this->topic->unread . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>') : '';
         case 'DATE':
             $date = new KunenaDate($matches[2]);
             return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover');
     }
 }
Exemplo n.º 15
0
										<?php
										if ($this->config->avataroncat > 0) :
											$useravatar = KunenaFactory::getUser((int)$last->last_post_userid)->getAvatarImage('klist-avatar', 'list');
											if ($useravatar) : ?>
										<li class="klatest-avatar"> <?php echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $useravatar ); ?></li>
										<?php endif; ?>
										<?php endif; ?>
										<li class="ktopic-title">
										<?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': '. CKunenaLink::GetThreadPageLink ( 'view', intval($last->id), intval($last->last_topic_id), intval($last->getLastPostLocation()), intval($this->config->messages_per_page), KunenaHtmlParser::parseText($last->last_topic_subject, 30), intval($last->last_post_id) );?>
										</li>

										<li class="ktopic-details">
										<?php
											echo JText::_('COM_KUNENA_BY') . ' ';
											echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $this->escape($last->last_post_guest_name) );
											echo KunenaDate::getInstance($last->last_post_time)->toSpan('config_post_dateformat','config_post_dateformat_hover');
										?>
										</li>
										</ul>
									</td>

									<?php else : ?>
									<td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?></td>
									<?php endif ?>
									<td class="kcategory-actions">
										<?php echo CKunenaLink::GetCategoryActionLink ( 'unsubscribe', $this->category->id, JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY'), 'nofollow', '', JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY_LONG'), '&userid='.$this->me->userid ); ?>
									</td>
								</tr>
							</tbody>
						</table>
					</li>
Exemplo n.º 16
0
 * @link http://www.kunena.org
 **/
defined ( '_JEXEC' ) or die ();

$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS') . ' - ' . $this->config->board_title);
?>
		<div id="kannounce">
			<h2 class="kheader">
				<a href="" title="<?php echo JText::_('COM_KUNENA_VIEW_COMMON_ANNOUNCE_LIST') ?>" rel="kannounce-detailsbox">
					<?php echo KunenaHtmlParser::parseText($this->announcement->title) ?>
				</a>
			</h2>
			<?php if ($this->canEdit) : ?>
			<div class="kactions">
				<?php echo CKunenaLink::GetAnnouncementLink( 'edit', $this->announcement->id, JText::_('COM_KUNENA_ANN_EDIT'), JText::_('COM_KUNENA_ANN_EDIT')); ?> |
				<?php echo CKunenaLink::GetAnnouncementLink( 'delete', $this->announcement->id, JText::_('COM_KUNENA_ANN_DELETE'), JText::_('COM_KUNENA_ANN_DELETE')); ?> |
				<?php echo CKunenaLink::GetAnnouncementLink( 'add',NULL, JText::_('COM_KUNENA_ANN_ADD'), JText::_('COM_KUNENA_ANN_ADD')); ?> |
				<?php echo CKunenaLink::GetAnnouncementLink( 'show', NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?>
			</div>
			<?php endif; ?>
			<div class="kdetailsbox" id="kannounce-detailsbox">
				<ul class="kheader-desc">
					<?php if ($this->announcement->showdate > 0) : ?>
					<li class="kannounce-date"><?php echo KunenaDate::getInstance($this->announcement->created)->toKunena('date_today') ?></li>
					<?php endif; ?>
					<li class="kannounce-desc"><p><?php echo !empty($this->announcement->description) ? KunenaHtmlParser::parseBBCode($this->announcement->description) : KunenaHtmlParser::parseBBCode($this->announcement->sdescription); ?></p></li>
				</ul>
			</div>
		</div>
		<?php echo $this->getModulePosition ( 'kunena_announcement' ) ?>
Exemplo n.º 17
0
?>
" href="https://twitter.com/<?php 
echo $this->user_name;
?>
/status/<?php 
echo $this->tweetid;
?>
">
					<time class="dt-updated" title="Time posted: <?php 
echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('ago');
?>
" datetime="<?php 
echo JFactory::getDate($this->tweet_created_at)->toISO8601();
?>
" pubdate=""><?php 
echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('datetime');
?>
</time>
				</a>
			</div>
		</div>
		<div class="footer customisable-border" data-scribe="component:footer">
			<span class="stats-narrow customisable-border">
				<span class="stats" data-scribe="component:stats">
					<a data-scribe="element:retweet_count" title="View Tweet on Twitter" href="https://twitter.com/<?php 
echo $this->user_screen_name;
?>
/status/<?php 
echo $this->tweetid;
?>
">
Exemplo n.º 18
0
                    }
                    ?>
			<?php 
                }
                ?>
			<div class="klatest-subject ks">
				<?php 
                echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': ' . $this->getLastPostLink($category);
                ?>
			</div>

			<div class="klatest-subject-by ks hidden-phone">
			<?php 
                echo JText::_('COM_KUNENA_BY') . ' ';
                echo $last->getLastPostAuthor()->getLink();
                echo '<br /><span class="nowrap" title="' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat_hover') . '">' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat') . '</span>';
                ?>
			</div>
			</td>

			<?php 
            } else {
                ?>
			<td class="kcol-mid kcol-knoposts"><?php 
                echo JText::_('COM_KUNENA_NO_POSTS');
                ?>
</td>
			<?php 
            }
            ?>
		</tr>
Exemplo n.º 19
0
				</div>
			</div>
		<?php 
    }
    ?>
	<?php 
}
?>
</div>

<?php 
if ($message->modified_by && $this->config->editmarkup) {
    $dateshown = $datehover = '';
    if ($message->modified_time) {
        $datehover = 'title="' . KunenaDate::getInstance($message->modified_time)->toKunena('config_post_dateformat_hover') . '"';
        $dateshown = KunenaDate::getInstance($message->modified_time)->toKunena('config_post_dateformat') . ' ';
    }
    ?>
<div class="alert alert-info hidden-phone" <?php 
    echo $datehover;
    ?>
>
	<?php 
    echo JText::_('COM_KUNENA_EDITING_LASTEDIT') . ': ' . $dateshown . JText::_('COM_KUNENA_BY') . ' ' . $message->getModifier()->getLink() . '.';
    ?>
	<?php 
    if ($message->modified_reason) {
        echo JText::_('COM_KUNENA_REASON') . ': ' . $this->escape($message->modified_reason);
    }
    ?>
</div>
Exemplo n.º 20
0
	<tbody>
		<tr class="krow1">
			<?php if ($this->me->getAvatarImage('welcome')) : ?>
			<td class="kprofilebox-left">
				<?php echo $this->me->getAvatarImage('kavatar', 'welcome'); ?>
			</td>
			<?php endif; ?>
			<td class="kprofileboxcnt">
				<ul class="kprofilebox-link">
					<?php if (!empty($this->privateMessagesLink)) : ?><li><?php echo $this->privateMessagesLink ?></li><?php endif ?>
					<?php if (!empty($this->editProfileLink)) : ?><li><?php echo $this->editProfileLink ?></li><?php endif ?>
					<?php if (!empty($this->announcementsLink)) : ?><li><?php echo $this->announcementsLink ?></li><?php endif ?>
				</ul>
				<ul class="kprofilebox-welcome">
					<li><?php echo JText::_('COM_KUNENA_PROFILEBOX_WELCOME'); ?>, <strong><?php echo $this->me->getLink() ?></strong></li>
					<li class="kms"><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTLOGIN'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('config_post_dateformat'); ?></span></li>
					<?php if ($this->logout->enabled()) : ?>
					<li>
					<form action="<?php echo KunenaRoute::_('index.php?option=com_kunena') ?>" method="post" name="login">
						<input type="hidden" name="view" value="user" />
						<input type="hidden" name="task" value="logout" />
						[K=TOKEN]

						<input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT'); ?>" />
					</form>
					</li>
					<?php endif; ?>
				</ul>
			</td>
			<!-- Module position -->
			<?php if ($this->moduleHtml) : ?>
Exemplo n.º 21
0
    echo $this->escape($this->message->subject);
    ?>
</h4>

					<div class="kmessage-timeby">

						<span class="kmessage-time" title="<?php 
    echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat_hover');
    ?>
">

							<?php 
    echo JText::_('COM_KUNENA_POSTED_AT');
    ?>
 <?php 
    echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat');
    ?>

						</span>

						<span class="kmessage-by">

							<?php 
    echo JText::_('COM_KUNENA_BY') . ' ' . $this->message->getAuthor()->getLink();
    ?>

						</span>

					</div>

					<div class="kmessage-avatar"><?php 
Exemplo n.º 22
0
 function fillTopicInfo($matches)
 {
     switch ($matches[1]) {
         case 'ROW':
             return $matches[2] . $this->row() . ($this->topic->ordering ? " {$matches[2]}sticky" : '');
         case 'TOPIC_ICON':
             return $this->topic->getIcon();
         case 'DATE':
             $date = new KunenaDate($matches[2]);
             return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover');
     }
 }
Exemplo n.º 23
0
 /**
  * @param string $name
  *
  * @return string
  */
 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) {
                 $date = new KunenaDate($this->birthdate);
                 if ($date->format('%Y') < 1902) {
                     break;
                 }
                 return '<span class="kicon-profile kicon-profile-birthdate" title="' . JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE') . ': ' . $this->birthdate->toKunena('date', 'GMT') . '"></span>';
             }
             break;
         case 'location':
             if ($this->location) {
                 return '<span class="kicon-profile kicon-profile-location" title="' . JText::_('COM_KUNENA_MYPROFILE_LOCATION') . ': ' . $this->escape($this->location) . '"></span>';
             }
             break;
         case 'website':
             $url = $this->websiteurl;
             if (!preg_match("~^(?:f|ht)tps?://~i", $this->websiteurl)) {
                 $url = 'http://' . $this->websiteurl;
             }
             if (!$this->websitename) {
                 $websitename = $this->websiteurl;
             } else {
                 $websitename = $this->websitename;
             }
             if ($this->websiteurl) {
                 return '<a href="' . $this->escape($url) . '" target="_blank"><span class="kicon-profile kicon-profile-website" title="' . JText::_('COM_KUNENA_MYPROFILE_WEBSITE') . ': ' . $this->escape($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 $this->getLink('<span class="profile" title="' . JText::_('COM_KUNENA_VIEW_PROFILE') . '"></span>');
             break;
     }
 }
Exemplo n.º 24
0
	<?php if ($show && isset($user->thankyou)) : ?>
		<li>
			<strong> <?php echo JText::_('COM_KUNENA_THANK_YOU_RECEIVED'); ?>:</strong>
			<span> <?php echo JText::sprintf((int)$user->thankyou); ?> </span>
		</li>
	<?php endif; ?>
	<?php if (isset($user->points)) : ?>
		<li>
			<strong> <?php echo JText::_('COM_KUNENA_AUP_POINTS'); ?> </strong>
			<span> <?php echo (int)$user->points; ?> </span>
		</li>
	<?php endif; ?>
	<?php if ($show && !empty($user->medals)) : ?>
		<li>
			<?php echo implode(' ', $user->medals); ?>
		</li>
	<?php endif; ?>
</div>
<div class="span3">
	<br>
	<li>
		<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER'); ?>:</strong>
		<span> <?php echo $user->getGender(); ?> </span>
	</li>
	<li>
		<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE'); ?>:</strong>
		<span> <?php echo KunenaDate::getInstance($user->birthdate)->toSpan('date', 'ago', 'utc'); ?> </span>
	</li>
</div>
<?php echo $this->subLayout('Widget/Module')->set('position', 'kunena_profile_horizontal'); ?>
Exemplo n.º 25
0
	protected function authoriseNotBanned($user) {
		$banned = $user->isBanned();
		if ($banned) {
			$banned = KunenaUserBan::getInstanceByUserid($user->userid, true);
			if (!$banned->isLifetime()) {
				return JText::sprintf ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena());
			} else {
				return JText::_ ( 'COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS' );
			}
		}
	}
Exemplo n.º 26
0
 function fillMessageInfo($matches)
 {
     switch ($matches[1]) {
         case 'ROW':
             return $this->mmm & 1 ? 'odd' : 'even';
         case 'DATE':
             $date = new KunenaDate($matches[2]);
             return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover');
         case 'NEW':
             return $this->message->isNew() ? 'new' : 'old';
         case 'REPLYNO':
             return $this->replynum;
         case 'MESSAGE_PROFILE':
             return $this->getMessageProfileBox();
         case 'MESSAGE_ACTIONS':
             return $this->getMessageActions();
     }
 }
Exemplo n.º 27
0
						<?php endif; ?>

						<?php if (!empty($this->email)) : ?>
						<li class="kdetails-joindate"><span><?php echo JText::_('COM_KUNENA_USRL_EMAIL') ?>:</span> <?php echo $this->email ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_usertype) : ?>
						<li class="kdetails-usertype"><span><?php echo JText::_('COM_KUNENA_USRL_USERTYPE') ?>:</span> <?php echo $this->escape($this->user->usertype) ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_joindate) : ?>
						<li class="kdetails-usertype"><span><?php echo JText::_('COM_KUNENA_USRL_JOIN_DATE') ?>:</span> <?php echo KunenaDate::getInstance($this->user->registerDate)->toSpan('date_today', 'ago') ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_lastvisitdate) : ?>
						<li class="kdetails-usertype"><span><?php echo JText::_('COM_KUNENA_USRL_LAST_LOGIN') ?>:</span> <?php echo KunenaDate::getInstance($this->user->lastvisitDate)->toSpan('date_today', 'ago') ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_posts) : ?>
						<li class="kdetails-posts"><span><?php echo JText::_('COM_KUNENA_USRL_POSTS') ?>:</span> <?php echo intval($this->user->posts); ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_userhits) : ?>
						<li class="kdetails-posts"><span><?php echo JText::_('COM_KUNENA_USRL_HITS') ?>:</span> <?php echo intval($this->user->uhits) ?></li>
						<?php endif; ?>

						<?php if ($this->config->userlist_karma) : ?>
						<li class="kdetails-karma"><span><?php echo JText::_('COM_KUNENA_USRL_KARMA') ?>:</span> <?php echo intval($this->user->karma); ?></li>
						<?php endif; ?>

						<?php if (!empty($this->user->websiteurl)):?>
Exemplo n.º 28
0
 function getConfiglists()
 {
     $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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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['disemoticons'] = JHtml::_('select.genericlist', $yesno, 'cfg_disemoticons', 'class="inputbox" size="1"', 'value', 'text', $this->config->disemoticons);
     $lists['regonly'] = JHtml::_('select.genericlist', $yesno, 'cfg_regonly', 'class="inputbox" size="1"', 'value', 'text', $this->config->regonly);
     $lists['board_offline'] = JHtml::_('select.genericlist', $yesno, 'cfg_board_offline', 'class="inputbox" size="1"', 'value', 'text', $this->config->board_offline);
     $lists['pubwrite'] = JHtml::_('select.genericlist', $yesno, 'cfg_pubwrite', 'class="inputbox" size="1"', 'value', 'text', $this->config->pubwrite);
     $lists['showhistory'] = JHtml::_('select.genericlist', $yesno, 'cfg_showhistory', 'class="inputbox" size="1"', 'value', 'text', $this->config->showhistory);
     $lists['showannouncement'] = JHtml::_('select.genericlist', $yesno, 'cfg_showannouncement', 'class="inputbox" size="1"', 'value', 'text', $this->config->showannouncement);
     $lists['avataroncat'] = JHtml::_('select.genericlist', $yesno, 'cfg_avataroncat', 'class="inputbox" size="1"', 'value', 'text', $this->config->avataroncat);
     $lists['showchildcaticon'] = JHtml::_('select.genericlist', $yesno, 'cfg_showchildcaticon', 'class="inputbox" size="1"', 'value', 'text', $this->config->showchildcaticon);
     $lists['showuserstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showuserstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showuserstats);
     $lists['showwhoisonline'] = JHtml::_('select.genericlist', $yesno, 'cfg_showwhoisonline', 'class="inputbox" size="1"', 'value', 'text', $this->config->showwhoisonline);
     $lists['showpopsubjectstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showpopsubjectstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showpopsubjectstats);
     $lists['showgenstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showgenstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showgenstats);
     $lists['showpopuserstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showpopuserstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showpopuserstats);
     $lists['allowsubscriptions'] = JHtml::_('select.genericlist', $yesno, 'cfg_allowsubscriptions', 'class="inputbox" size="1"', 'value', 'text', $this->config->allowsubscriptions);
     $lists['subscriptionschecked'] = JHtml::_('select.genericlist', $yesno, 'cfg_subscriptionschecked', 'class="inputbox" size="1"', 'value', 'text', $this->config->subscriptionschecked);
     $lists['allowfavorites'] = JHtml::_('select.genericlist', $yesno, 'cfg_allowfavorites', 'class="inputbox" size="1"', 'value', 'text', $this->config->allowfavorites);
     $lists['showemail'] = JHtml::_('select.genericlist', $yesno, 'cfg_showemail', 'class="inputbox" size="1"', 'value', 'text', $this->config->showemail);
     $lists['askemail'] = JHtml::_('select.genericlist', $yesno, 'cfg_askemail', 'class="inputbox" size="1"', 'value', 'text', $this->config->askemail);
     $lists['allowavatarupload'] = JHtml::_('select.genericlist', $yesno, 'cfg_allowavatarupload', 'class="inputbox" size="1"', 'value', 'text', $this->config->allowavatarupload);
     $lists['allowavatargallery'] = JHtml::_('select.genericlist', $yesno, 'cfg_allowavatargallery', 'class="inputbox" size="1"', 'value', 'text', $this->config->allowavatargallery);
     $lists['showstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showstats);
     $lists['showranking'] = JHtml::_('select.genericlist', $yesno, 'cfg_showranking', 'class="inputbox" size="1"', 'value', 'text', $this->config->showranking);
     $lists['rankimages'] = JHtml::_('select.genericlist', $yesno, 'cfg_rankimages', 'class="inputbox" size="1"', 'value', 'text', $this->config->rankimages);
     $lists['username'] = JHtml::_('select.genericlist', $yesno, 'cfg_username', 'class="inputbox" size="1"', 'value', 'text', $this->config->username);
     $lists['shownew'] = JHtml::_('select.genericlist', $yesno, 'cfg_shownew', 'class="inputbox" size="1"', 'value', 'text', $this->config->shownew);
     $lists['editmarkup'] = JHtml::_('select.genericlist', $yesno, 'cfg_editmarkup', 'class="inputbox" size="1"', 'value', 'text', $this->config->editmarkup);
     $lists['showkarma'] = JHtml::_('select.genericlist', $yesno, 'cfg_showkarma', 'class="inputbox" size="1"', 'value', 'text', $this->config->showkarma);
     $lists['enableforumjump'] = JHtml::_('select.genericlist', $yesno, 'cfg_enableforumjump', 'class="inputbox" size="1"', 'value', 'text', $this->config->enableforumjump);
     $lists['userlist_online'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_online', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_online);
     $lists['userlist_avatar'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_avatar', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_avatar);
     $lists['userlist_posts'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_posts', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_posts);
     $lists['userlist_karma'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_karma', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_karma);
     $lists['userlist_email'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_email', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_email);
     $lists['userlist_joindate'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_joindate', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_joindate);
     $lists['userlist_lastvisitdate'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_lastvisitdate', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_lastvisitdate);
     $lists['userlist_userhits'] = JHtml::_('select.genericlist', $yesno, 'cfg_userlist_userhits', 'class="inputbox" size="1"', 'value', 'text', $this->config->userlist_userhits);
     $lists['reportmsg'] = JHtml::_('select.genericlist', $yesno, 'cfg_reportmsg', 'class="inputbox" size="1"', 'value', 'text', $this->config->reportmsg);
     $captcha = array();
     $captcha[] = JHtml::_('select.option', '-1', JText::_('COM_KUNENA_CONFIGURATION_OPTION_CAPTCHA_NOBODY'));
     $captcha[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_CONFIGURATION_OPTION_CAPTCHA_REGISTERED_USERS'));
     $captcha[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_CONFIGURATION_OPTION_CAPTCHA_GUESTS_REGISTERED_USERS'));
     $lists['captcha'] = JHtml::_('select.genericlist', $captcha, 'cfg_captcha', 'class="inputbox" size="1"', 'value', 'text', $this->config->captcha);
     $lists['mailfull'] = JHtml::_('select.genericlist', $yesno, 'cfg_mailfull', 'class="inputbox" size="1"', 'value', 'text', $this->config->mailfull);
     // New for 1.0.5
     $lists['showspoilertag'] = JHtml::_('select.genericlist', $yesno, 'cfg_showspoilertag', 'class="inputbox" size="1"', 'value', 'text', $this->config->showspoilertag);
     $lists['showvideotag'] = JHtml::_('select.genericlist', $yesno, 'cfg_showvideotag', 'class="inputbox" size="1"', 'value', 'text', $this->config->showvideotag);
     $lists['showebaytag'] = JHtml::_('select.genericlist', $yesno, 'cfg_showebaytag', 'class="inputbox" size="1"', 'value', 'text', $this->config->showebaytag);
     $lists['trimlongurls'] = JHtml::_('select.genericlist', $yesno, 'cfg_trimlongurls', 'class="inputbox" size="1"', 'value', 'text', $this->config->trimlongurls);
     $lists['autoembedyoutube'] = JHtml::_('select.genericlist', $yesno, 'cfg_autoembedyoutube', 'class="inputbox" size="1"', 'value', 'text', $this->config->autoembedyoutube);
     $lists['autoembedebay'] = JHtml::_('select.genericlist', $yesno, 'cfg_autoembedebay', 'class="inputbox" size="1"', 'value', 'text', $this->config->autoembedebay);
     $lists['highlightcode'] = JHtml::_('select.genericlist', $yesno, 'cfg_highlightcode', 'class="inputbox" size="1"', 'value', 'text', $this->config->highlightcode);
     // New for 1.5.8 -> SEF
     $lists['sef'] = JHtml::_('select.genericlist', $yesno, 'cfg_sef', 'class="inputbox" size="1"', 'value', 'text', $this->config->sef);
     // New for 1.6 -> Hide images and files for guests
     $lists['showimgforguest'] = JHtml::_('select.genericlist', $yesno, 'cfg_showimgforguest', 'class="inputbox" size="1"', 'value', 'text', $this->config->showimgforguest);
     $lists['showfileforguest'] = JHtml::_('select.genericlist', $yesno, 'cfg_showfileforguest', 'class="inputbox" size="1"', 'value', 'text', $this->config->showfileforguest);
     // New for 1.6 -> Check Image MIME types
     $lists['checkmimetypes'] = JHtml::_('select.genericlist', $yesno, 'cfg_checkmimetypes', 'class="inputbox" size="1"', 'value', 'text', $this->config->checkmimetypes);
     //New for 1.6 -> Poll
     $lists['pollallowvoteone'] = JHtml::_('select.genericlist', $yesno, 'cfg_pollallowvoteone', 'class="inputbox" size="1"', 'value', 'text', $this->config->pollallowvoteone);
     $lists['pollenabled'] = JHtml::_('select.genericlist', $yesno, 'cfg_pollenabled', 'class="inputbox" size="1"', 'value', 'text', $this->config->pollenabled);
     $lists['showpoppollstats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showpoppollstats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showpoppollstats);
     $lists['pollresultsuserslist'] = JHtml::_('select.genericlist', $yesno, 'cfg_pollresultsuserslist', 'class="inputbox" size="1"', 'value', 'text', $this->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', $this->config->ordering_system);
     // New for 1.6: datetime
     $dateformatlist = array();
     $time = KunenaDate::getInstance(time() - 80000);
     $dateformatlist[] = JHtml::_('select.option', 'none', JText::_('COM_KUNENA_OPTION_DATEFORMAT_NONE'));
     $dateformatlist[] = JHtml::_('select.option', 'ago', $time->toKunena('ago'));
     $dateformatlist[] = JHtml::_('select.option', 'datetime_today', $time->toKunena('datetime_today'));
     $dateformatlist[] = JHtml::_('select.option', 'datetime', $time->toKunena('datetime'));
     $lists['post_dateformat'] = JHtml::_('select.genericlist', $dateformatlist, 'cfg_post_dateformat', 'class="inputbox" size="1"', 'value', 'text', $this->config->post_dateformat);
     $lists['post_dateformat_hover'] = JHtml::_('select.genericlist', $dateformatlist, 'cfg_post_dateformat_hover', 'class="inputbox" size="1"', 'value', 'text', $this->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', $this->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', $this->config->boxghostmessage);
     // New for 1.6 -> Thank you button
     $lists['showthankyou'] = JHtml::_('select.genericlist', $yesno, 'cfg_showthankyou', 'class="inputbox" size="1"', 'value', 'text', $this->config->showthankyou);
     $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', $this->config->userdeletetmessage);
     $latestCategoryIn = array();
     $latestCategoryIn[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_A_LATESTCATEGORY_IN_HIDE'));
     $latestCategoryIn[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_A_LATESTCATEGORY_IN_SHOW'));
     $lists['latestcategory_in'] = JHtml::_('select.genericlist', $latestCategoryIn, 'cfg_latestcategory_in', 'class="inputbox" size="1"', 'value', 'text', $this->config->latestcategory_in);
     $optionsShowHide = array(JHtml::_('select.option', 0, JText::_('COM_KUNENA_COM_A_LATESTCATEGORY_SHOWALL')));
     $params = array('sections' => false, 'action' => 'read');
     $lists['latestcategory'] = JHtml::_('kunenaforum.categorylist', 'cfg_latestcategory[]', 0, $optionsShowHide, $params, 'class="inputbox" multiple="multiple"', 'value', 'text', explode(',', $this->config->latestcategory), 'latestcategory');
     $lists['topicicons'] = JHtml::_('select.genericlist', $yesno, 'cfg_topicicons', 'class="inputbox" size="1"', 'value', 'text', $this->config->topicicons);
     $lists['debug'] = JHtml::_('select.genericlist', $yesno, 'cfg_debug', 'class="inputbox" size="1"', 'value', 'text', $this->config->debug);
     $lists['showbannedreason'] = JHtml::_('select.genericlist', $yesno, 'cfg_showbannedreason', 'class="inputbox" size="1"', 'value', 'text', $this->config->showbannedreason);
     $lists['time_to_create_page'] = JHtml::_('select.genericlist', $yesno, 'cfg_time_to_create_page', 'class="inputbox" size="1"', 'value', 'text', $this->config->time_to_create_page);
     $lists['showpopthankyoustats'] = JHtml::_('select.genericlist', $yesno, 'cfg_showpopthankyoustats', 'class="inputbox" size="1"', 'value', 'text', $this->config->showpopthankyoustats);
     $seerestoredeleted = array();
     $seerestoredeleted[] = JHtml::_('select.option', 2, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_NOBODY'));
     $seerestoredeleted[] = JHtml::_('select.option', 1, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_ADMINSMODS'));
     $seerestoredeleted[] = JHtml::_('select.option', 0, JText::_('COM_KUNENA_A_SEE_RESTORE_DELETED_ADMINS'));
     $lists['mod_see_deleted'] = JHtml::_('select.genericlist', $seerestoredeleted, 'cfg_mod_see_deleted', 'class="inputbox" size="1"', 'value', 'text', $this->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', $this->config->bbcode_img_secure);
     $lists['listcat_show_moderators'] = JHtml::_('select.genericlist', $yesno, 'cfg_listcat_show_moderators', 'class="inputbox" size="1"', 'value', 'text', $this->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', $this->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', $this->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', $this->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', $this->config->userlist_allowed);
     $lists['pubprofile'] = JHtml::_('select.genericlist', $yesno, 'cfg_pubprofile', 'class="inputbox" size="1"', 'value', 'text', $this->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', $this->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', $this->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', $this->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', $this->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', $this->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', $this->config->recaptcha_theme);
     // Added new options into Kunena 2.0.0
     $lists['keywords'] = JHtml::_('select.genericlist', $yesno, 'cfg_keywords', 'class="inputbox" size="1"', 'value', 'text', $this->config->keywords);
     $lists['userkeywords'] = JHtml::_('select.genericlist', $yesno, 'cfg_userkeywords', 'class="inputbox" size="1"', 'value', 'text', $this->config->userkeywords);
     $uploads = array();
     $uploads[] = JHtml::_('select.option', 'everybody', JText::_('COM_KUNENA_EVERYBODY'));
     $uploads[] = JHtml::_('select.option', 'registered', JText::_('COM_KUNENA_REGISTERED_USERS'));
     $uploads[] = JHtml::_('select.option', 'moderator', JText::_('COM_KUNENA_MODERATORS'));
     $uploads[] = JHtml::_('select.option', 'admin', JText::_('COM_KUNENA_ADMINS'));
     $uploads[] = JHtml::_('select.option', '', JText::_('COM_KUNENA_NOBODY'));
     $lists['image_upload'] = JHtml::_('select.genericlist', $uploads, 'cfg_image_upload', 'class="inputbox" size="1"', 'value', 'text', $this->config->image_upload);
     $lists['file_upload'] = JHtml::_('select.genericlist', $uploads, 'cfg_file_upload', 'class="inputbox" size="1"', 'value', 'text', $this->config->file_upload);
     $topic_layout[] = JHtml::_('select.option', 'flat', JText::_('COM_KUNENA_COM_A_TOPIC_LAYOUT_FLAT'));
     $topic_layout[] = JHtml::_('select.option', 'threaded', JText::_('COM_KUNENA_COM_A_TOPIC_LAYOUT_THREADED'));
     $topic_layout[] = JHtml::_('select.option', 'indented', JText::_('COM_KUNENA_COM_A_TOPIC_LAYOUT_INDENTED'));
     $lists['topic_layout'] = JHtml::_('select.genericlist', $topic_layout, 'cfg_topic_layout', 'class="inputbox" size="1"', 'value', 'text', $this->config->topic_layout);
     $lists['show_imgfiles_manage_profile'] = JHtml::_('select.genericlist', $yesno, 'cfg_show_imgfiles_manage_profile', 'class="inputbox" size="1"', 'value', 'text', $this->config->show_imgfiles_manage_profile);
     $lists['show_imgfiles_manage_profile'] = JHtml::_('select.genericlist', $yesno, 'cfg_show_imgfiles_manage_profile', 'class="inputbox" size="1"', 'value', 'text', $this->config->show_imgfiles_manage_profile);
     $lists['hold_guest_posts'] = JHtml::_('select.genericlist', $yesno, 'cfg_hold_guest_posts', 'class="inputbox" size="1"', 'value', 'text', $this->config->hold_guest_posts);
     $lists['pickup_category'] = JHtml::_('select.genericlist', $yesno, 'cfg_pickup_category', 'class="inputbox" size="1"', 'value', 'text', $this->config->pickup_category);
     $article_display[] = JHtml::_('select.option', 'full', JText::_('COM_KUNENA_COM_A_FULL_ARTICLE'));
     $article_display[] = JHtml::_('select.option', 'intro', JText::_('COM_KUNENA_COM_A_INTRO_ARTICLE'));
     $article_display[] = JHtml::_('select.option', 'link', JText::_('COM_KUNENA_COM_A_ARTICLE_LINK'));
     $lists['article_display'] = JHtml::_('select.genericlist', $article_display, 'cfg_article_display', 'class="inputbox" size="1"', 'value', 'text', $this->config->article_display);
     $lists['send_emails'] = JHtml::_('select.genericlist', $yesno, 'cfg_send_emails', 'class="inputbox" size="1"', 'value', 'text', $this->config->send_emails);
     $lists['enable_threaded_layouts'] = JHtml::_('select.genericlist', $yesno, 'cfg_enable_threaded_layouts', 'class="inputbox" size="1"', 'value', 'text', $this->config->enable_threaded_layouts);
     $default_sort = array();
     $default_sort[] = JHtml::_('select.option', 'asc', JText::_('COM_KUNENA_OPTION_DEFAULT_SORT_FIRST'));
     $default_sort[] = JHtml::_('select.option', 'desc', JText::_('COM_KUNENA_OPTION_DEFAULT_SORT_LAST'));
     $lists['default_sort'] = JHtml::_('select.genericlist', $default_sort, 'cfg_default_sort', 'class="inputbox" size="1"', 'value', 'text', $this->config->default_sort);
     $lists['fallback_english'] = JHtml::_('select.genericlist', $yesno, 'cfg_fallback_english', 'class="inputbox" size="1"', 'value', 'text', $this->config->fallback_english);
     $cache = array();
     $cachetime[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_CFG_OPTION_USE_GLOBAL'));
     $cachetime[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_CFG_OPTION_NO_CACHING'));
     $cachetime = array();
     $cachetime[] = JHtml::_('select.option', '60', JText::_('COM_KUNENA_CFG_OPTION_1_MINUTE'));
     $cachetime[] = JHtml::_('select.option', '120', JText::_('COM_KUNENA_CFG_OPTION_2_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '180', JText::_('COM_KUNENA_CFG_OPTION_3_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '300', JText::_('COM_KUNENA_CFG_OPTION_5_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '600', JText::_('COM_KUNENA_CFG_OPTION_10_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '900', JText::_('COM_KUNENA_CFG_OPTION_15_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '1800', JText::_('COM_KUNENA_CFG_OPTION_30_MINUTES'));
     $cachetime[] = JHtml::_('select.option', '3600', JText::_('COM_KUNENA_CFG_OPTION_60_MINUTES'));
     $lists['cache'] = JHtml::_('select.genericlist', $yesno, 'cfg_cache', 'class="inputbox" size="1"', 'value', 'text', $this->config->cache);
     $lists['cache_time'] = JHtml::_('select.genericlist', $cachetime, 'cfg_cache_time', 'class="inputbox" size="1"', 'value', 'text', $this->config->cache_time);
     // Added new options into Kunena 2.0.1
     $mailoptions = array();
     $mailoptions[] = JHtml::_('select.option', '-1', JText::_('COM_KUNENA_NO'));
     $mailoptions[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_CFG_OPTION_UNAPPROVED_POSTS'));
     $mailoptions[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_CFG_OPTION_ALL_NEW_POSTS'));
     $lists['mailmod'] = JHtml::_('select.genericlist', $mailoptions, 'cfg_mailmod', 'class="inputbox" size="1"', 'value', 'text', $this->config->mailmod);
     $lists['mailadmin'] = JHtml::_('select.genericlist', $mailoptions, 'cfg_mailadmin', 'class="inputbox" size="1"', 'value', 'text', $this->config->mailadmin);
     $lists['iptracking'] = JHtml::_('select.genericlist', $yesno, 'cfg_iptracking', 'class="inputbox" size="1"', 'value', 'text', $this->config->iptracking);
     // Added new options into Kunena 3.0.0
     $lists['autolink'] = JHtml::_('select.genericlist', $yesno, 'cfg_autolink', 'class="inputbox" size="1"', 'value', 'text', $this->config->autolink);
     $lists['access_component'] = JHtml::_('select.genericlist', $yesno, 'cfg_access_component', 'class="inputbox" size="1"', 'value', 'text', $this->config->access_component);
     $lists['componentUrl'] = preg_replace('|/+|', '/', JUri::root() . ($this->config->get('sef_rewrite') ? '' : 'index.php') . ($this->config->get('sef') ? '/component/kunena' : '?option=com_kunena'));
     // Added new options into Kunena 4.0.0
     $db = JFactory::getDbo();
     $query = $db->getQuery(true);
     $query->select('version')->from('#__kunena_version')->order('id');
     $db->setQuery($query, 0, 1);
     $lists['legacy_urls_version'] = $db->loadResult();
     $options = array();
     $options[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_NO'));
     $options[] = JHtml::_('select.option', '1', 'Kunena 1.x');
     $lists['legacy_urls_desc'] = version_compare($lists['legacy_urls_version'], '2.0', '<') ? JText::_('COM_KUNENA_CFG_LEGACY_URLS_DESC_YES') : JText::_('COM_KUNENA_CFG_LEGACY_URLS_DESC_NO');
     $lists['legacy_urls'] = JHtml::_('select.genericlist', $options, 'cfg_legacy_urls', 'class="inputbox" size="1"', 'value', 'text', $this->config->legacy_urls);
     $lists['attachment_protection'] = JHtml::_('select.genericlist', $yesno, 'cfg_attachment_protection', 'class="inputbox" size="1"', 'value', 'text', $this->config->attachment_protection);
     // Option to select if the stats link need to be showed for all users or only for registred users
     $lists['statslink_allowed'] = JHtml::_('select.genericlist', $yesno, 'cfg_statslink_allowed', 'class="inputbox" size="1"', 'value', 'text', $this->config->statslink_allowed);
     $lists['superadmin_userlist'] = JHtml::_('select.genericlist', $yesno, 'cfg_superadmin_userlist', 'class="inputbox" size="1"', 'value', 'text', $this->config->superadmin_userlist);
     $resizeoptions = array();
     $resizeoptions[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_RESIZE_RESIZE'));
     $resizeoptions[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_RESIZE_INTERPOLATION'));
     $resizeoptions[] = JHtml::_('select.option', '2', JText::_('COM_KUNENA_RESIZE_BICUBIC'));
     $lists['avatarresizemethod'] = JHtml::_('select.genericlist', $resizeoptions, 'cfg_avatarresizemethod', 'class="inputbox" size="1"', 'value', 'text', $this->config->avatarresizemethod);
     $lists['avatarcrop'] = JHtml::_('select.genericlist', $yesno, 'cfg_avatarcrop', 'class="inputbox" size="1"', 'value', 'text', $this->config->avatarcrop);
     $lists['user_report'] = JHtml::_('select.genericlist', $yesno, 'cfg_user_report', 'class="inputbox" size="1"', 'value', 'text', $this->config->user_report);
     $searchtime = array();
     $searchtime[] = JHtml::_('select.option', 1, JText::_('COM_KUNENA_CFG_SEARCH_DATE_YESTERDAY'));
     $searchtime[] = JHtml::_('select.option', 7, JText::_('COM_KUNENA_CFG_SEARCH_DATE_WEEK'));
     $searchtime[] = JHtml::_('select.option', 14, JText::_('COM_KUNENA_CFG_SEARCH_DATE_2WEEKS'));
     $searchtime[] = JHtml::_('select.option', 30, JText::_('COM_KUNENA_CFG_SEARCH_DATE_MONTH'));
     $searchtime[] = JHtml::_('select.option', 90, JText::_('COM_KUNENA_CFG_SEARCH_DATE_3MONTHS'));
     $searchtime[] = JHtml::_('select.option', 180, JText::_('COM_KUNENA_CFG_SEARCH_DATE_6MONTHS'));
     $searchtime[] = JHtml::_('select.option', 365, JText::_('COM_KUNENA_CFG_SEARCH_DATE_YEAR'));
     $searchtime[] = JHtml::_('select.option', 'all', JText::_('COM_KUNENA_CFG_SEARCH_DATE_ANY'));
     $lists['searchtime'] = JHtml::_('select.genericlist', $searchtime, 'cfg_searchtime', 'class="inputbox" size="1"', 'value', 'text', $this->config->searchtime);
     $lists['teaser'] = JHtml::_('select.genericlist', $yesno, 'cfg_teaser', 'class="inputbox" size="1"', 'value', 'text', $this->config->teaser);
     // List of eBay language code
     $ebay_language = array();
     $ebay_language[] = JHtml::_('select.option', '0', 'en-US');
     $ebay_language[] = JHtml::_('select.option', '2', 'en-CA');
     $ebay_language[] = JHtml::_('select.option', '3', 'en-GB');
     $ebay_language[] = JHtml::_('select.option', '15', 'en-AU');
     $ebay_language[] = JHtml::_('select.option', '16', 'de-AT');
     $ebay_language[] = JHtml::_('select.option', '23', 'fr-BE');
     $ebay_language[] = JHtml::_('select.option', '71', 'fr-FR');
     $ebay_language[] = JHtml::_('select.option', '77', 'de-DE');
     $ebay_language[] = JHtml::_('select.option', '101', 'it-IT');
     $ebay_language[] = JHtml::_('select.option', '123', 'nl-BE');
     $ebay_language[] = JHtml::_('select.option', '146', 'nl-NL');
     $ebay_language[] = JHtml::_('select.option', '186', 'es-ES');
     $ebay_language[] = JHtml::_('select.option', '193', 'ch-CH');
     $ebay_language[] = JHtml::_('select.option', '201', 'hk-HK');
     $ebay_language[] = JHtml::_('select.option', '203', 'in-IN');
     $ebay_language[] = JHtml::_('select.option', '205', 'ie-IE');
     $ebay_language[] = JHtml::_('select.option', '207', 'my-MY');
     $ebay_language[] = JHtml::_('select.option', '210', 'fr-CA');
     $ebay_language[] = JHtml::_('select.option', '211', 'ph-PH');
     $ebay_language[] = JHtml::_('select.option', '212', 'pl-PL');
     $ebay_language[] = JHtml::_('select.option', '216', 'sg-SG');
     $lists['ebay_language'] = JHtml::_('select.genericlist', $ebay_language, 'cfg_ebay_language', 'class="inputbox" size="1"', 'value', 'text', $this->config->ebay_language);
     $useredit = array();
     $useredit[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_NO'));
     $useredit[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_YES'));
     $useredit[] = JHtml::_('select.option', '2', JText::_('COM_KUNENA_A_EDIT_ALLOWED_IF_REPLIES'));
     $lists['useredit'] = JHtml::_('select.genericlist', $useredit, 'cfg_useredit', 'class="inputbox" size="1"', 'value', 'text', $this->config->useredit);
     return $lists;
 }
Exemplo n.º 29
0
	function displayLoginBox($tpl = null) {
		$my = JFactory::getUser ();
		$cache = JFactory::getCache('com_kunena', 'output');
		$cachekey = "{$this->template->name}.common.loginbox.u{$my->id}";
		$cachegroup = 'com_kunena.template';

		$contents = $cache->get($cachekey, $cachegroup);
		if (!$contents) {
			require_once KPATH_SITE . '/lib/kunena.link.class.php';

			$this->assign ( 'moduleHtml', $this->getModulePosition('kunena_profilebox'));

			$login = KunenaFactory::getLogin();
			if ($my->get ( 'guest' )) {
				$this->setLayout('login');
				if ($login) {
					$this->assignRef ( 'login', $login->getLoginFormFields() );
					$this->assignRef ( 'register', $login->getRegistrationURL() );
					$this->assignRef ( 'lostpassword', $login->getResetURL() );
					$this->assignRef ( 'lostusername', $login->getRemindURL() );
				}
			} else {
				$this->setLayout('logout');
				if ($login) $this->assignRef ( 'logout', $login->getLogoutFormFields() );
				$this->lastvisitDate = KunenaDate::getInstance($this->me->lastvisitDate);

				// Private messages
				$private = KunenaFactory::getPrivateMessaging();
				if ($private) {
					$count = $private->getUnreadCount($this->me->userid);
					$this->assign ( 'privateMessagesLink', $private->getInboxLink($count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX')));
				}

				// TODO: Edit profile (need to get link to edit page, even with integration)
				//$this->assign ( 'editProfileLink', '<a href="' . CKunenaLink::GetAnnouncementURL ( 'show' ).'">'. JText::_('COM_KUNENA_PROFILE_EDIT').'</a>');

				// Announcements
				if ( $this->me->isModerator()) {
					$this->assign ( 'announcementsLink', '<a href="' . CKunenaLink::GetAnnouncementURL ( 'show' ).'">'. JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS').'</a>');
				}

			}
			$contents = $this->loadTemplate($tpl);
			if (JError::isError($contents)) {
				return $contents;
			}
			$cache->store($contents, $cachekey, $cachegroup);
		}
		$contents = preg_replace_callback('|\[K=(\w+)(?:\:([\w-_]+))?\]|', array($this, 'fillLoginBoxInfo'), $contents);
		echo $contents;
	}
Exemplo n.º 30
0
							<b>✔</b>
						</span>
					<?php endif; ?>
				</span>
				<span class="p-nickname" data-scribe="element:screen_name" dir="ltr">
					@<b><?php echo $this->user_screen_name ?></b>
				</span>
			</a>
		</div>
		<div class="content e-entry-content" data-scribe="component:tweet">
			<p class="e-entry-title">
			<?php echo $this->tweet_text ?>
			</p>
			<div class="dateline collapsible-container">
				<a class="u-url customisable-highlight long-permalink" data-scribe="element:full_timestamp" data-datetime="<?php echo JFactory::getDate($this->tweet_created_at)->toISO8601(); ?>" href="https://twitter.com/<?php echo $this->user_name ?>/status/<?php echo $this->tweetid ?>">
					<time class="dt-updated" title="Time posted: <?php echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('ago'); ?>" datetime="<?php echo JFactory::getDate($this->tweet_created_at)->toISO8601(); ?>" pubdate=""><?php echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('datetime'); ?></time>
				</a>
			</div>
		</div>
		<div class="footer customisable-border" data-scribe="component:footer">
			<span class="stats-narrow customisable-border">
				<span class="stats" data-scribe="component:stats">
					<a data-scribe="element:retweet_count" title="View Tweet on Twitter" href="https://twitter.com/<?php echo $this->user_screen_name ?>/status/<?php echo $this->tweetid ?>">
						<span class="stats-retweets">
							<strong><?php echo $this->retweet_count; ?></strong>
							Retweets
						</span>
					</a>
					<a data-scribe="element:favorite_count" title="View Tweet on Twitter" href="https://twitter.com/<?php echo $this->user_screen_name ?>/status/<?php echo $this->tweetid ?>">
						<span class="stats-favorites">
							<strong><?php echo $this->favorite_count; ?></strong>