Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.

×
RND Kparadise 2.0 - update of travel template (14 Nov 2018)

Tourist and travel template Kparadise updated to version 2.0 and is compatible with Kunena 5.1.6. Do not miss this great template which has unique features: Images in Category and Masonry Grid.

Social sites not showing in profile

2 months 3 weeks ago #830 by Astrid
Social sites not showing in profile was created by Astrid
Although I've added facebook, twitter and linkedin username, my social sites are not showing in my profile:

As you can see, source code is empty. It should be something like this:
<a href="https://www.facebook.com/username" class="hasTooltip" target="_blank" title="" data-original-title="Facebook: username"><span class="kicon-profile kicon-profile-facebook"></span></a></div>
Attachments:
The topic has been locked.
2 months 3 weeks ago #834 by Dmitry
Replied by Dmitry on topic Social sites not showing in profile
Dear Astrid

Thanks for report. Added to queue of our tasks for 5.0 => 5.1 fixes :)

Dmitry
The topic has been locked.
2 months 2 weeks ago #839 by Astrid
Replied by Astrid on topic Social sites not showing in profile
user/item/social/default.php
<?php
/**
 * Kunena Component
 * @package         Kunena.Template.Crypsis
 * @subpackage      Layout.User
 *
 * @copyright       Copyright (C) 2008 - 2018 Kunena Team. All rights reserved.
 * @license         https://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link            https://www.kunena.org
 **/
defined('_JEXEC') or die;

$showAll = isset($this->showAll) ? $this->showAll : false;
?>
<div class="inline">
	<?php foreach ($this->socials as $key => $social)
	{
		if (!empty($this->profile->$key))
		{
			echo $this->profile->socialButtonsTemplate($key, $showAll);
		}
	}
	?>
</div>
user/item/summary/default.php
<?php
/**
 * Kunena Component
 * @package     Kunena.Template.Crypsis
 * @subpackage  Layout.User
 *
 * @copyright   (C) 2008 - 2017 Kunena Team. All rights reserved.
 * @divcense     https://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @divnk        https://www.kunena.org
 **/
/**
* @package Glorious Kunena Template
* @copyright (C) 2017 Roundtheme. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.roundtheme.com
**/
defined('_JEXEC') or die;

// @var KunenaUser $profile

$profile = $this->profile;
$socials             = $this->profile->socialButtons();
$socials             = Joomla\Utilities\ArrayHelper::toObject($socials);
$me = KunenaUserHelper::getMyself();
$avatar = $profile->getAvatarImage(KunenaFactory::getTemplate()->params->get('avatarType'), 'profile');
$banInfo = $this->config->showbannedreason
	? KunenaUserBan::getInstanceByUserid($profile->userid)
	: null;
$private = KunenaFactory::getPrivateMessaging();
$websiteURL = $profile->getWebsiteURL();
$websiteName = $profile->getWebsiteName();
$personalText = $profile->getPersonalText();
$signature = $profile->getSignature();
$email = $profile->email && !$profile->hideEmail && $this->config->showemail || $me->isModerator() || $profile->userid == $me->userid;
$activityIntegration = KunenaFactory::getActivityIntegration();
$points = $activityIntegration->getUserPoints($profile->userid);
$medals = $activityIntegration->getUserMedals($profile->userid);

