Hide Topic Details from Users

Hide topic view/reply counts and the last poster name to anyone who is not an admin/mod

Requested by newuser66 in this topic, this little snippet will hide topic view/reply counts and the last poster name to anyone who is not an administrator or moderator.

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/viewforum_body.html
#
#-----[ FIND ]------------------------------------------
#
                   <dd class="posts">{L_REPLIES}</dd>
                   <dd class="views">{L_VIEWS}</dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
                <!-- IF U_ACP or U_MCP -->
                   <dd class="posts">{L_REPLIES}</dd>
                   <dd class="views">{L_VIEWS}</dd>
                <!-- ENDIF -->
#
#-----[ FIND ]------------------------------------------
#
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
             <!-- IF U_ACP or U_MCP -->
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
             <!-- ENDIF -->
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn><!-- IF U_ACP -->{L_POST_BY_AUTHOR}

    {topicrow.LAST_POST_AUTHOR_FULL}<!-- ENDIF -->
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br

    />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>

Hide for certain forums - simply add the forum_id in. It's set up for 2 forums, so I'll assume from that you can work out how to do it for 1 or more forums

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/viewforum_body.html
#
#-----[ FIND ]------------------------------------------
#
                   <dd class="posts">{L_REPLIES}</dd>
                   <dd class="views">{L_VIEWS}</dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
         <!-- IF FORUM_ID == X  or FORUM_ID == X -->
            <!-- IF U_ACP or U_MCP -->
                <dd class="posts">{L_REPLIES}</dd>
                <dd class="views">{L_VIEWS}</dd>
            <!-- ENDIF -->
         <!-- ELSE -->
            <dd class="posts">{L_REPLIES}</dd>
            <dd class="views">{L_VIEWS}</dd>
         <!-- ENDIF -->
#
#-----[ FIND ]------------------------------------------
#
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
          <!-- IF FORUM_ID == X  or FORUM_ID == X -->
             <!-- IF U_ACP or U_MCP -->
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
             <!-- ENDIF -->
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>
                   <!-- IF U_ACP -->{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}<!-- ENDIF -->
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br/>{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
          <!-- ELSE -->
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
          <!-- ENDIF -->

Hide for all except certain forums - simply add the forum_id in. It's set up for 2 forums, so I'll assume from that you can work out how to do it for 1 or more forums

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/viewforum_body.html
#
#-----[ FIND ]------------------------------------------
#
                   <dd class="posts">{L_REPLIES}</dd>
                   <dd class="views">{L_VIEWS}</dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
         <!-- IF not FORUM_ID == X  or not FORUM_ID == X -->
            <!-- IF U_ACP or U_MCP -->
                <dd class="posts">{L_REPLIES}</dd>
                <dd class="views">{L_VIEWS}</dd>
            <!-- ENDIF -->
         <!-- ELSE -->
            <dd class="posts">{L_REPLIES}</dd>
            <dd class="views">{L_VIEWS}</dd>
         <!-- ENDIF -->
#
#-----[ FIND ]------------------------------------------
#
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
#
#-----[ REPLACE WITH ]------------------------------------------
#
          <!-- IF not FORUM_ID == X  or not FORUM_ID == X -->
             <!-- IF U_ACP or U_MCP -->
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
             <!-- ENDIF -->
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>
                   <!-- IF U_ACP -->{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}<!-- ENDIF -->
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br/>{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
          <!-- ELSE -->
                <dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
                <dd class="views">{topicrow.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
                <dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
                   <a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{L_POSTED_ON_DATE} {topicrow.LAST_POST_TIME}</span>
                </dd>
          <!-- ENDIF -->