PDA

View Full Version : vB4 profile questions


Bulent Tekcan
03-03-2012, 07:29 PM
Hello,

Before I used this code in postbit_legacy for signature disable or enable per user.

<if condition="$bbuserinfo['usergroupid'] != 1">
<if condition="$post['signature'] AND $post[field6]!= 'No'">
<!-- sig -->
<div>
<hr noShade SIZE="2"><br />
$post[signature]
</div>
<!-- / sig -->
</if>
</if>



But how can use same thing for vb4 postbit_legacy ? Because code like that

</vb:if>
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>


Regards,

Lynne
03-03-2012, 09:21 PM
Change <if to <vb:if and </if to </vb:if in the two conditions. (I assume you will leave the template code for the signature alone.)

Bulent Tekcan
03-03-2012, 09:50 PM
I'm not good for code writing :( before I used 1st code with my 3.8.4 board for signature disabled per user based and very useful for us.If you write to me for vb4 I'll be happy.

Regards,

Lynne
03-04-2012, 04:41 PM
How about just:
<vb:if condition="$bbuserinfo['usergroupid'] != 1">
<vb:if condition="$post['signature'] AND $post[field6]!= 'No'">
<!-- sig -->
default signature stuff here
<!-- / sig -->
</vb:if>
</vb:if>

Bulent Tekcan
03-04-2012, 05:14 PM
Big thanks Lynne

Regards,