Posted April 4, 20178 yr Hello, Is it possible with some way to disable "Unlike this" when a user likes a post? or if not, can anyone create a plugin? I think it is useful for any who uses hidden content and unhide that, when someone hits "Like this" button.
April 5, 20178 yr Hey, So far, it's only doable via a template edit. However, if a user visits the specific unlike URL, then it will unlike the content.
April 5, 20178 yr Author Exactly, this is the bad scenario, if a user like a post and got the unhidden content then it's easy to unlike that and get hide it again (the reputation goes nowhere). I know it's not fair but it is possible to happen.
April 5, 20178 yr Community Expert Open your theme’s HTML: core → front → global → reputation Remove this whole part that contains the “unlike” {{if $content->canGiveReputation( -1 )}} <a href='{$content->url( 'rep' )->setQueryString( 'rep', -1 )->csrf()}' data-action="giveReputation" class='ipsButton ipsButton_like ipsButton_veryLight'><i class='fa fa-times'></i> <span class='ipsHide' data-role='repCount'>{$content->reputation()}</span> {lang="unlike"}</a> {{endif}} Also: core → front → global → reputation_mini {{if $canRepDown}} <a href='{$giveRepUrl->setQueryString( array( 'rep' => -1, 'mini' => 1 ) )->csrf()}' data-action="giveReputation">{lang="unlike"}</a> {{endif}} Edited April 5, 20178 yr by opentype
Archived
This topic is now archived and is closed to further replies.