Re: HideIf ip= OR ip=

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19485
interpreted = N
texte = At 12:17 PM -0800 8/17/98, Sue Ann Sanders is rumored to have typed: > 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.Switch your arguements: [hideif 204.107.136^[ipaddress]][include email.txt][/hideif]. Try reading *your* HIDEIF as though it were a real sentence. You're saying, Hide this if the client's IP address contains the string '204.107.136'.If you add more to the IP address (another IP, e.g.), you're saying Hide this if the client's IP address contains the string '204.107.136,204.107.138'.The more you add to the string, the less likely the [IPADDRESS] will contain it. In fact, once the string on the right is longer than an IP address, it will be impossible for the IPADDRESS to contain it.By switching the order of the args, you're saying: Hide this if the string 204.107.136 contains the client's IP address.MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 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)
At 12:17 PM -0800 8/17/98, Sue Ann Sanders is rumored to have typed: > 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.Switch your arguements: [hideif 204.107.136^[ipaddress]][include email.txt][/hideif]. Try reading *your* HIDEIF as though it were a real sentence. You're saying, Hide this if the client's IP address contains the string '204.107.136'.If you add more to the IP address (another IP, e.g.), you're saying Hide this if the client's IP address contains the string '204.107.136,204.107.138'.The more you add to the string, the less likely the [ipaddress] will contain it. In fact, once the string on the right is longer than an IP address, it will be impossible for the IPADDRESS to contain it.By switching the order of the args, you're saying: Hide this if the string 204.107.136 contains the client's IP address.MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 Michael Winston

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:

RE: upload pictures any solution (1999) search / summary (2005) AccountAuthorizer doesn't seem to work (1997) WebDNA versus ASP [OT] (2002) Enhancement Request for WebCatalog-NT (1996) setting taxable to true (1997) Problems reading files created by WC (1997) Searching multiple Databases (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) WebTen and WebCat (1997) Alternating colors (1997) Hiding HTML and breaking the page (1997) SMSI (Scott) clues?? Bug fixes for next WebDNA release (2005) ANNOUNCE: FREE ProcessWatch Webmaster utility (1998) Help name our technology! (1997) Simple way to create unique SKU (1997) Emailer setup (1997) Nested tags count question (1997) Welcome Back (was) Newbie Question (1999) referrer usage (1997)