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:

RE: Deafness (1998) Slow applescript context ... (2000) can WC render sites out? (1997) RAM variables (1997) Counting LineItems (2000) SiteGaurd file Cache vs webcatalog cache (1997) Problem during evaluation of WebCatalog (1998) Multiple catalog databases and showcart (1997) [subtotal] and others (1997) Re:2nd WebCatalog2 Feature Request (1996) WebCat2 - [include] tags (1997) WebCatalog 3.0.4 alias crash bug? (2000) I'm new be kind (1997) bug in [SendMail] (1997) WebCat2b12--[searchstring] bug (1997) Virtual hosting and webcatNT (1997) Quit revisited (1997) Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000) PCS Emailer's role ? (1997) international time (1997)