if ($this->config->showuserstats)
{
	$showKarma = KunenaConfig::getInstance()->showkarma;
	$rankImage = $profile->getRank(0, 'image');
	$rankTitle = $profile->getRank(0, 'title');
}
?>
<div class="row-fluid">

	<div class="span3 center">
		<div>
			<?php if ($avatar) : ?>
			<div class="kavatar-profile">
			<!-- Status -->
			<div class="kprofile-status">
				<?php echo $this->subLayout('User/Item/Status')->set('user', $profile); ?>
			</div>		
				<?php echo $avatar; ?>
			</div>
			<?php endif; ?>
			<!-- Web Site -->
			<div class="kprofile-link-icons margin">
				<?php if ($private) : ?>
				<div>
					<?php echo $private->shownewIcon($profile->userid); ?>
				</div>
				<?php endif; ?>
				
				<?php if ($email) : ?>
				<div>
					<a class="btn btn-default btn-small" title="mailto:<?php echo $profile->email; ?>" href="mailto:<?php echo $profile->email; ?>" rel="nofollow"><?php echo KunenaIcons::email(); ?></a>
				</div>
				<?php endif; ?>
				
				<?php if (!empty($websiteName) && !empty($websiteURL)) : ?>
				<div>
					<?php if (!empty($websiteName) && $websiteURL != 'http://') : ?>
						<a class="btn btn-default btn-small" rel="nofollow noopener noreferrer" target="_blank" title="<?php echo $websiteName; ?>" href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe(); ?></a>
					<?php elseif(empty($websiteName) && $websiteURL != 'http://') : ?>
						<a class="btn btn-default btn-small" rel="nofollow noopener noreferrer" target="_blank" title="<?php echo $websiteURL; ?>" href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe(); ?></a>
					<?php elseif(!empty($websiteName) && $websiteURL == 'http://') : ?>
						<a class="btn btn-default btn-small" rel="nofollow noopener noreferrer" target="_blank" title="<?php echo $websiteName; ?>"><?php echo KunenaIcons::globe(); ?></a>
					<?php endif; ?>
				</div>
				<?php endif; ?>
			</div>

			<div class="margin-small">
				<strong> <?php echo JText::_('COM_KUNENA_USERTYPE'); ?>:</strong>
				<span class="<?php echo $profile->getType(0, true); ?>"> <?php echo JText::_($profile->getType()); ?> </span>
			</div>
			<?php if ($this->config->showuserstats && $this->config->showranking) : ?>
				<div class="margin-small">
					<div>
						<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_RANK'); ?>:</strong>
						<?php echo $this->escape($rankTitle); ?>
					</div>
					<div class="kuser-rank-image">
						<?php echo $rankImage; ?>
					</div>
				</div>
			<?php endif; ?>

			<div class="kprofile-info-icons margin">

				<?php if (!empty($profile->location)) : ?>
				<div class="hasTooltip" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION') ?>:<?php echo $this->escape($profile->location); ?>">
					<a href="https://maps.google.com?q=<?php echo $this->escape($profile->location); ?>"
						   target="_blank" rel="nofollow noopener noreferrer"><i class="fa fa-map-marker" aria-hidden="true"></i></a>
				</div>
				<?php endif; ?>

				<?php if ($profile->gender >= 1) : ?>
				<div class="hasTooltip" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER'); ?>: <?php echo $profile->getGender(); ?>">
					<?php echo ($profile->gender == 1) ? '<i class="fa fa-male"></i>' : '<i class="fa fa-female"></i>'; ?>
				</div>
				<?php endif; ?>

				<?php
				if ($profile->birthdate >= '1901-01-01') : ?>
				<div class="hasTooltip" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE'); ?>: <?php echo $profile->birthdate; ?>">
					<i class="fa fa-birthday-cake" aria-hidden="true"></i>
				</div>
				<?php endif; ?>
			</div>

		</div>
	</div>
	<div class="span9">
		<div>
			<div class="kprofile-points row-fluid">
				<?php if (!empty($profile->posts)) : ?>
				<div class="span2 hasTooltip" title="<?php echo JText::_('COM_KUNENA_PROFILE_POSTS'); ?>">
					<span> <?php echo JText::sprintf((int) $profile->posts); ?> </span>
					<b><?php echo JText::_('COM_KUNENA_PROFILE_POSTS'); ?></b>
				</div>
				<?php endif; ?>
				<?php if (!empty($showKarma) && !empty($profile->karma) && KunenaConfig::getInstance()->showkarma) : ?>
				<div class="span2 hasTooltip" title="<?php echo JText::_('COM_KUNENA_KARMA'); ?>">
					<span> <?php echo JText::sprintf((int) $profile->karma); ?> </span>
					<b><?php echo JText::_('COM_KUNENA_KARMA'); ?></b>
				</div>
				<?php endif; ?>
				<?php if (!empty($profile->uhits)) : ?>
				<div class="span2 hasTooltip" title="<?php echo JText::_('COM_KUNENA_PROFILE_VIEWS'); ?>">
					<span> <?php echo JText::sprintf((int) $profile->uhits); ?> </span>
					<b><?php echo JText::_('COM_KUNENA_PROFILE_VIEWS'); ?></b>
				</div>
				<?php endif; ?>
				<?php if (!empty($profile->thankyou) && KunenaConfig::getInstance()->showthankyou) : ?>
				<div class="span2 hasTooltip" title="<?php echo JText::_('COM_KUNENA_THANK_YOU_RECEIVED'); ?>">
					<span> <?php echo JText::sprintf((int) $profile->thankyou); ?> </span>
					<b><?php echo JText::_('COM_KUNENA_THANK_YOU_RECEIVED'); ?></b>
				</div>
				<?php endif; ?>
				<?php if (!empty($points)) : ?>
					<div class="span2 hasTooltip" title="<?php echo JText::_('COM_KUNENA_AUP_POINTS'); ?>">
						<span> <?php echo $points; ?></span>
						<b><?php echo JText::_('COM_KUNENA_AUP_POINTS'); ?></b>
					</div>
				<?php endif; ?>
			</div>
			<!-- Profile Info -->
			<div class="kprofile-info margin">
				<?php if ($banInfo && $banInfo->reason_pubdivc) : ?>
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_BANINFO'); ?>:</strong>
					<span> <?php echo $this->escape($banInfo->reason_pubdivc); ?> </span>
				</div>
				<?php endif ?>
				
				<?php if ($this->config->userlist_joindate || $me->isModerator()) : ?>
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE'); ?>:</strong>
					<span title="<?php echo $profile->getRegisterDate()->toKunena('ago'); ?>"> <?php echo $profile->getRegisterDate()->toKunena('date_today', 'utc'); ?> </span>
				</div>
				<?php endif; ?>
				
				<?php if ($this->config->userlist_lastvisitdate || $me->isModerator()) : ?>
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_LASTLOGIN'); ?>:</strong>
					<span title="<?php echo $profile->getLastVisitDate()->toKunena('ago'); ?>"> <?php echo $profile->getLastVisitDate()->toKunena('config_post_dateformat'); ?> </span>
				</div>
				<?php endif; ?>
				
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE'); ?>:</strong>
					<span> UTC <?php echo $profile->getTime()->toTimezone(); ?> </span>
				</div>
				
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME'); ?>:</strong>
					<span> <?php echo $profile->getTime()->toKunena('time'); ?> </span>
				</div>
				
				<?php if (!empty($medals)) : ?>
				<div>
					<strong> <?php echo JText::_('COM_KUNENA_AUP_MEDALS'); ?> </strong>
					<span> <?php echo implode(' ', $medals); ?> </span>
				</div>
				<?php endif; ?>
			</div>
			<!-- About Me -->
			<?php if ($personalText) : ?>
			<div class="kprofile-aboutme margin">
				<b> <?php echo JText::_('COM_KUNENA_MYPROFILE_ABOUTME'); ?>: </b>
				<span> <?php echo $personalText; ?> </span>
			</div>
			<?php endif; ?>

			<!-- Signature -->
			<?php if ($signature) : ?>
			<div class="kprofile-signature margin">
				<span><?php echo $signature; ?></span>
			</div>
			<?php endif; ?>

			<!-- Social -->
			<div class="kprofile-social">
				<?php echo $this->subLayout('User/Item/Social')->set('profile', $profile)->set('socials', $socials); ?>
			</div>
		</div>
	</div>
</div>
The following user(s) said Thank You: Eugene S.
The topic has been locked.
2 months 2 weeks ago #841 by Dmitry
Replied by Dmitry on topic Social sites not showing in profile
Yesterday I already have fixed it in KGlorious, but did not past the solution. Glad that you found it by yourself.

Dmitry
The topic has been locked.
4 weeks 2 days ago #901 by Dmitry
Replied by Dmitry on topic Social sites not showing in profile
Was fixed in new version 2.0.0.
The topic has been locked.
4 weeks 2 days ago #906 by Astrid
Replied by Astrid on topic Social sites not showing in profile
Correct. Can be marked as solved. Thx.
The topic has been locked.
Moderators: Eugene S.