Vincent_imported
Trusted Member
- Joined
- Dec 1, 2010
- Messages
- 747
Hello,
If you want to show this message (There's a fix for the "Show" button too
)

To everyone, not just the Moderators and Administrators, then this can be done by editing one line of code
Go to /library/XenFor
Model/Post.php and change
to
Now, everyone will be able to see the message I posted above + they will be able to click the "Show" button and view the post. I personally don't want them to be able to view the post, so I changed, in the template post_deleted_placeholder, this line of code:
to
If you want to show this message (There's a fix for the "Show" button too


To everyone, not just the Moderators and Administrators, then this can be done by editing one line of code

Go to /library/XenFor

Code:
'deleted' => XenForo_Permission::hasContentPermission($nodePermissions, 'viewDeleted'),
Code:
'deleted' => true,
Now, everyone will be able to see the message I posted above + they will be able to click the "Show" button and view the post. I personally don't want them to be able to view the post, so I changed, in the template post_deleted_placeholder, this line of code:
Code:
<a href="{xen:link threads/show-posts, $thread, 'post_id={$post.post_id}'}" class="MessageLoader control item show" data-messageSelector="#post-{$post.post_id}"><span></span>{xen:phrase show}</a>
Code:
<xen:if is="{$post.canInlineMod}"><a href="{xen:link threads/show-posts, $thread, 'post_id={$post.post_id}'}" class="MessageLoader control item show" data-messageSelector="#post-{$post.post_id}"><span></span>{xen:phrase show}</a></xen:if>