Hi Andrew,
I will report this as a bug.
thank you
Hi Andrew,
This is how to fix this , open this file omponents/com_community/templates/default/profile.preferences.php, find this code :
<li>
<label for="profileLikes" class="form-label">
<?php echo JText::_('COM_COMMUNITY_PREFERENCES_PROFILE_LIKES'); ?>
</label>
<div class="form-field">
<label class="label-checkbox">
<input type="checkbox" class="input checkbox title jomNameTips" title="<?php echo JText::_('COM_COMMUNITY_PROFILE_LIKE_ENABLE_DESC'); ?>" value="1" id="profileLikes-yes" name="profileLikes" <?php if ($params->get('profileLikes', 1) == 1) { ?>checked="checked" <?php } ?>/>
<?php echo JText::_('COM_COMMUNITY_PROFILE_LIKE_ENABLE'); ?>
</label>
</div>
</li><?php if($config->get('likes_profile')) { ?>
<li>
<label for="profileLikes" class="form-label">
<?php echo JText::_('COM_COMMUNITY_PREFERENCES_PROFILE_LIKES'); ?>
</label>
<div class="form-field">
<label class="label-checkbox">
<input type="checkbox" class="input checkbox title jomNameTips" title="<?php echo JText::_('COM_COMMUNITY_PROFILE_LIKE_ENABLE_DESC'); ?>" value="1" id="profileLikes-yes" name="profileLikes" <?php if ($params->get('profileLikes', 1) == 1) { ?>checked="checked" <?php } ?>/>
<?php echo JText::_('COM_COMMUNITY_PROFILE_LIKE_ENABLE'); ?>
</label>
</div>
</li>
<?php } ?>Thanks, that works. Does that mean it is now going to automaticaly included as part of the code in next release or will I have to enter it in again?
Not sure how fixed this is suposed to be, but "Respect the profile likes option" does now fix the problem talked about in this post, however if it is set to On so a user can then choose if they want to allow profile likes, that part is still not working(i.e. no matter what they set it to a like button always appears on their profile.)
(forgot to say this is on version 3.2.1.5)
this issue already fixed in 3.2.1.5, have you tried it?
Ah, i think that is a new bug, already added to our bug list
for fixing this, open this file components/com_community/views/profile/view.html.php, find this code :
if ($isLikeEnabled = $like->enabled('profile')) {$isLikeEnabled = $like->enabled('profile') && $params->get('profileLikes',0)? 1 : 0;
if ($isLikeEnabled) {Great, that works, thanks!
You're welcome :)