• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.0 Disable Likes and Trophies

Neil E.

Active member
#2
I used TMS to remove all traces of trophies. The same could be done for likes.

remove from trophy
<xen:require css="trophy.css" />
<div class="trophy" id="trophy-{$trophy.trophy_id}">
<div class="points">{$trophy.trophy_points}</div>
<xen:if is="{$trophy.award_date}">
<div class="awarded">{xen:phrase awarded}: <xen:datetime time="$trophy.award_date" /></div>
</xen:if>
<div class="info">
<h3 class="title">{$trophy.title}</h3>
<p class="description">{xen:raw $trophy.description}</p>
</div>
</div>

remove from trophy.css
.trophy
{
overflow: hidden; zoom: 1;
}
.trophy .points
{
float: left;
width: 65px;
text-align: center;
font-size: 18pt;
font-weight: bold;
}

.trophy .awarded
{
float: right;
font-size: 11px;
color: @mutedTextColor;
}
.trophy .info
{
margin-left: 70px;
}

.trophy .info .title
{
font-size: 11pt;
font-weight: bold;
}

.trophy .info .description
{
font-size: 11px;
color: @mutedTextColor;
}

remove from spam_cleaner
<dt>{xen:phrase trophy_points}:</dt>
<dd>{xen:number $user.trophy_points}</dd>

remove from sidebar_vistor_panel
<dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>

remove from member_view
<dt>{xen:phrase trophy_points}:</dt>
<dd><a href="{xen:link 'members/trophies', $user}" class="OverlayTrigger">{xen:number $user.trophy_points}</a></dd>

<xen:if is="{$canViewWarnings}">
<dt>{xen:phrase warning_points}:</dt><dd>{xen:number $user.warning_points}</dd>
</xen:if>

remove from member_trophies
<xen:title>{xen:phrase trophies_awarded_to_x, 'name={$user.username}'}</xen:title>
<xen:container var="$head.noindex">
<meta name="robots" content="noindex" /></xen:container>
<xen:navigation>
<xen:breadcrumb href="{xen:link full:members, $user}">{$user.username}</xen:breadcrumb>
</xen:navigation>
<div class="section">
<xen:if is="{$trophies}">
<ol class="overlayScroll">
<xen:foreach loop="$trophies" value="$trophy">
<li class="primaryContent">
<xen:include template="trophy" />
</li>
</xen:foreach>
</ol>
<div class="sectionFooter opposedOptions">
<span class="left">{xen:phrase total_points}: {xen:number $user.trophy_points}</span>
<div class="right">
<input type="button" class="button primary overlayOnly OverlayCloser" value="{xen:phrase close}" />
<a href="{xen:link help/trophies}" class="button">{xen:phrase view_all_available_trophies}</a>
</div>
</div>
<xen:else />
<div class="primaryContent">{xen:phrase x_has_not_been_awarded_any_trophies_yet, 'name={$user.username}'}</div>
<div class="sectionFooter">
<input type="button" class="button primary overlayOnly OverlayCloser" value="{xen:phrase close}" />
<a href="{xen:link help/trophies}" class="right button">{xen:phrase view_all_available_trophies}</a>
</div>
</xen:if>
<

remove from member_card
<!-- slot: pre_trophies -->
<dt>{xen:phrase trophy_points}:</dt> <dd><a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger">{xen:number $user.trophy_points}</a></dd>
<xen:if is="{$canViewWarnings}">
<dt>{xen:phrase warning_points}:</dt> <dd><a href="{xen:link members, $user}" class="concealed">{xen:number $user.warning_points}</a></dd>
</xen:if>

remove from help_trophies
<xen:title>{xen:phrase trophies}</xen:title>
<xen:if is="{$trophies}">
<ol class="section">
<xen:foreach loop="$trophies" value="$trophy">
<li class="primaryContent">
<xen:include template="trophy" />
</li>
</xen:foreach>
</ol>
<xen:else />
<div class="section">{xen:phrase no_trophies_have_been_created_yet}</div>
</xen:if>

remove from alert_user_trophy
{xen:phrase you_have_been_awarded_a_trophy_x,
'trophy=<a href="{xen:link members/trophies, $visitor}" class="PopupItemLink OverlayTrigger">{$trophy}</a>'}

Basically the TMS has a search field and and a replace field. Everything I've shown goes in the search field. Nothing is put in the replace field. This means the code never gets executed. You may not need to do every location, this was just my way of having no trophies EVER.
 

Neil E.

Active member
#3
A template search for "like" returns 34 templates. Do a Ctrl+F for "like" in each one. You'll find the templates that need changing.
A searches for "likes" returns 21 templates.
 

Jeremy

Well-known member
#6
You'll need to modify member_notable to remove the necessary tab. Those instructions were written before 1.2 was released.
 

Neil E.

Active member
#8