Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Numerical Karma Points

10 years 1 week ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Greetings Pro's,
I just got done following the steps very closely that was uploaded by Craig Luecke. I got the code he used from Mical's post and I used this from his thread:

<?php echo $user->_points; ?>
<?php echo JText::sprintf((CStringHelper::isPlural($user->_points)) ? 'COM_COMMUNITY_POINTS':'COM_COMMUNITY_SINGULAR_POINT');

I am 99.9% sure I pasted this code into the correct directory in the right location of this .php file. After all of this, I don't see the Karma Points being indicated as a number. I realize that he images would still be there even if this were working, but while the images are there, the number is not showing up.

Would someone look at this and see if I did something wrong on this please? I am asking as my site is a sports social media site and having the user Karma listed as "Score 2,458" rather than the images just makes better sense.

Thanks,

David

10 years 1 week ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi David,

Where did you put that code? in which page? which file? can you provide me the steps to check this?

thank you

10 years 1 week ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Dimas,
Thank you for replying to this. I have pieced together the pieces of all of this so I will try and spell it out here for you. I found the below thread that had a video hyperlinked text with explicit instructions on how to do this.

JomSocial Thread: www.jomsocial.com/forum/installation/20253-user-point-karma

Instructional Videa URL: www.jomsocial.com/community/videos/video...file-page?groupid=50

Code Directory: public_html/components/com_community/templates/default/modules/profile/userinfo.php


Now, I am so inexperienced with all of this, I would not even qualify as a Bad-Hack. So I followed these instructions as closely as I could. All I am after is this. When a member logs into the site and lands on their profile page, I want them to see Score: *,*** or (1.257) after the colored rain drops that come standard. Now, if it's possible to delete or hide the those rain drops, even better, but if they need to stay, it's fine. I would ultimately juts like to have "Score: 1,256 or whatever their score happens to be.

Thanks,

David

10 years 1 week ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi David,

Like I said I need the steps to check this, and if possible provide me the screenshoot.. this is simple hack, I can help it.

thank you

10 years 6 days ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

Dimas,
Good day and thank you for taking the time to get this working. As far as the steps are concerned, that is why I sent you this link, Instructional Videa URL: www.jomsocial.com/community/videos/video...file-page?groupid=50 , that is where the steps are located.

HERE IS THE CODE: The line if code I added is on line 114 if this helps. If this does not help, please let me know what I am not giving you for information. Thanks, as this will really go nicely on my site.

