Currently there is no separate permission for viewing posts independent of their thread links. However, you can use templates conditionals to accomplish the same thing.
First make sure the users in question have permission to view threads. Then go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD
Find this code and add the red code. In this example the conditional disallows viewing of posts for guests. Other applications will use a different condition:
This will make it so posts only show up for users who are not guests. Like I said, other applications will use a different condition. If you have multiple styles then this change will need to be applied to each style.
You may also want to add an "else" to the code so a message is displayed for users who don't have access. For example:
First make sure the users in question have permission to view threads. Then go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD
Find this code and add the red code. In this example the conditional disallows viewing of posts for guests. Other applications will use a different condition:
Code:
<!-- end content table --> $spacer_close <!-- / end content table --> [color=red]<if condition="$bbuserinfo['usergroupid'] != 1">[/color] <if condition="$show['threadedmode'] OR $show['hybridmode']"> <!-- thread posts list --> $threadlist <!-- /thread posts list --> </if> <div id="posts">$postbits</div> [color=red]</if>[/color] <!-- start content table --> $spacer_open <!-- / start content table -->
You may also want to add an "else" to the code so a message is displayed for users who don't have access. For example:
Code:
<!-- end content table --> $spacer_close <!-- / end content table --> [color=red]<if condition="$bbuserinfo['usergroupid'] != 1">[/color] <if condition="$show['threadedmode'] OR $show['hybridmode']"> <!-- thread posts list --> $threadlist <!-- /thread posts list --> </if> <div id="posts">$postbits</div> [color=red]<else /> $spacer_open <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="alt1"> <div>Message that is displayed if user does not have permission to view posts.</div> </td> </tr> </table> $spacer_close </if>[/color] <!-- start content table --> $spacer_open <!-- / start content table -->
Comment