Back to vBulletin 3.8 Template Modifications

Show First Post Only To Unregistered User / Guest
Mod Version: 1.00, by Raptor

vB Version: 3.8.1 Rating: (5 votes - 4.60 average) Installs: 33
Released: 29 Apr 2009 Last Update: Never Downloads: 5
Not Supported Template Edits Re-usable Code Translations  

Ported from: Show First Post To Unregistered User

Thanks to ryans

Fully tested on 3.8.1 - probably works the same on 3.8.2+

This is just a simple hack that will show the first post to unregistered users / guests. The rest of the posts in the thread will ask them to login or register. This is a template hack. Of course you can edit your own message.

Additions / Changes / Ideas are welcome.

In Postbit Templates edit the postbit_legacy or the postbit template depending on which one you use.

Find:

Code:
<!-- message -->
<div id="post_message_$post[postid]">
	$post[message]
</div>
<!-- / message -->
Replace With:

Code:
<!-- message -->
<if condition="$show['member']">
		<div id="post_message_$post[postid]">
                $post[message]
		</div>				
		<else />				
		<if condition="$post[postcount] == 1">
		<div id="post_message_$post[postid]">
                $post[message]</div>
		</if>
		<else />
		<if condition="$show['guest']">
		<if condition="$post[postcount] != 1">
		<br><br>You Must be a registered member and logged in to view this response.  To Register <a href=register.php>Please Click Here</a>
		<br><br>
		</if></if></if>
<!-- / message -->

Download

No files for download.

Supporters / CoAuthors

  • Raptor

Screenshots

Click image for larger version
Name:	firstpostgurst.jpg
Views:	1676
Size:	77.2 KB
ID:	98483  

Similar Mods

Show Thread Enhancements Show First Post To Unregistered User vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024