vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 06-13-2004, 01:46 PM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Question Announcement condition(s)

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:
Code:
<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

Last edited by cLord; 10-15-2009 at 05:46 AM.
  #2  
Old 06-13-2004, 03:20 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Announcement condition(s)

I believe this will work:

<if condition="$bbuserinfo['posts'] == X OR IPADDRESS == '123.456.789'">
  #3  
Old 06-13-2004, 03:46 PM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Default Re: Announcement condition(s)

Quote:
Originally Posted by Brian
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!
  #4  
Old 06-13-2004, 03:49 PM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Default Re: Announcement condition(s)

Forget the last question Brian, I tried it and it works...

Thanks for your help Sir!

Last edited by cLord; 06-13-2004 at 04:06 PM.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:37 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.