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:

Need relative path explanation (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) [WebDNA] Reserved Cart Headers (2008) TemplateCacheSize preference! (1998) WebCat B13 Mac CGI -- Frames question (1997) WC2b15 File Corruption (1997) WebCatalog [FoundItems] Problem - LONG - (1997) question: webmerchant connection (1997) PIXO support (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Dealer Locator (zip codes) (2003) Busted at the Border (1998) Comments in db? (1997) Search in 2 or more catalogs (1997) Summing fields (1997) How to archive....? (1998) Date Sorting (1997) Re:listfiles-looking for slick solution (1997) Referrer (2000) WebCatalog vs WebDNA (2002)