Back to vBulletin 3.7 Template Modifications

Show First Post To Unregistered User
Mod Version: 1.00, by ryans

This modification is in the archives.
vB Version: 3.7.0 Rating: (0 vote - 0 average) Installs: 9
Released: 04 Jun 2008 Last Update: Never Downloads: 2
Not Supported Template Edits  

This is just a simple hack that will show the first post to unregistered users. The rest of the posts will ask them to login or register. This is a template hack

In Postbit Templates edit the postbig_legacy

Find

Code:
<div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
and replace it with

Code:
<if condition="$show['member']">
		<div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
		<else />
		<if condition="$post[postcount] == 1">
		<div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></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>
-Enjoy.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024