Jump to content

Disable "Unlike this" function


Ioannis D

Recommended Posts

Posted

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.

Posted

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.

Posted

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}}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...