PDA

View Full Version : Hide post from guests


akee
01-01-2010, 03:44 PM
Hi,

I upgrade my forum to 4.0.0, and I missing 1 modification.
I used this code on vB 3.8.x

<if condition="$show['guest']">
<if condition="$post[postcount] != 1">
<br><br>Please login, or <a href=register.php>register</a>
<br><br>
</if></if>

How can I port this code to vB 4.0.0?

Thanks

Seven Skins
01-01-2010, 04:25 PM
Like this:

<vb:if condition="$show['guest']">
<vb:if condition="$post[postcount] != 1">
<br /><br />Please login, or <a href=register.php>register</a>
<br /><br />
</vb:if>
</vb:if>

akee
01-01-2010, 04:42 PM
Thanks, but doesn't work.
I put this in postbit_legacy template, and I see this text, please login, or register, and the full post text.
Can you help me?

LifesGreatestGift
01-02-2010, 10:17 AM
https://vborg.vbsupport.ru/showthread.php?t=231911

:)

akee
01-02-2010, 11:09 AM
Thanks man

I installed ;)

LifesGreatestGift
01-02-2010, 11:21 AM
Previous post updated.