Re: [WebDNA] [hideif]'s not working in [sendmail]
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101209
interpreted = N
texte = Suzanne Swift wrote:> Hi Donovan,> > You're right! Just got through a battery of testing and found the > problem seems to be with the [url] tags in the initial [hideif]s.> > this code doesn't hide things:> > [hideif [url][Comments1][/url]=]> ______________________________________________> Library News> ______________________________________________> > [hideif ||[url][raw][Comments1][/raw][/url]|^|[url][Comments1][/url]|] > [Comments1][/hideif]> [hideif ||[url][raw][Comments2][/raw][/url]|^|[url][Comments2][/url]|] > [Comments2][/hideif]> [hideif ||[url][raw][Comments3][/raw][/url]|^|[url][Comments3][/url]|] > [Comments3][/hideif]> [/hideif]> > > this code does:> > [hideif [Comments1]=[raw][Comments1][/raw]][hideif [Comments1]=]Well, your second code (though it may work), is not fail proof. WithoutURL's, the code is subject to harmful characters. For the record, this(template).. *Should* be a good format for all these solutions.:[hideif ||[url][raw][Comments1][/raw][/url]|^|[url][Comments1][/url]|]______________________________________________News______________________________________________[Comments1][hideif ||[url][raw][Comments2][/raw][/url]|^|[url][Comments2][/url]|] [Comments2][/hideif][hideif ||[url][raw][Comments3][/raw][/url]|^|[url][Comments3][/url]|] [Comments3][/hideif][/hideif]It Adds "URL's" to protects the hideif comparisons from a false result.Note.. the Code above assumes that you want to hide the entire block ifthe value of [Comments1] equals blank, or if it equals raw [Comments1].So, you don't need the second hideif statment for Comments1.. but I leftthe others in there (coments 1 and 2) in case those are passed over.. I don'tknow if they are needed (because I'm not sure how your system works), but theyshouldn't cause any problems.Now, having said all that.. I wonder if 3.x had [url] issues of some kind.I use this kind of format frequently:[hideif ||[url][raw][Comments1][/raw][/url]|^|[url][Comments1][/url]|]However, if the [url]'s are producing extra spaces or any sort ofwierd character in version 3.x.. it will not work. I have no ideaif that is the case.So, if you think it may be the case, you can make your existing codecleaner by going from:[hideif [Comments1]=[raw][Comments1][/raw]][hideif [Comments1]=]To:[hideif [raw][Comments1][/raw]=[Comments1]][hideif =[Comments1]]by putting the operator before the comparison, it should avoid theoperator confusion.We need to convince you to upgrade! ;-)Donovan-- Donovan D. Brooke PH/FAX: 1 (608) 291-2024----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
Suzanne Swift wrote:> Hi Donovan,> > You're right! Just got through a battery of testing and found the > problem seems to be with the
[url] tags in the initial
[hideif]s.> > this code doesn't hide things:> > [hideif
[url][Comments1][/url]=]> ______________________________________________> Library News> ______________________________________________> > [hideif ||
[url][raw][Comments1][/raw][/url]|^|
[url][Comments1][/url]|] > [Comments1][/hideif]> [hideif ||
[url][raw][Comments2][/raw][/url]|^|
[url][Comments2][/url]|] > [Comments2][/hideif]> [hideif ||
[url][raw][Comments3][/raw][/url]|^|
[url][Comments3][/url]|] > [Comments3][/hideif]> [/hideif]> > > this code does:> > [hideif [Comments1]=
[raw][Comments1][/raw]][hideif [Comments1]=]Well, your second code (though it may work), is not fail proof. WithoutURL's, the code is subject to harmful characters. For the record, this(template).. *Should* be a good format for all these solutions.:[hideif ||
[url][raw][Comments1][/raw][/url]|^|
[url][Comments1][/url]|]______________________________________________News______________________________________________[Comments1][hideif ||
[url][raw][Comments2][/raw][/url]|^|
[url][Comments2][/url]|] [Comments2][/hideif][hideif ||
[url][raw][Comments3][/raw][/url]|^|
[url][Comments3][/url]|] [Comments3][/hideif][/hideif]It Adds "URL's" to protects the hideif comparisons from a false result.Note.. the Code above assumes that you want to hide the entire block ifthe value of [Comments1] equals blank, or if it equals raw [Comments1].So, you don't need the second hideif statment for Comments1.. but I leftthe others in there (coments 1 and 2) in case those are passed over.. I don'tknow if they are needed (because I'm not sure how your system works), but theyshouldn't cause any problems.Now, having said all that.. I wonder if 3.x had
[url] issues of some kind.I use this kind of format frequently:[hideif ||
[url][raw][Comments1][/raw][/url]|^|
[url][Comments1][/url]|]However, if the
[url]'s are producing extra spaces or any sort ofwierd character in version 3.x.. it will not work. I have no ideaif that is the case.So, if you think it may be the case, you can make your existing codecleaner by going from:[hideif [Comments1]=
[raw][Comments1][/raw]][hideif [Comments1]=]To:[hideif
[raw][Comments1][/raw]=[Comments1]][hideif =[Comments1]]by putting the operator before the comparison, it should avoid theoperator confusion.We need to convince you to upgrade! ;-)Donovan-- Donovan D. Brooke PH/FAX: 1 (608) 291-2024----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Donovan Brooke
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:
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
log out (2001)
RE: Webcatalog and CyberSTUD (1998)
help with autenticate (1998)
WebSite and *NO* Authentication Dialog Box!!? (1998)
Umm...about those log files? (Off Topic) (1997)
Help! WebCat2 bug (1997)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
PCS Emailer's role ? (1997)
Authorize.net, SIM, tcpconnect and applescript (2003)
Security Question (1997)
Multiple 'Users.db' files not possible (1997)
Fields font size (2003)
Hyperboard/bulletin board available (1998)
[UPPERCASE] (1997)
Public Beta for WebCatalog 4.0 is Available (2000)
WebCat b13 CGI -shownext- (1997)
WebCat and image maps (1997)
using showpage and showcart commands (1996)
Did you hear about this? (1997)