<?php
/**
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 ( www.gnu.org/licenses/gpl-2.0.html )
* @author iJoomla.com <This email address is being protected from spambots. You need JavaScript enabled to view it.>
* @url www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die();
CFactory::attach('assets/jqueryui/drag/jquery-ui-drag.js', 'js');
CFactory::attach('assets/jqueryui/drag/jquery.ui.touch-punch.min.js', 'js');
?>

<div class="js-focus">
<div class="js-focus-cover">
<img id='<?php echo $profile->id; ?>' data-cover-context="profile" class="focusbox-image cover-image" src="<?php echo $profile->cover; ?>" alt="cover photo" style="top:<?php echo $profile->coverPostion; ?>">
<div class="js-focus-gradient" data-cover-context="profile" data-cover-type="cover"></div>

<?php if($isMine || COwnerHelper::isCommunityAdmin()) {?>
<!-- Change cover button -->
<div class="js-focus-change-cover" data-cover-type="cover">
<a href="javascript:void(0)" class="btn <?php echo ($profile->defaultCover) ? 'hidden' : '' ?>" data-cover-context="profile" onclick="joms.cover.reposition(this, <?php echo $profile->id; ?>,'<?php echo JText::_("COM_COMMUNITY_CANCEL_BUTTON")?>','<?php echo JText::_("COM_COMMUNITY_SAVE_BUTTON")?>');"><i class="joms-icon-cog"></i><span><?php echo JText::_('COM_COMMUNITY_REPOSITION_COVER')?></span></a>
<a href="javascript:void(0)" class="btn ml-6" data-cover-context="profile" onclick="joms.cover.select(this, <?php echo $profile->id; ?>);" ><i class="joms-icon-picture"></i><span><?php echo JText::_('COM_COMMUNITY_CHANGE_COVER'); ?></span></a>
</div>
<?php }?>

<!-- Focus Title , Avatar, Add as friend button -->
<div class="js-focus-header">
<div class="row-fluid">
<div class="span5 offset3">
<h3><?php echo $user->getDisplayName(); ?></h3>
</div>
<div class="span4 text-right">
<!-- Send message button -->
<?php if( !$isMine && $config->get('enablepm')){ ?>
<a href="javascript:void(0);" class="btn" onclick="<?php echo $sendMsg; ?>">
<span><?php echo JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE')?></span></a>
<?php }?>
<!-- Add as friend button -->
<?php if( !$isMine ): ?>
<?php if(!$isFriend && !$isMine && !$isBlocked): ?>
<?php if(!$isWaitingApproval):?>
<div class="btn btn-primary" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
<span><?php echo JText::_('COM_COMMUNITY_PROFILE_ADD_AS_FRIEND'); ?></span>
</div>
<?php else : ?>
<div class="btn" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
<span><?php echo JText::_('COM_COMMUNITY_PROFILE_PENDING_FRIEND_REQUEST'); ?></span>
</div>
<?php endif ?>
<?php endif; ?>
<?php endif ?>
</div>
</div>
</div>
</div>

<div class="js-focus-content">
<div class="row-fluid">

<div class="span3">
<div class="thumbnail js-focus-avatar">
<img src="<?php echo $profile->largeAvatar . '?_=' . time(); ?>" alt="<?php echo $this->escape( $user->getDisplayName() ); ?>" />
<?php if( $isMine || COwnerHelper::isCommunityAdmin() ): ?>
<b class="js-focus-avatar-option">
<a href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a>
</b>
<?php endif; ?>
</div>
</div>
<div class="span9">
<!-- Focus Menu -->
<div class="js-focus-menu">
<div class="row-fluid">
<div class="span12">
<ul class="inline unstyled">
<li><a href="#" class="about js-collapse-about-btn"><?php echo JText::_('COM_COMMUNITY_ABOUT_ME')?></a></li>
<?php if($photoEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=myphotos&userid='.$profile->id); ?>">
<?php echo ($profile->_photos == 1) ? JText::sprintf('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR',$profile->_photos) : JText::sprintf('COM_COMMUNITY_PHOTOS_COUNT',$profile->_photos) ?>
</a>
</li>
<?php }?>
<?php if($videoEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$profile->id); ?>">
<?php echo ($profile->_videos == 1) ? JText::sprintf('COM_COMMUNITY_VIDEOS_COUNT',$profile->_videos) : JText::sprintf('COM_COMMUNITY_VIDEOS_COUNT_MANY',$profile->_videos) ?>
</a>
</li>
<?php }?>
<?php if($groupEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=mygroups&userid='.$profile->id); ?>">
<?php echo ($profile->_groups == 1) ? JText::sprintf('COM_COMMUNITY_GROUPS_COUNT',$profile->_groups) : JText::sprintf('COM_COMMUNITY_GROUPS_COUNT_MANY',$profile->_groups) ?>
</a>
</li>
<?php }?>
<?php if($eventEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=myevents&userid='.$profile->id); ?>">
<?php echo ($profile->_events == 1) ? JText::sprintf('COM_COMMUNITY_EVENTS_COUNT',$profile->_events) : JText::sprintf('COM_COMMUNITY_EVENTS_COUNT_MANY',$profile->_events) ?>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&userid='.$profile->id); ?>">
<?php echo ($profile->_friends == 1) ? JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT',$profile->_friends) : JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT_MANY',$profile->_friends) ?>
</a>
</li>
<!-- Karma -->
<?php if($config->get('enablekarma')){ ?>
<li class="cFocus-karma jomNameTips" title="<?php echo JText::_('COM_COMMUNITY_KARMA'); ?>"><img src="<?php echo $karmaImgUrl; ?>" alt="" /></li> <?php echo $user->_points; ?>
<?php } ?>
</ul>
</div>
</div>
</div>
<div class="collapse js-collapse-about">
<div class="row-fluid">
<div class="span12">
<div><?php echo $about; ?></div>
<dl class="dl-horizontal">
<dt><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></dt>
<dd><?php echo JHTML::_('date', $registerDate , JText::_('DATE_FORMAT_LC2')); ?></dd>
<dt><?php echo JText::_('COM_COMMUNITY_LAST_LOGIN'); ?></dt>
<dd><?php echo $lastLogin; ?></dd>
<?php if( $multiprofile->name && $config->get('profile_multiprofile') ){ ?>
<dt><?php echo JText::_('COM_COMMUNITY_PROFILE_TYPE'); ?></dt>
<dd><?php echo $multiprofile->name;?></dd>
<?php } ?>
</dl>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end js-focus-content -->
<div class="js-focus-actions">

<div class="navbar">
<div class="navbar-inner">
<a class="btn btn-navbar js-collapse-btn">
<span class="caret"></span>
</a>
<div class="nav-collapse collapse js-collapse">
<ul class="nav">
<?php if ($config->get('enablesharethis') == 1 ) { ?>
<li>
<a href="javascript:void(0);" onClick="joms.bookmarks.show('<?php echo CRoute::getExternalURL( 'index.php?option=com_community&view=profile&userid=' . $profile->id ); ?>')"><i class="joms-icon-share"></i><?php echo JText::_('COM_COMMUNITY_SHARE')?></a>
</li>
<?php } ?>
<?php if($isLikeEnabled){?>
<li id='like-profile-<?php echo $profile->id; ?>'><a href="javascript:void(0);" onclick="<?php echo ($isUserLiked > 0) ? 'joms.like.newDislike(this)' : 'joms.like.newLike(this)' ?>;" class="<?php if($isUserLiked > 0){ ?> js-focus-like <?php }?>"><i class="joms-icon-thumbs-up"></i><span><?php echo $likes ?></span> <?php echo JText::_('COM_COMMUNITY_LIKE')?></a></li>
<?php }?>
<?php echo $reportsHTML; ?>
<li><span><i class="joms-icon-eye"></i><?php echo JText::sprintf('COM_COMMUNITY_PROFILE_VIEW_RESULT', number_format($user->getViewCount()) ) ;?></span></li>
</ul>
<!-- remove checking to display Options button anyways -->
<ul class="nav pull-right">
<li class="dropup">
<a href="#" class="js-navbar-options"><?php echo JText::_('COM_COMMUNITY_VIDEOS_OPTIONS')?></a>
<ul class="dropdown-menu pull-right">
<!-- change avatar -->
<?php if($isMine || COwnerHelper::isCommunityAdmin()){ ?>
<li><a tabindex="-1" href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a></li>
<?php if( COwnerHelper::isCommunityAdmin() ){?>
<!-- ban / unban -->
<?php if( !$isMine ){?>
<?php if(!$blocked){?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.banUser('<?php echo $profile->id; ?>', '0' );"><?php echo JText::_('COM_COMMUNITY_BAN_USER')?></a></li>
<?php } else {?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.banUser('<?php echo $profile->id; ?>', '1' );"><?php echo JText::_('COM_COMMUNITY_UNBAN_USER')?></a></li>
<?php }?>
<?php } ?>
<!-- stick feature -->
<?php if ($profile->featured) { ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.featured.remove('<?php echo $profile->id;?>','search');"><?php echo JText::_('COM_COMMUNITY_REMOVE_FEATURED')?></a></li>
<?php }else { ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.featured.add('<?php echo $profile->id;?>','search');"><?php echo JText::_('COM_COMMUNITY_MAKE_FEATURED')?></a></li>
<?php } ?>
<?php } ?>


<!-- visible on phone/tablet -->
<?php if($isMine || COwnerHelper::isCommunityAdmin()) {?>
<!-- Change cover button -->
<?php if(!$profile->defaultCover){?>
<li class="hidden-desktop">
<a href="javascript:void(0)" data-cover-context="profile" onclick="joms.cover.reposition(this, <?php echo $profile->id; ?>,'<?php echo JText::_("COM_COMMUNITY_CANCEL_BUTTON")?>','<?php echo JText::_("COM_COMMUNITY_SAVE_BUTTON")?>');"><?php echo JText::_('COM_COMMUNITY_REPOSITION_COVER')?></a>
</li>
<?php }?>
<li class="hidden-desktop">
<a href="javascript:void(0)" data-cover-context="profile" onclick="joms.cover.select(this, <?php echo $profile->id; ?>);" ><?php echo JText::_('COM_COMMUNITY_CHANGE_COVER'); ?></a>
</li>
<?php }?>

<!-- change alias: user can change their own alias -->
<?php if($isSEFEnabled){?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.updateURL('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_PROFILE_CHANGE_ALIAS');?></a></li>
<?php }?>
<!-- profile picture / cover -->
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.removePicture('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_REMOVE_PROFILE_PICTURE');?></a></li>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.removeCover('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_REMOVE_PROFILE_COVER');?></a></li>
<!-- edit preference -->
<?php if($isMine){?>
<li><a tabindex="-1" href="<?php echo CRoute::_('index.php?option=com_community&view=profile&task=preferences'); ?>"><?php echo JText::_('COM_COMMUNITY_EDIT_PREFERENCES');?></a></li>
<?php if(!empty($profile->profilevideo)){?>
<li><a tabindex="-1" href="javascript:void(0);" onClick="joms.videos.removeConfirmProfileVideo(<?php echo $profile->id?>,<?php echo $profile->profilevideo; ?>)"><?php echo JText::_('COM_COMMUNITY_VIDEOS_REMOVE_PROFILE_VIDEO');?></a></li>
<?php }?>
<?php }?>
<?php } ?>
<!-- block user: any none mine can do block -->
<?php if(!$isMine){?>
<?php if(!$isBlocked){ ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.confirmBlockUser('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_BLOCK_USER');?></a></li>
<?php } else {?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.confirmUnBlockUser('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_UNBLOCK_USER');?></a></li>
<?php }?>
<?php } ?>
</ul>
</li>
</ul>

</div><!-- /.nav-collapse -->
</div><!-- /navbar-inner -->
</div>

</div>
</div>
<?php
/**
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 ( www.gnu.org/licenses/gpl-2.0.html )
* @author iJoomla.com <This email address is being protected from spambots. You need JavaScript enabled to view it.>
* @url www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die();
CFactory::attach('assets/jqueryui/drag/jquery-ui-drag.js', 'js');
CFactory::attach('assets/jqueryui/drag/jquery.ui.touch-punch.min.js', 'js');
?>

<div class="js-focus">
<div class="js-focus-cover">
<img id='<?php echo $profile->id; ?>' data-cover-context="profile" class="focusbox-image cover-image" src="<?php echo $profile->cover; ?>" alt="cover photo" style="top:<?php echo $profile->coverPostion; ?>">
<div class="js-focus-gradient" data-cover-context="profile" data-cover-type="cover"></div>

<?php if($isMine || COwnerHelper::isCommunityAdmin()) {?>
<!-- Change cover button -->
<div class="js-focus-change-cover" data-cover-type="cover">
<a href="javascript:void(0)" class="btn <?php echo ($profile->defaultCover) ? 'hidden' : '' ?>" data-cover-context="profile" onclick="joms.cover.reposition(this, <?php echo $profile->id; ?>,'<?php echo JText::_("COM_COMMUNITY_CANCEL_BUTTON")?>','<?php echo JText::_("COM_COMMUNITY_SAVE_BUTTON")?>');"><i class="joms-icon-cog"></i><span><?php echo JText::_('COM_COMMUNITY_REPOSITION_COVER')?></span></a>
<a href="javascript:void(0)" class="btn ml-6" data-cover-context="profile" onclick="joms.cover.select(this, <?php echo $profile->id; ?>);" ><i class="joms-icon-picture"></i><span><?php echo JText::_('COM_COMMUNITY_CHANGE_COVER'); ?></span></a>
</div>
<?php }?>

<!-- Focus Title , Avatar, Add as friend button -->
<div class="js-focus-header">
<div class="row-fluid">
<div class="span5 offset3">
<h3><?php echo $user->getDisplayName(); ?></h3>
</div>
<div class="span4 text-right">
<!-- Send message button -->
<?php if( !$isMine && $config->get('enablepm')){ ?>
<a href="javascript:void(0);" class="btn" onclick="<?php echo $sendMsg; ?>">
<span><?php echo JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE')?></span></a>
<?php }?>
<!-- Add as friend button -->
<?php if( !$isMine ): ?>
<?php if(!$isFriend && !$isMine && !$isBlocked): ?>
<?php if(!$isWaitingApproval):?>
<div class="btn btn-primary" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
<span><?php echo JText::_('COM_COMMUNITY_PROFILE_ADD_AS_FRIEND'); ?></span>
</div>
<?php else : ?>
<div class="btn" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
<span><?php echo JText::_('COM_COMMUNITY_PROFILE_PENDING_FRIEND_REQUEST'); ?></span>
</div>
<?php endif ?>
<?php endif; ?>
<?php endif ?>
</div>
</div>
</div>
</div>

<div class="js-focus-content">
<div class="row-fluid">

<div class="span3">
<div class="thumbnail js-focus-avatar">
<img src="<?php echo $profile->largeAvatar . '?_=' . time(); ?>" alt="<?php echo $this->escape( $user->getDisplayName() ); ?>" />
<?php if( $isMine || COwnerHelper::isCommunityAdmin() ): ?>
<b class="js-focus-avatar-option">
<a href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a>
</b>
<?php endif; ?>
</div>
</div>
<div class="span9">
<!-- Focus Menu -->
<div class="js-focus-menu">
<div class="row-fluid">
<div class="span12">
<ul class="inline unstyled">
<li><a href="#" class="about js-collapse-about-btn"><?php echo JText::_('COM_COMMUNITY_ABOUT_ME')?></a></li>
<?php if($photoEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=myphotos&userid='.$profile->id); ?>">
<?php echo ($profile->_photos == 1) ? JText::sprintf('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR',$profile->_photos) : JText::sprintf('COM_COMMUNITY_PHOTOS_COUNT',$profile->_photos) ?>
</a>
</li>
<?php }?>
<?php if($videoEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$profile->id); ?>">
<?php echo ($profile->_videos == 1) ? JText::sprintf('COM_COMMUNITY_VIDEOS_COUNT',$profile->_videos) : JText::sprintf('COM_COMMUNITY_VIDEOS_COUNT_MANY',$profile->_videos) ?>
</a>
</li>
<?php }?>
<?php if($groupEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=mygroups&userid='.$profile->id); ?>">
<?php echo ($profile->_groups == 1) ? JText::sprintf('COM_COMMUNITY_GROUPS_COUNT',$profile->_groups) : JText::sprintf('COM_COMMUNITY_GROUPS_COUNT_MANY',$profile->_groups) ?>
</a>
</li>
<?php }?>
<?php if($eventEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=myevents&userid='.$profile->id); ?>">
<?php echo ($profile->_events == 1) ? JText::sprintf('COM_COMMUNITY_EVENTS_COUNT',$profile->_events) : JText::sprintf('COM_COMMUNITY_EVENTS_COUNT_MANY',$profile->_events) ?>
</a>
</li>
<?php }?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&userid='.$profile->id); ?>">
<?php echo ($profile->_friends == 1) ? JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT',$profile->_friends) : JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT_MANY',$profile->_friends) ?>
</a>
</li>
<!-- Karma -->
<?php if($config->get('enablekarma')){ ?>
<?php echo $user->_points; ?>
- <?php echo JText::sprintf((CStringHelper::isPlural($user->_points)) ? 'COM_COMMUNITY_POINTS':'COM_COMMUNITY_SINGULAR_POINT');?><li class="cFocus-karma jomNameTips" title="<?php echo JText::_('COM_COMMUNITY_KARMA'); ?>"><img src="<?php echo $karmaImgUrl; ?>" alt="" /></li> <?php echo $user->_points; ?>
<?php } ?>
</ul>
</div>
</div>
</div>
<div class="collapse js-collapse-about">
<div class="row-fluid">
<div class="span12">
<div><?php echo $about; ?></div>
<dl class="dl-horizontal">
<dt><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></dt>
<dd><?php echo JHTML::_('date', $registerDate , JText::_('DATE_FORMAT_LC2')); ?></dd>
<dt><?php echo JText::_('COM_COMMUNITY_LAST_LOGIN'); ?></dt>
<dd><?php echo $lastLogin; ?></dd>
<?php if( $multiprofile->name && $config->get('profile_multiprofile') ){ ?>
<dt><?php echo JText::_('COM_COMMUNITY_PROFILE_TYPE'); ?></dt>
<dd><?php echo $multiprofile->name;?></dd>
<?php } ?>
</dl>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end js-focus-content -->
<div class="js-focus-actions">

<div class="navbar">
<div class="navbar-inner">
<a class="btn btn-navbar js-collapse-btn">
<span class="caret"></span>
</a>
<div class="nav-collapse collapse js-collapse">
<ul class="nav">
<?php if ($config->get('enablesharethis') == 1 ) { ?>
<li>
<a href="javascript:void(0);" onClick="joms.bookmarks.show('<?php echo CRoute::getExternalURL( 'index.php?option=com_community&view=profile&userid=' . $profile->id ); ?>')"><i class="joms-icon-share"></i><?php echo JText::_('COM_COMMUNITY_SHARE')?></a>
</li>
<?php } ?>
<?php if($isLikeEnabled){?>
<li id='like-profile-<?php echo $profile->id; ?>'><a href="javascript:void(0);" onclick="<?php echo ($isUserLiked > 0) ? 'joms.like.newDislike(this)' : 'joms.like.newLike(this)' ?>;" class="<?php if($isUserLiked > 0){ ?> js-focus-like <?php }?>"><i class="joms-icon-thumbs-up"></i><span><?php echo $likes ?></span> <?php echo JText::_('COM_COMMUNITY_LIKE')?></a></li>
<?php }?>
<?php echo $reportsHTML; ?>
<li><span><i class="joms-icon-eye"></i><?php echo JText::sprintf('COM_COMMUNITY_PROFILE_VIEW_RESULT', number_format($user->getViewCount()) ) ;?></span></li>
</ul>
<!-- remove checking to display Options button anyways -->
<ul class="nav pull-right">
<li class="dropup">
<a href="#" class="js-navbar-options"><?php echo JText::_('COM_COMMUNITY_VIDEOS_OPTIONS')?></a>
<ul class="dropdown-menu pull-right">
<!-- change avatar -->
<?php if($isMine || COwnerHelper::isCommunityAdmin()){ ?>
<li><a tabindex="-1" href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a></li>
<?php if( COwnerHelper::isCommunityAdmin() ){?>
<!-- ban / unban -->
<?php if( !$isMine ){?>
<?php if(!$blocked){?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.banUser('<?php echo $profile->id; ?>', '0' );"><?php echo JText::_('COM_COMMUNITY_BAN_USER')?></a></li>
<?php } else {?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.banUser('<?php echo $profile->id; ?>', '1' );"><?php echo JText::_('COM_COMMUNITY_UNBAN_USER')?></a></li>
<?php }?>
<?php } ?>
<!-- stick feature -->
<?php if ($profile->featured) { ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.featured.remove('<?php echo $profile->id;?>','search');"><?php echo JText::_('COM_COMMUNITY_REMOVE_FEATURED')?></a></li>
<?php }else { ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.featured.add('<?php echo $profile->id;?>','search');"><?php echo JText::_('COM_COMMUNITY_MAKE_FEATURED')?></a></li>
<?php } ?>
<?php } ?>


<!-- visible on phone/tablet -->
<?php if($isMine || COwnerHelper::isCommunityAdmin()) {?>
<!-- Change cover button -->
<?php if(!$profile->defaultCover){?>
<li class="hidden-desktop">
<a href="javascript:void(0)" data-cover-context="profile" onclick="joms.cover.reposition(this, <?php echo $profile->id; ?>,'<?php echo JText::_("COM_COMMUNITY_CANCEL_BUTTON")?>','<?php echo JText::_("COM_COMMUNITY_SAVE_BUTTON")?>');"><?php echo JText::_('COM_COMMUNITY_REPOSITION_COVER')?></a>
</li>
<?php }?>
<li class="hidden-desktop">
<a href="javascript:void(0)" data-cover-context="profile" onclick="joms.cover.select(this, <?php echo $profile->id; ?>);" ><?php echo JText::_('COM_COMMUNITY_CHANGE_COVER'); ?></a>
</li>
<?php }?>

<!-- change alias: user can change their own alias -->
<?php if($isSEFEnabled){?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.updateURL('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_PROFILE_CHANGE_ALIAS');?></a></li>
<?php }?>
<!-- profile picture / cover -->
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.removePicture('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_REMOVE_PROFILE_PICTURE');?></a></li>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.removeCover('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_REMOVE_PROFILE_COVER');?></a></li>
<!-- edit preference -->
<?php if($isMine){?>
<li><a tabindex="-1" href="<?php echo CRoute::_('index.php?option=com_community&view=profile&task=preferences'); ?>"><?php echo JText::_('COM_COMMUNITY_EDIT_PREFERENCES');?></a></li>
<?php if(!empty($profile->profilevideo)){?>
<li><a tabindex="-1" href="javascript:void(0);" onClick="joms.videos.removeConfirmProfileVideo(<?php echo $profile->id?>,<?php echo $profile->profilevideo; ?>)"><?php echo JText::_('COM_COMMUNITY_VIDEOS_REMOVE_PROFILE_VIDEO');?></a></li>
<?php }?>
<?php }?>
<?php } ?>
<!-- block user: any none mine can do block -->
<?php if(!$isMine){?>
<?php if(!$isBlocked){ ?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.confirmBlockUser('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_BLOCK_USER');?></a></li>
<?php } else {?>
<li><a tabindex="-1" href="javascript:void(0);" onclick="joms.users.confirmUnBlockUser('<?php echo $profile->id;?>');"><?php echo JText::_('COM_COMMUNITY_UNBLOCK_USER');?></a></li>
<?php }?>
<?php } ?>
</ul>
</li>
</ul>

</div><!-- /.nav-collapse -->
</div><!-- /navbar-inner -->
</div>

</div>
</div>

10 years 6 days ago
Licenses:

Hi, David.

I see that you don't give up :)

My instructions are here: www.jomsocial.com/forum/profile-universa...s/25124-karma#124512

So what you need to do is copy this file:

ROOT/components/com_community/templates/jomsocial/layouts/profile/focus.php

to:

ROOT/templates/socialize/html/com_community/layouts/profile (if you don't have any of those folders, feel free to create them)

Then edit this file and add this code:

<?php echo JText::_('COM_COMMUNITY_KARMA') . $user->_points ;?>

below this code (line 337)
<img src="<?php echo $badge->current->image;?>" alt="<?php echo $badge->current->title;?>" class="joms-focus__badges <?php echo ($profile->featured == true) ? 'featured' : ' '; ?>"/>

Remember to override language constant just like I wrote you.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 6 days ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired

MIchal,
Thank you for sharing all of this with me. I believe I have done just what you instructed. The "Points" still are not showing up. I know you are busy, but when you have a second, would you mind looking at what I have and letting me know what I am missing?

Thanks,

David
PS: No, I don't give up. What's the sense in doing something if you can't do it right and if your just going to give up!

10 years 6 days ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 0
Licenses:
JomSocial Active Publisher Active AdAgency Expired Socialize Expired


MIchal,
You've done it! It works. I just noticed that where it's placing the points. Look at my attached screen shot. I will worry about moving them and making it look nice in just a bit. Right now I am overwhelmed that I was able to get this to work. Thank you so much. I would close this as fixed, but I don't seem to have the button that allows me to open a new post and I may have more questions. Now, for one, how do I add a space between score and the number, "Score11" to look like this "Score = 11"?

Thanks,

David

Attachments:
10 years 6 days ago
Licenses:

Hi, David.

Just edit language constant from "Score" to "Scrore: ". This will do the trick.
Now all you need is to style this block with some css to display it where you want it... but it require css skills.
So, please consider to upgrade your skills ;) (there are some css tutorials and documentation in web) or hire a developer:
www.jomsocial.com/jomsocial-developers


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW