Quote:
Originally Posted by Reg Car
This seems like an awesome hack. Great Idea.
I am still quite new to VB and Code.
Is it possible to stop guests seeing a thread after the first three posts (sorry for being difficult)?
I just think if the guest sees the convo start a little, he or she would be more inclined to register or login.
Most of my threads don't go past 10 posts. So I'm thinking that having guests only allowed to read the first page of a thread may not really have much of an effect on my forums, which I why I ask about stopping them after the first three posts.
And can we tailor the error message to say that they need to log in or register before they can keep reading the thread?
Sorry for the Noob questions. :bunny:
Thanks
Reggie
|
hmm, try using this one
add this to the very beginning of your postbit or postbit_legacy
Code:
<if condition="$post[postcount] > 3 and !$bbuserinfo['userid']">
<!-- Start Error Message -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr><td class="alt1" id="td_post_$post[postid]">
<div><b>Guests may only view 3 posts of a thread. You need to register to get full access. <a href="register.php" rel="nofollow">Click here to register.</a>
</b></div>
</td></tr>
</table>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- End Error Message -->
<else />
then add to the end of your template
but this one will add an error message in
each post higher than 3