Re: HideIf ip= OR ip=

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19482
interpreted = N
texte = >I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [HIDEIF] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [MATH]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: HideIf ip= OR ip= (Michael Winston 1998)
  2. Re: HideIf ip= OR ip= (Brian B. Burton 1998)
  3. Re: HideIf ip= OR ip= (Michael Winston 1998)
  4. Re: HideIf ip= OR ip= (PCS Technical Support 1998)
  5. Re: HideIf ip= OR ip= (Christer Olsson 1998)
  6. HideIf ip= OR ip= (Sue Ann Sanders 1998)
>I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [hideif] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [math]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Reversed words (1997) webcat- multiple selection in input field (1997) blank page from template (1997) Can't use old cart file (was One more try) (1997) [ConvertChars] problem (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WC1.6 to WC2 date formatting (1997) wc 2 pro users - sites, quotes wanted (1997) Is there an alternative to emailer? (1999) WebCatalog f2 Installation (1997) multiple databases (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Re[2]: Re[2]: running WebCatalog under Apache on NT? (2000) WebCatalog f2 Installation (1997) Limit to variables being passed??? (1998) show all problem (1997) Can't use old cart file (was One more try) (1997) [Announce]: Web server security and password protection (1997) Tab Charactor (1997) [defined]ish (1997)