XenForo Tutorials
Hide the messages of your forum from the visitors
Submitted by Bi0S, 23-06-2017, 01:46 AM, Thread ID: 38081
Thread Closed
RE: Hide the messages of your forum from the visitors
20-07-2017, 06:33 AM
#2 23-06-2017, 01:46 AMBi0S Wrote: hide the messages of your forum from the visitors
This tutorial will show you how to hide the messages of your forum from the visitors.
Search message and replace all by :
Code:<xen:require css="message.css" />
<xen:require css="bb_code.css" />
<li id="{$messageId}" class="message{xen:if $message.isDeleted, ' deleted'}{xen:if '{$message.is_admin} OR {$message.is_moderator}', ' staff'}" data-author="{$message.username}">
<xen:include template="message_user_info">
<xen:map from="$message" to="$user" />
</xen:include>
<div class="messageInfo">
<br /><br />
<xen:if is="!{$visitor.user_id}">
<p class="importantMessage">Hello guests. Please <a href="{xen:link 'register/'}">Register</a> or <a href="{xen:link 'login/'}">Log-in</a> To see the messages</p>
<xen:else />
<xen:if is="{$message.isNew}"><span class="newIndicator"><span></span>{xen:phrase new}</span></xen:if>
<xen:if hascontent="true">
<ul class="messageNotices">
<xen:contentcheck>
<xen:if is="{$message.isDeleted}">
<li class="deletedNotice">{xen:phrase this_message_has_been_removed_from_public_view}</li>
<xen:elseif is="{$message.isModerated}" />
<li class="moderatedNotice">{xen:phrase this_message_is_awaiting_moderator_approval_and_is_invisible_to_normal}</li>
</xen:if>
</xen:contentcheck>
</ul>
</xen:if>
<div class="messageContent">
<article><blockquote class="messageText ugc baseHtml">{xen:raw $message.messageHtml}</blockquote></article>
{xen:raw $messageContentAfterTemplate}
</div>
</xen:if>
<xen:if is="{$visitor.content_show_signature} && {$message.signature}">
<div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
</xen:if>
{xen:raw $messageAfterTemplate}
<div id="likes-{$messageId}"><xen:if is="{$message.likes}"><xen:include template="likes_summary" /></xen:if></div>
</div>
</li>
Save and Enjoy!
Thats a really nice way of accomplishing this, I followed a different tutorial and it required editing several files. Very efficient!
Users browsing this thread: 1 Guest(s)