Log in

View Full Version : How To Allow Viewing of Thread Links But Not Posts - Only the activated


bi11i
01-12-2005, 10:22 PM
I was looking at using this code in my SHOWTHREAD template in order to allow unregistered users to only view the thread titles, and not the contained posts. This actually works great, but how would i change the code to allow this type of behavior for those who are registered and have completed their activation emails? <!-- end content table -->
$spacer_close
<!-- / end content table -->

<if condition="$bbuserinfo['usergroupid'] != 1">

<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>

<div id="posts">$postbits</div>

<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>

<!-- start content table -->
$spacer_open
<!-- / start content table -->same thing with PRINTTHREAD(<span class="smallfont"><em>$vboptions[bburl]/showthread.php?t=$threadid</em></span>)
</div>

<br />

<if condition="$bbuserinfo['usergroupid'] != 1">

$postbits

<else />

<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>

</if>

<br />

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">

here's the original post if this is too confusing: http://www.vbulletin.com/forum/showthread.php?t=110119