PDA


View Full Version : Announcement condition(s)


cLord
06-13-2004, 02:46 PM
Hi,

I would like to display an announcement (text, image or whatever...) on my CMPS depending on the visitors IP address AND/OR postcount.
I know how to do this depending on the usergroup:<if condition="$bbuserinfo[usergroupid] == 6">
<-- custom text or image here -->
</if>But sure can use some help with the two other conditions...

ThanX in advance,
cLord ;)

Brian
06-13-2004, 04:20 PM
I believe this will work:

<if condition="$bbuserinfo['posts'] == X OR IPADDRESS == '123.456.789'">

cLord
06-13-2004, 04:46 PM
I believe this will work:

<if condition="$bbuserinfo['posts'] == X OR IPADDRESS == '123.456.789'">Can I make it like this:
<if condition="$bbuserinfo['posts'] <= X OR IPADDRESS == '123.456.789'">
So the announcement would be seen by members with less then X posts?

PS: The IP part works like a charm! :)

cLord
06-13-2004, 04:49 PM
Forget the last question Brian, I tried it and it works...

Thanks for your help Sir! :)