Re: [showif],[referer],[include] in errormessages.db
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44703
interpreted = N
texte = This not a very scalable solution .. What happens when you have 100 sitesthat need custom messages ..You are better off adapting my earlier post.[showif [fileinfo file=/loginerror.html][exists][/fileinfo]=T][redirect/loginerror.html][/showif]Then you only have one entry and never need to modify the errormessages.dbfor each site. If a site needs a custom error on 'bad password' just createthe file above.Alain> I just realized I may be getting off base here with these solutions . . .> > I'm trying to bring up different looking Somethings Wrong! type of pages> when users don't login successfully using webcats browser based authorization.> > I'm not looking for missing pages in any of my cases. . . .> > I'm trying to show different pages in the> BadPassword ErrorMessages.db line per different domain for the error as> it happens within that particular domain> > in my ErrorMessages.db:> > BadPassword [showif> [url][referrer][/url]^[url]windycitywebmasters.com[/url]][include> file=error.inc][/showif][showif> [url][referrer][/url]^[url]kwasi.com[/url]] bgcolor=#FFFFFF>
Not> Authorized!
[/showif]> > It seems to work OK with these 2 domains so far. I may need it on a few> more . . .> A javascript back button I had inside of my error.inc page wasn't> behaving properly in netscape, although it behaved fine in IE . . . but I> can do without a javascript kinda back button.> > Each domain and site has different look and feel, so I can't easily show a> generic page after a bad username/password login attempt.> > Cookies are not wanted on these few sites, so that route isn't being> pursued . . .> > > Should I try something with [thisurl] instead???> But how and with what? I'm not looking for a page anywhere . . .> > > > > > > > > At 08:27 AM 11/2/02 +1300, you wrote:>> We do this in our errormessages.db.>> >> [showif [fileinfo file=/error.html][exists][/fileinfo]=T][redirect>> /error.html][/showif]>> >> So this in the 'template not found' error and you can create individual>> error files for each site and they will only be used if the exist. We;ve>> been doing this for about a year now with perfect results ..>> >> Alain>> >> PS (Add this to the front of the current error)>> >> >> >>> On 11/1/02 1:37 PM, Clint Davis
wrote:>>> >>>> What about this:>>>> [getmimeheader host]>>>> >>>> Also hit and miss or will it work every time?>>>> >>> Hit and miss.>>> >>> The question I havent seen an answer to is whether the clients each have>>> their own /dir/ in the url or are they all in the 'root' via mulithoming.>>> >>> If they are all in unique /dir/ then thisurl will work perfectly for your>>> needs.>>> Alex>>> >>> >>> >>> Alex J McCombie New World Media>>> Chief Information Officer Drawer 607>>> 800/724.8973 Fair Haven, NY 13064>>> Alex@NewWorldMedia.com http://OurClients.com>>> >>> Interface Designer WebDNA Programmer Database Designer>>> >>> >>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://search.smithmicro.com/>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to>> >> Web Archive of this list is at: http://search.smithmicro.com/> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This not a very scalable solution .. What happens when you have 100 sitesthat need custom messages ..You are better off adapting my earlier post.[showif [fileinfo file=/loginerror.html][exists][/fileinfo]=T][redirect/loginerror.html][/showif]Then you only have one entry and never need to modify the errormessages.dbfor each site. If a site needs a custom error on 'bad password' just createthe file above.Alain> I just realized I may be getting off base here with these solutions . . .> > I'm trying to bring up different looking Somethings Wrong! type of pages> when users don't login successfully using webcats browser based authorization.> > I'm not looking for missing pages in any of my cases. . . .> > I'm trying to show different pages in the> BadPassword ErrorMessages.db line per different domain for the error as> it happens within that particular domain> > in my ErrorMessages.db:> > BadPassword [showif> [url][referrer][/url]^[url]windycitywebmasters.com[/url]][include> file=error.inc][/showif][showif> [url][referrer][/url]^[url]kwasi.com[/url]] bgcolor=#FFFFFF>Not> Authorized!
[/showif]> > It seems to work OK with these 2 domains so far. I may need it on a few> more . . .> A javascript back button I had inside of my error.inc page wasn't> behaving properly in netscape, although it behaved fine in IE . . . but I> can do without a javascript kinda back button.> > Each domain and site has different look and feel, so I can't easily show a> generic page after a bad username/password login attempt.> > Cookies are not wanted on these few sites, so that route isn't being> pursued . . .> > > Should I try something with [thisurl] instead???> But how and with what? I'm not looking for a page anywhere . . .> > > > > > > > > At 08:27 AM 11/2/02 +1300, you wrote:>> We do this in our errormessages.db.>> >> [showif [fileinfo file=/error.html][exists][/fileinfo]=T][redirect>> /error.html][/showif]>> >> So this in the 'template not found' error and you can create individual>> error files for each site and they will only be used if the exist. We;ve>> been doing this for about a year now with perfect results ..>> >> Alain>> >> PS (Add this to the front of the current error)>> >> >> >>> On 11/1/02 1:37 PM, Clint Davis wrote:>>> >>>> What about this:>>>> [getmimeheader host]>>>> >>>> Also hit and miss or will it work every time?>>>> >>> Hit and miss.>>> >>> The question I havent seen an answer to is whether the clients each have>>> their own /dir/ in the url or are they all in the 'root' via mulithoming.>>> >>> If they are all in unique /dir/ then thisurl will work perfectly for your>>> needs.>>> Alex>>> >>> >>> >>> Alex J McCombie New World Media>>> Chief Information Officer Drawer 607>>> 800/724.8973 Fair Haven, NY 13064>>> Alex@NewWorldMedia.com http://OurClients.com>>> >>> Interface Designer WebDNA Programmer Database Designer>>> >>> >>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://search.smithmicro.com/>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to>> >> Web Archive of this list is at: http://search.smithmicro.com/> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Alain Russell
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:
Enterprise Server (1998)
[PHP3] does QuickTime Movies? (2000)
Configuration Q (1998)
request for string functions (1998)
Show if file exists (2004)
MySQL 5/Float (2007)
Slow wiht MAC OS and Webstar IV (2002)
[protect problem] (2004)
Where's Cart Created ? (1997)
Re:emailer 150 (1997)
Append..... doesn't (2000)
Cart Database (1999)
listfiles-looking for slick solution (1997)
PIXO support (1997)
Sort Order on a page search (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
RE: OK, here goes... (1997)
PSC recommends what date format yr 2000??? (1997)
WC2.0 Memory Requirements (1997)
OT: Need some DVD advice (2006)