Log in

View Full Version : Help req. revising a conditional


NetRover
06-05-2008, 12:49 PM
Hi there, I was using an adsense code in postings to all members but it was only showing once in a thread which was ideal.

<if condition="$post[postcount] % $vboptions[maxposts] == 1">

decided to do an exclude on certain usergroups which does work

<if condition="!is_member_of($bbuserinfo, 5, 6, 7, 10, 14, 19)">

but now there as an advert under every posting and not just the first one on each thread.
Reply With Quote

Opserty
06-05-2008, 01:04 PM
Combine them together...

E.g.

($post[postcount] % $vboptions[maxposts] == 1) AND (!is_member_of($bbuserinfo, 5, 6, 7, 10, 14, 19))

NetRover
06-05-2008, 01:49 PM
Thank you for such a speedy reply, I didn't get any help at vb.

I'll give that a go. cheers :)

Dismounted
06-06-2008, 07:20 AM
I didn't get any help at vb.
I'm guessing vb = vBulletin.com? vBulletin.com is only for help with default vBulletin. vBulletin.org is for help with modifications.