Quote:
Originally Posted by Mum
I'm trying to do this, but i can't get it working. this is the code i've used, and i've double checked the group, and field numbers are correct. I've added it in postbit after the signature code that i've quoted.
Code:
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="in_array($post[membergroupids],array(6))">
<div id="vBadvertisement">===PAID ADVERTISEMENT===
<br /><a href=$post[field24]>$post[field25]</a>
<br />$post[field26]
<br />==== ==== ==== ==== ====</div>
</if>
What am i doing wrong?
|
Here is dump from my (working) template:
Code:
<if condition="in_array($post[membergroupids],array(26))">
<if condition="$post[field19]">
<div class="vBadvertisement">
<span style="text-align: right; font: bold 9px arial, sans-serif; color: #666633;">Paid Ad</span>
<br /><a href=$post[field18]><span style="color: #990000;font-weight: bold;">$post[field19]</span></a>
<br />$post[field20]
<br /><br />
<a href="http://www.foo.org/forum/subscription.php"><span style="text-align: right; font: bold 9px arial, sans-serif; color: #666633;">How to set it up?</span></a>
</div>
</if>
</if>
"26" is a separate "sponsor" usergroup which is being set up in
vB admincp -> Usergroups and in
vB admincp -> Paid Subscriptions
"17", "18", "19" are the numbers of custom profile fields declared in admincp.
Does it help you?