Re: redirect within the ErrorMessages.db
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54609
interpreted = N
texte = Glenn and Donovan,Figured it out. Apparently I had an error the first time that caused the search to not work, so I tried putting the entire server path to the DB. I removed that, along with putting the URL in as donovan suggested and it is now working.Glenn, I had previously had the [index]=2 to grab the word and removed it trying to simplify the code. I have put it back although not sure it is really needed.Thank you both.DaleOn Dec 2, 2003, at 10:11 PM, Glenn Busbin wrote:>> Hello,>>>> I am trying to allow for a 'simple' URL for member pages on my site >> e.g.>> www.domain.tld/members/username/>>>> In an attempt to accomplish this, I have added the following (without >> line breaks) to process the URL and do a redirect to the proper URL. >> With this code, I get the proper membername, but the redirect never >> happens.>> Try this:>> [showif [thisurl]^members]> [ListWords Words=[thisurl]&Delimiters=/][showif [index]=3][text > show=f]mbr_name=[word][/text][/showif][/ListWords]>> [mbr_name] (for verification purposes)>> [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]]> [hideif [numfound]=0]> [founditems]>> [REDIRECT > url=http://www.domain.tld/profiles/details.html?record_id=[record_id]]> [/founditems]> [/hideif]>> [showif [numfound]=0]> redirect to some other page> [/showif]> [/search]> [/showif]>>>> -------------------------------------------------------------> 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://webdna.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Glenn and Donovan,Figured it out. Apparently I had an error the first time that caused the search to not work, so I tried putting the entire server path to the DB. I removed that, along with putting the URL in as donovan suggested and it is now working.Glenn, I had previously had the [index]=2 to grab the word and removed it trying to simplify the code. I have put it back although not sure it is really needed.Thank you both.DaleOn Dec 2, 2003, at 10:11 PM, Glenn Busbin wrote:>> Hello,>>>> I am trying to allow for a 'simple' URL for member pages on my site >> e.g.>> www.domain.tld/members/username/>>>> In an attempt to accomplish this, I have added the following (without >> line breaks) to process the URL and do a redirect to the proper URL. >> With this code, I get the proper membername, but the redirect never >> happens.>> Try this:>> [showif [thisurl]^members]> [ListWords Words=[thisurl]&Delimiters=/][showif [index]=3][text > show=f]mbr_name=[word][/text][/showif][/ListWords]>> [mbr_name] (for verification purposes)>> [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]]> [hideif [numfound]=0]> [founditems]>> [REDIRECT > url=http://www.domain.tld/profiles/details.html?record_id=[record_id]]> [/founditems]> [/hideif]>> [showif [numfound]=0]> redirect to some other page> [/showif]> [/search]> [/showif]>>>> -------------------------------------------------------------> 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://webdna.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://webdna.smithmicro.com/
CN Stuff
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:
PIXO (1997)
process SSI (1998)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Newbie Tax Question (1997)
New Command prefs ... (1997)
Re:Running 2 two WebCatalog.acgi's (1996)
Working with framesets (1998)
NetSplat and WebCat2 (1997)
[WebDNA] Middle Question (2015)
World Address Info (2003)
[SHOWIF] (1997)
Pithy questions on webcommerce & siteedit (1997)
Limit to variables passed on to next tpl? (1998)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
'does not contain' operator needed ... (1997)
Emailer (1997)
blank page from template (1997)
Customer - again (1998)
[WriteFile] problems (1997)
WebDNA for Dummies (2004)