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 sites that 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.db for each site. If a site needs a custom error on 'bad password' just create the 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:

    
  1. Re: [showif],[referer],[include] in errormessages.db (Lester Emo 2002)
  2. Re: [showif],[referer],[include] in errormessages.db (Alain Russell 2002)
  3. Re: [showif],[referer],[include] in errormessages.db (Lester Emo 2002)
This not a very scalable solution .. What happens when you have 100 sites that 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.db for each site. If a site needs a custom error on 'bad password' just create the 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:

[WebDNA] Sorry WebDNA server not running (2014) WebCat2b15MacPlugin - [protect] (1997) Math Blind (2000) emailer (1997) Using Plug-In while running 1.6.1 (1997) Client-side Image Maps and WebCat? (1998) How does WebCatalog search the database? (1997) W* 3.x & WebCat + WebMerchant (1998) WebCat2 several catalogs? (1997) Euro WebDNA Conference (2004) Help formatting search results w/ table (1997) WebDNA FAQ or FAQs -- was "weird problem" (2004) default value from Lookup (was Grant, please help me) (1997) Re:no template caching (1997) Database Options (1997) Field name-subcategory (1997) Mail Server Needed. (1998) Up and running ... at last !! (1997) redirect & arguments (2001) Help! WebCat2 bug (1997)