Back to vBulletin 4.x Template Modifications

TW7S - Hiding Posts From Guests
Mod Version: 4.0.0, by LifesGreatestGift

vB Version: 4.0.x Rating: (3 votes - 5.00 average) Installs: 30
Released: 02 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This Will Hide EVERY post on the thread from Guest's

Open postbit_legacy or postbit (Works with both)

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
           {
vb:raw post.message}
      <
vb:else />
           <
br /><br />
           <
div style="text-align: center;">
           
Please login, or  <a href="./register.php"><u>register</u></ato view message content.
           </
div>
</
vb:if> 

This will JUST hide the threads PRIMARY (FIRST) post of the thread, and show the rest of the posts (replies to first post) to the guest's

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
               {
vb:raw post.message}
          <
vb:else />
               <
br /><br />
                         <
vb:if condition="$post[postcount] == 1">
                                      <
div style="text-align: center;">
                                      
Please login, or <a href="./register.php"><u>register</u></ato view message content.
                                      </
div>
                                <
vb:else />
                                      {
vb:raw post.message}
                         </
vb:if>
</
vb:if> 

This will SHOW the threads PRIMARY (FIRST) post of the thread, and HIDE the rest of the posts (replies to first post) to the guest's

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
               {
vb:raw post.message}
          <
vb:else />
               <
br /><br />
                         <
vb:if condition="$post[postcount] != 1">
                                      <
div style="text-align: center;">
                                      
Please login, or <a href="./register.php"><u>register</u></ato view message content.
                                      </
div>
                                <
vb:else />
                                      {
vb:raw post.message}
                         </
vb:if>
</
vb:if> 

Enjoy

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024