I can see the option to reposition the cover image. I'm able to drag the image up and down. I am not able to save the cover image in the desired position. The image always reverts to being top aligned.
Hi, Marin.
Its because your current template: Marin Open Studios 2014.
It hides "Save" and "Cancel" buttons when you reposition your cover... so you cant save final effect.
Test it: change template to Joomla! default: protostar and try to reposition the cover. "Save" and "Cancel" buttons will be visible and clickable. You finally can save repositioned cover :)
Thanks Michal,
I did test it out by switching templates. You're right - the buttons are visible with a different template. Can you tell me how to make the buttons visible with my current template?
Thanks!
Hi, Marin.
Basically you should ask template developer for help... but try this:
Comment this:
#community-wrap .js-focus-header .span4 .btn {
display: none;
}
#cProfileWrapper .js-focus-header .btn-primary {
display: none;
}
/* #cProfileWrapper .js-focus-header .btn-primary {
display: none;
} */
Hi,
I did contact RocketTheme support and they were able to help me get the "Cancel" and "Save" buttons visible again (for logged in users who want to reposition their cover image). However, the css tweak also made the "Send Message" and "Add as Friend" buttons visible for anonymous users who are viewing a members profile page. Makes sense since both sets of buttons are in the same position.
How can I remove the "Send Message" and "Add as Friend" buttons for anonymous users, while keeping the "Cancel" and "Save" buttons for logged in users?
Thanks again!
Hi, Marin.
You'll need to edit this file: ROOT/components/com_community/templates/default/modules/profile/userinfo.php
(WARNING! Core file hack! Please make safe copy before edit. Also this file will be overwritten during JomSocial upgrade, make a safe copy of customized file as well)
In line 10, replace this:
defined('_JEXEC') or die();
$js = 'assets/jqueryui/drag/jquery-ui-drag.js';
CAssets::attach($js, 'js');
?>
defined('_JEXEC') or die();
$js = 'assets/jqueryui/drag/jquery-ui-drag.js';
CAssets::attach($js, 'js');
$juser = JFactory::getUser();
?>
<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 class="span4 text-right">
<?php if ($juser->id != 0) { ?>
<!-- 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 ?>
<?php } ?>
</div>