You need to login in order to post within this forum.
or
You need to login in order to reply to topics within this forum.
or
You need to login in order to reply to topics within this forum.
If you make this modification, when a guest visits your site and opens a forum, they will not see the permissions. If you require a login and they select post or reply, they will get the the screen to login or register and one of the messages above, which is the normal phpBB response. After the user logs in, permissions are displayed normally.
To hide permissions from guests, open the >styles>prosilver>template>viewforum_body.html file.
For phpBB 3.3.2 to 3.3.12 locate the following code: (about line 310)
Code: Select all
<!-- IF S_IS_POSTABLE and rules|length -->
Code: Select all
<!-- IF S_IS_POSTABLE and S_USER_LOGGED_IN and rules|length -->
For phpBB 3.3 and 3.2 locate the following code: (about line 308)
Code: Select all
<!-- IF S_DISPLAY_POST_INFO -->
<div class="stat-block permissions">
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
</div>
<!-- ENDIF -->
Code: Select all
<!-- IF S_DISPLAY_POST_INFO and S_USER_LOGGED_IN -->
<div class="stat-block permissions">
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
</div>
<!-- ENDIF -->
For phpBB 3.3.1 locate the following code: (about line 310)
Code: Select all
<!-- IF S_IS_POSTABLE and rules|length -->
<div class="stat-block permissions">
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
</div>
<!-- ENDIF -->
Code: Select all
<!-- IF S_IS_POSTABLE and rules|length -->
<!-- IF S_USER_LOGGED_IN -->
<div class="stat-block permissions">
<h3>{L_FORUM_PERMISSIONS}</h3>
<p><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></p>
</div>
<!-- ENDIF -->
<!-- ENDIF -->
Modified files for phpBB v3.3.0 through 3.3.11 (If you've made other changes to your file, do not use the download)
After you make the change or install the file, log into ACP (Admin Control Panel) and purge the cache so your change takes effect.