Example #1
0
 function displayDefault($tpl = null)
 {
     $this->memberList = array(array('name' => 'Matias', 'url' => 'http://www.kunena.org/people/63-matias/profile', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPER')), array('name' => 'coder4life', 'url' => 'http://www.kunena.org/people/10809-coder4life/profile', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPER')), array('name' => 'xillibit', 'url' => 'http://www.kunena.org/people/1288-xillibit/profile', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPER')), array('name' => 'fxstein', 'url' => 'http://www.kunena.org/people/64-fxstein/profile', 'title' => JText::sprintf('COM_KUNENA_CREDITS_DEVELOPER_SPECIAL', 'Yamaha Star VMax') . ' <a href="http://www.starVmax.com/forum/">www.starVmax.com/forum/</a>'), array('name' => 'severdia', 'url' => 'http://www.kunena.org/people/114-severdia/profile', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPER')), array('name' => '810', 'url' => 'http://www.kunena.org/people/634-810/profile', 'title' => JText::_('COM_KUNENA_CREDITS_CONTRIBUTOR')), array('name' => 'svanschu', 'url' => 'http://www.kunena.org/people/2171-lda/profile', 'title' => JText::_('COM_KUNENA_CREDITS_CONTRIBUTOR')), array('name' => 'LittleJohn', 'url' => 'http://www.kunena.org/people/10133-littlejohn/profile', 'title' => JText::_('COM_KUNENA_CREDITS_CONTRIBUTOR')), array('name' => 'sozzled', 'url' => 'http://www.kunena.org/people/997-sozzled/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')), array('name' => 'Mortti', 'url' => 'http://www.kunena.org/people/151-mortti/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')), array('name' => 'Rich', 'url' => 'http://www.kunena.org/people/2198-rich/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')), array('name' => 'GoremanX', 'url' => 'http://www.kunena.org/people/1362-goremanx/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')), array('name' => 'CheechDogg', 'url' => 'http://www.kunena.org/people/9085-cheechdogg/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')), array('name' => 'Jiminimonka', 'url' => 'http://www.kunena.org/people/26335-jiminimonka/profile', 'title' => JText::_('COM_KUNENA_CREDITS_MODERATOR')));
     $this->thanks = JText::sprintf('COM_KUNENA_CREDITS_THANKS_PART_LONG', 'Beat', 'BoardBoss', 'madLyfe', 'infograf768', 'Joomla!', '<a href="http://www.kunena.org" target="_blank" rel="follow">www.kunena.org</a>') . ' ' . JText::_('COM_KUNENA_CREDITS_THANKS');
     $this->_prepareDocument();
     parent::display();
 }
Example #2
0
 function displayDefault($tpl = null)
 {
     $this->intro = JText::sprintf('COM_KUNENA_CREDITS_INTRO', 'http://www.kunena.org/team');
     $this->memberList = array(array('name' => 'Matias Griese', 'url' => 'http://www.kunena.org/forum/user/63-matias', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPEMENT')), array('name' => 'Florian Dal Fitto', 'url' => 'http://www.kunena.org/forum/user/1288-xillibit', 'title' => JText::_('COM_KUNENA_CREDITS_DEVELOPEMENT')), array('name' => 'Joshua Weiss', 'url' => 'http://www.kunena.org/forum/user/10809-coder4life', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_DESIGN'), JText::_('COM_KUNENA_CREDITS_DEVELOPEMENT'))), array('name' => 'Jelle Kok', 'url' => 'http://www.kunena.org/forum/user/634-810', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_DESIGN'), JText::_('COM_KUNENA_CREDITS_TESTING'))), array('name' => 'Ron Severdia', 'url' => 'http://www.kunena.org/forum/user/114-severdia', 'title' => JText::_('COM_KUNENA_CREDITS_DESIGN')), array('name' => 'Janich Rasmussen', 'url' => 'http://www.kunena.org/forum/user/10133-littlejohn', 'title' => JText::_('COM_KUNENA_CREDITS_CONTRIBUTION')), array('name' => 'Sven Schultschik ', 'url' => 'http://www.kunena.org/forum/user/2171-svanschu', 'title' => JText::_('COM_KUNENA_CREDITS_LANGUAGES')), array('name' => 'Michael Russell', 'url' => 'http://www.kunena.org/forum/user/997-sozzled', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_MODERATION'), JText::_('COM_KUNENA_CREDITS_DOCUMENTATION'))), array('name' => 'Richard Binder', 'url' => 'http://www.kunena.org/forum/user/2198-rich', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_MODERATION'), JText::_('COM_KUNENA_CREDITS_TESTING'))), array('name' => 'Sami Haaranen', 'url' => 'http://www.kunena.org/forum/user/151-mortti', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_MODERATION'), JText::_('COM_KUNENA_CREDITS_TESTING'))), array('name' => 'Joe Collins', 'url' => 'http://www.kunena.org/forum/user/26335-jiminimonka', 'title' => JText::sprintf('COM_KUNENA_CREDITS_X_AND_Y', JText::_('COM_KUNENA_CREDITS_MODERATION'), JText::_('COM_KUNENA_CREDITS_TESTING'))), array('name' => 'Oliver Ratzesberger', 'url' => 'http://www.kunena.org/forum/user/64-fxstein', 'title' => JText::_('COM_KUNENA_CREDITS_FOUNDER')));
     $this->thanks = JText::sprintf('COM_KUNENA_CREDITS_THANKS', 'http://www.kunena.org/team#special_thanks', 'https://www.transifex.com/projects/p/Kunena', 'http://www.kunena.org', 'https://github.com/Kunena/Kunena-Forum/graphs/contributors');
     $this->_prepareDocument();
     parent::display();
 }
Example #3
0
 public function display($tpl = null)
 {
     $this->setLayout('edit');
     $this->setToolbar();
     $this->state = $this->get('state');
     $this->smiley_selected = $this->get('smiley');
     $this->smileypath = $this->ktemplate->getSmileyPath();
     $this->listsmileys = $this->get('Smileyspaths');
     parent::display($tpl);
 }
Example #4
0
 public function display($tpl = null)
 {
     $this->setLayout('edit');
     $this->setToolbar();
     $this->state = $this->get('state');
     $this->rank_selected = $this->get('rank');
     $this->rankpath = $this->ktemplate->getRankPath();
     $this->listranks = $this->get('Rankspaths');
     parent::display($tpl);
 }
Example #5
0
 function displayDefault($tpl = null)
 {
     require_once KPATH_SITE . '/lib/kunena.link.class.php';
     $kunena_stats = KunenaForumStatistics::getInstance();
     $kunena_stats->loadAll();
     $this->assign($kunena_stats);
     $this->latestMemberLink = KunenaFactory::getUser(intval($this->lastUserId))->getLink();
     $this->userlist = CKunenaLink::GetUserlistLink('', intval($this->get('memberCount')));
     $this->_prepareDocument();
     parent::display();
 }
Example #6
0
 function displayDefault($tpl = null)
 {
     $kunena_stats = KunenaForumStatistics::getInstance();
     $kunena_stats->loadAll();
     $this->assign($kunena_stats);
     $this->latestMemberLink = KunenaFactory::getUser(intval($this->lastUserId))->getLink();
     $this->userlist = $this->_getUserListLink('', intval($this->get('memberCount')));
     if (!KunenaFactory::getConfig()->statslink_allowed && JFactory::getUser()->guest) {
         return $this->app->enqueueMessage(JText::_('COM_KUNENA_STATS_NOT_ALLOWED_TOSEE_STATS'));
     }
     $this->_prepareDocument();
     parent::display();
 }
Example #7
0
 function display($tpl = null)
 {
     $this->setToolbar();
     $this->items = $this->get('Items');
     $this->state = $this->get('State');
     $this->pagination = $this->get('Pagination');
     $this->sortFields = $this->getSortFields();
     $this->sortDirectionFields = $this->getSortDirectionFields();
     $this->filterSearch = $this->escape($this->state->get('filter.search'));
     $this->filterCode = $this->escape($this->state->get('filter.code'));
     $this->filterLocation = $this->escape($this->state->get('filter.location'));
     $this->filterActive = $this->escape($this->state->get('filter.active'));
     $this->listOrdering = $this->escape($this->state->get('list.ordering'));
     $this->listDirection = $this->escape($this->state->get('list.direction'));
     return parent::display($tpl);
 }
Example #8
0
 function display()
 {
     $this->navigation = $this->get('AdminNavigation');
     switch ($this->getLayout()) {
         case 'add':
         case 'edit':
             $this->displayEdit();
             $this->setToolBarEdit();
             break;
         case 'default':
             $this->displayDefault();
             $this->setToolBarDefault();
             break;
     }
     parent::display();
 }
Example #9
0
	function displayDefault($tpl = null) {
		$this->config = KunenaFactory::getConfig ();
		$document = JFactory::getDocument();
		$document->setTitle(JText::_('COM_KUNENA_STAT_FORUMSTATS') . ' - ' .      $this->config->board_title);

		require_once(KPATH_SITE.'/lib/kunena.link.class.php');
		$kunena_stats = KunenaForumStatistics::getInstance ( );
		$kunena_stats->loadAll();

		$this->assign($kunena_stats);
		$this->latestMemberLink = CKunenaLink::GetProfileLink($this->lastUserId);
		$this->userlist = CKunenaLink::GetUserlistLink('', intval($this->get('memberCount')));
		$this->statisticsURL = KunenaRoute::_('index.php?option=com_kunena&view=statistics');

		parent::display ();
	}
Example #10
0
 /**
  * @param   null $tpl
  *
  * @return mixed
  */
 function display($tpl = null)
 {
     $this->setToolbar();
     $this->items = $this->get('Items');
     $this->state = $this->get('state');
     $this->pagination = $this->get('Pagination');
     $this->sortFields = $this->getSortFields();
     $this->sortDirectionFields = $this->getSortDirectionFields();
     $this->filterSearch = $this->escape($this->state->get('filter.search'));
     $this->filterTitle = $this->escape($this->state->get('filter.title'));
     $this->filterSpecial = $this->escape($this->state->get('filter.special'));
     $this->filterMinPostCount = $this->escape($this->state->get('filter.min'));
     $this->filterActive = $this->escape($this->state->get('filter.active'));
     $this->listOrdering = $this->escape($this->state->get('list.ordering'));
     $this->listDirection = $this->escape($this->state->get('list.direction'));
     return parent::display($tpl);
 }
Example #11
0
 function display($tpl = null)
 {
     $this->setToolbar();
     $this->items = $this->get('Items');
     $this->state = $this->get('state');
     $this->pagination = $this->get('Pagination');
     // Load attachments instances
     $attachments_id = array();
     foreach ($this->items as $item) {
         $attachments_id[] = $item->id;
     }
     $attachments = KunenaForumMessageAttachmentHelper::getById($attachments_id);
     $this->attachments_instance = array();
     foreach ($attachments as $attachment) {
         $object = new stdClass();
         $object->attachment = $attachment;
         $object->message = $attachment->getMessage();
         $path = JPATH_ROOT . '/' . $attachment->folder . '/' . $attachment->filename;
         if ($attachment->isImage($attachment->filetype) && is_file($path)) {
             list($width, $height) = getimagesize($path);
         } else {
             $width = null;
             $height = null;
         }
         $object->width = $width;
         $object->height = $height;
         $this->attachments_instance[] = $object;
     }
     $this->sortFields = $this->getSortFields();
     $this->sortDirectionFields = $this->getSortDirectionFields();
     $this->filterSearch = $this->escape($this->state->get('list.search'));
     $this->filterTitle = $this->escape($this->state->get('filter.title'));
     $this->filterType = $this->escape($this->state->get('filter.type'));
     $this->filterSize = $this->escape($this->state->get('filter.size'));
     $this->filterDimensions = $this->escape($this->state->get('filter.dims'));
     $this->filterUsername = $this->escape($this->state->get('filter.username'));
     $this->filterPost = $this->escape($this->state->get('filter.post'));
     $this->filterActive = $this->escape($this->state->get('filter.active'));
     $this->listOrdering = $this->escape($this->state->get('list.ordering'));
     $this->listDirection = $this->escape($this->state->get('list.direction'));
     return parent::display($tpl);
 }
Example #12
0
 function display($tpl = null)
 {
     $this->setToolbar();
     $this->items = $this->get('Items');
     $this->state = $this->get('state');
     $this->pagination = $this->get('Pagination');
     $this->sortFields = $this->getSortFields();
     $this->sortDirectionFields = $this->getSortDirectionFields();
     $this->filterSearch = $this->escape($this->state->get('list.search'));
     $this->filterTitle = $this->escape($this->state->get('filter.title'));
     $this->filterType = $this->escape($this->state->get('filter.type'));
     $this->filterSize = $this->escape($this->state->get('filter.size'));
     $this->filterDimensions = $this->escape($this->state->get('filter.dims'));
     $this->filterUsername = $this->escape($this->state->get('filter.username'));
     $this->filterPost = $this->escape($this->state->get('filter.post'));
     $this->filterActive = $this->escape($this->state->get('filter.active'));
     $this->listOrdering = $this->escape($this->state->get('list.ordering'));
     $this->listDirection = $this->escape($this->state->get('list.direction'));
     return parent::display($tpl);
 }
Example #13
0
 protected function displayCommon($tpl = null)
 {
     $userid = JRequest::getInt('userid');
     $this->_db = JFactory::getDBO();
     $this->do = JRequest::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->userlist_name) {
         $this->name = $this->profile->getName() . ($this->me->isModerator() ? ' (' . $this->name . ')' : '');
     }
     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->getCfg('offset', null)));
     try {
         $offset = new DateTimeZone($this->user->getParam('timezone', $this->app->getCfg('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');
     parent::display();
 }
Example #14
0
	function displayDefault($tpl = null) {

		$this->setTitle( JText::_('COM_KUNENA_VIEW_CREDITS_DEFAULT') );
		parent::display ();
	}
Example #15
0
	protected function displayCommon($tpl = null) {
		$userid = JRequest::getInt('userid');

		$this->_db = JFactory::getDBO ();
		$this->_app = JFactory::getApplication ();
		$this->config = KunenaFactory::getConfig ();
		$this->my = JFactory::getUser ();
		$this->me = KunenaUserHelper::getMyself();
		$this->do = JRequest::getWord('layout');

		if (!$userid) {
			$this->user = $this->my;
		} else {
			$this->user = JFactory::getUser( $userid );
		}
		if ($this->user->id == 0|| ($this->my->id == 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->my->id) {
			if ($this->do != 'edit') $this->editLink = CKunenaLink::GetMyProfileLink ( $this->profile->userid, JText::_('COM_KUNENA_EDIT').' &raquo;', 'nofollow', 'edit', 'kheader-link' );
			else $this->editLink = CKunenaLink::GetMyProfileLink ( $this->profile->userid, JText::_('COM_KUNENA_BACK').' &raquo;', 'nofollow', '', 'kheader-link' );

			// TODO: Deprecated
			if ($this->do != 'edit') $this->editlink = CKunenaLink::GetMyProfileLink ( $this->profile->userid, JText::_('COM_KUNENA_EDIT'), 'nofollow', 'edit' );
			else $this->editlink = CKunenaLink::GetMyProfileLink ( $this->profile->userid, JText::_('COM_KUNENA_BACK'), 'nofollow' );
		}
		$this->name = $this->user->username;
		if ($this->config->userlist_name) $this->name = $this->user->name . ' (' . $this->name . ')';
		if ($this->config->showuserstats) {
			if ($this->config->userlist_usertype) $this->usertype = $this->user->usertype;
			$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 ($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->localtime = KunenaDate::getInstance();
		$this->localtime->setOffset($this->user->getParam('timezone', $this->_app->getCfg ( 'offset', 0 )));
		$this->moderator = $this->profile->isModerator();
		$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;

		$avatar = KunenaFactory::getAvatarIntegration();
		$this->editavatar = is_a($avatar, 'KunenaAvatarKunena') ? true : false;

		$this->banInfo = KunenaUserBan::getInstanceByUserid($userid, true);
		$this->canBan = $this->banInfo->canBan();
		if ( $this->config->showbannedreason ) $this->banReason = $this->banInfo->reason_public;

		$user = JFactory::getUser();
		if ($user->id != $this->profile->userid)
		{
			$this->profile->uhits++;
			$this->profile->save();
		}

		$this->canManageAttachs = $this->canManageAttachments ();

		$private = KunenaFactory::getPrivateMessaging();
		if ($this->my->id == $this->user->id) {
			$this->pmCount = $private->getUnreadCount($this->my->id);
			$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->setTitle(JText::sprintf('COM_KUNENA_VIEW_USER_DEFAULT', $this->profile->getName()));
		parent::display();
	}