Re: HideIf ip= OR ip

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19682
interpreted = N
texte = >I've got this hide/show code in a template. Any ideas why it isn't >working? > >[hideif [ipaddress1]=206.190.028.146] >[hideif [ipaddress1]^204.107.136.] >[include email.txt] >[/hideif] >[/hideif] You might try putting quotes around both sides of the hideif comparison, because just the other day PCS TEch Support made that suggestion to someone and the reply was that it fixed the problem. Apparently webcatalog was interpreting the ip addresses as a number instead of as text, and even though they *looked* exactly the same on both sides of the comparison, apparently when they got interpreted by webcat they STOPPED looking the same, and the comparison failed.So if you force webcat to look at both sides as text -- by surrounding both sides with quotes -- then maybe that may solve the problem without any other changes ... :)If that doesn't work, then it's likely that the [ipaddress1] value is an ip address which was NOT created by a webcatalog [ipaddress] tag somewhere else, and therefore it's not a 'normalized' IP address -- which means it does not have the leading zeros as in the .028 portion of the address in the first hideif. that means you simply have to normalize the [ipaddress1] before putting it into the hideif ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: HideIf ip= OR ip (Kenneth Grome 1998)
  2. Re: HideIf ip= OR ip (PCS Technical Support 1998)
  3. Re: HideIf ip= OR ip (Rob Marquardt 1998)
  4. Re: HideIf ip= OR ip (Sue Ann Sanders 1998)
  5. Re: HideIf ip= OR ip= (Michael Winston 1998)
  6. Re: HideIf ip= OR ip= (Brian B. Burton 1998)
  7. Re: HideIf ip= OR ip= (Michael Winston 1998)
  8. Re: HideIf ip= OR ip= (PCS Technical Support 1998)
  9. Re: HideIf ip= OR ip= (Christer Olsson 1998)
  10. HideIf ip= OR ip= (Sue Ann Sanders 1998)
>I've got this hide/show code in a template. Any ideas why it isn't >working? > >[hideif [ipaddress1]=206.190.028.146] >[hideif [ipaddress1]^204.107.136.] >[include email.txt] >[/hideif] >[/hideif] You might try putting quotes around both sides of the hideif comparison, because just the other day PCS TEch Support made that suggestion to someone and the reply was that it fixed the problem. Apparently webcatalog was interpreting the ip addresses as a number instead of as text, and even though they *looked* exactly the same on both sides of the comparison, apparently when they got interpreted by webcat they STOPPED looking the same, and the comparison failed.So if you force webcat to look at both sides as text -- by surrounding both sides with quotes -- then maybe that may solve the problem without any other changes ... :)If that doesn't work, then it's likely that the [ipaddress1] value is an ip address which was NOT created by a webcatalog [ipaddress] tag somewhere else, and therefore it's not a 'normalized' IP address -- which means it does not have the leading zeros as in the .028 portion of the address in the first hideif. that means you simply have to normalize the [ipaddress1] before putting it into the hideif ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

Serving images from databases (1998) Variable in a variable (2002) HELP WITH DATES (1997) WebCat/CyberStudio Compatibility (1998) I'm tired of all this! (2000) appending to my last post (1999) About WebCatalog and iTools 7 (2003) [Sum] function? (1997) 2.0.1 new commands and contexts (1997) possible, WebCat2.0 and checkboxes-restated (1997) Carts & Refering URLs (1997) Multiple Merchant Accounts? (1997) upgrading to windows 2000 (2001) Re:Merging databases (1997) How can I record purchases to a database? (1998) [BULK] [WebDNA] abstraction code can be tricky... (2012) Apache Question (2003) OT: Poll Results (2002) Searching (2005) Bug Report, maybe (1997)