|
Show First Post Only To Unregistered User / Guest
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 --> 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
Screenshots |
|||||||||
Similar Mods
| Show Thread Enhancements Show First Post To Unregistered User | vBulletin 3.7 Template Modifications |