Disable Likes

Don’t your users like Likes?

Let’s see how to disable them!

Change the relevant site settings

In your site settings search for post menu and remove the like button:

This will disable the :heart: button on posts

Since Likes are also used to increase the user Trust Level, these settings will need to be modified:

  • tl2 requires likes received (set to 0)
  • tl3 requires likes received (set to 0)
  • tl2 requires likes given (set to 0)
  • tl3 requires likes given (set to 0)

There are many other settings related to the Likes but, since the Likes are deactivated, we are not interested in changing them.

Hide references to Likes

There will still be references to Likes on the site, for example in the users profile:

And also on other pages.

To avoid confusion we can even hide this user setting:

Copy and paste this CSS in a new theme component and add the component to your main theme(s)

/*------USERS PROFILE-----*/

.top-section.most-liked-section, 
.activity-nav a[href*="/activity/likes-given"] {
  display: none;
}

.stats-section li {
  &.linked-stat a[href*="/activity/likes-given"], 
  &:last-of-type {
    display: none;
  }
}

.user-secondary-navigation a[href*="/notifications/likes-received"], 
.control-group.notifications .controls.controls-dropdown:last-child, 
.activity-nav.mobile-nav .drop.expanded li a[href*="/activity/likes-given"], 
.notifications-nav.mobile-nav .drop.expanded li a[href*="/notifications/likes-received"] {
  display: none;
}

.top-section {
  .replies-section, .topics-section {
    display: none;
  }
}


/*-----USERS DIRECTORY-----*/

.users-directory.directory {
  .sortable {
    &[title*="Received"], &[title*="Given"] {
      display: none;
    }
  }

  td {
    &:nth-child(2), &:nth-child(3) {
      display: none;
    }
  }
}

.mobile-view .users-directory.directory .user .user-stat {
  &:nth-of-type(2), &:nth-of-type(3) {
    display: none;
  }
}

/*-----ABOUT PAGE-----*/

.about.stats tr:nth-child(6) {
    display:none;
}

Update Discobot tutorial

If the interactive Discobot tutorial is active, the users will end to a step where they will be asked to like a post :scream:.

New users will find themselves in a situation where it will be impossible to move forward:


But hey, Discobot isn’t Skynet (at least not yet :smirk:) so we can get around that easily!

Let’s start editing @discobot’s messages from your /admin/customize/site_texts page.

You can edit the text with something like this:

Do you know that you can skip steps in this tutorial? Try typing `skip` in your next reply!

Do not use the variable %{skip_trigger}. The skip_trigger variable is not available in those translation strings.


Tips and Tricks (optional)

Disable badges with references to Likes

There are badges that are assigned according to the Likes received and given. By deactivating the :heart: function they become useless and would only create confusion among users. It is advisable (but not mandatory) to deactivate these badges:

  • First Like
  • New user of the month
  • Admired
  • Crazy in Love
  • Empathetic
  • Gives Back
  • Higher Love
  • Respected
  • Appreciated
  • Out of Love
  • Thank You
  • Welcome
  • Great Reply
  • Great Topic
  • Good Reply
  • Good Topic
  • Nice Reply
  • Nice Topic

Revoke badges query

TBD

Reset the Like count (not recommended)

If the site is already active and frequented by users you may want to reset the count of likes given and received. In this case follow Delete all the likes, but note that this is a last-resort reset! You must have a really good reason to do it. The solution of deactivate and hide Likes only with CSS is safer and certainly reversible in the future.

Summarize this topic

The “summarize this topic” button will no longer appear, since it requires a threshold of minimum likes in a topic to function.

22 Likes