The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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?
Code:
<!-- 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 --> Code:
(<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"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|