Re: Show items based on login Password

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50819
interpreted = N
texte = >On 5/31/03 9:26 AM, Dan Braley wrote: > >> I am setting up a site to be used in a production environment. >> I would like to have it show only items that correspond with a person's >> login and password. >Webcat 4.x code >Been in use without issue for well over a year. > >[showif [username]=][authenticate Partner's Area][/showif] > >[showif [username]!] >[search db=partners.db&eqUSERNAMEVARdatarq=[username]] >[showif [numfound]=0][authenticate Partner's Area][/showif] >[founditems] >[showif [index]=1] >[hideif [password]=[passwordvar]][authenticate Partner's Area][/hideif] >[/founditems][/search] >[/showif] Alex, you should consider putting the showif and hideif parameters inside url contexts so they continue to work properly no matter what values are used for username or password or passwordvar. In fact, you should always url variables used in comparison tags ... -- Sincerely, Kenneth Grome ------------------------------------------------------------- My programmers will write WebDNA code for you at $27 an hour! -------------------------------------------------------------------------------------------------------------------------- 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:

    
  1. Re: Show items based on login Password (Dan Braley 2003)
  2. Re: IOD | WAS:[Re: Show items based on login Password] (Donovan 2003)
  3. Re: IOD | WAS:[Re: Show items based on login Password] (Gary Krockover 2003)
  4. Now: IOD | WAS:[Re: Show items based on login Password] (Donovan 2003)
  5. Re: Show items based on login Password (Gary Krockover 2003)
  6. Re: Show items based on login Password (marc@kaiwi.com (Marc Kaiwi) 2003)
  7. Re: Show items based on login Password (Alex McCombie 2003)
  8. Re: Show items based on login Password (marc@kaiwi.com (Marc Kaiwi) 2003)
  9. Re: Show items based on login Password (Alex McCombie 2003)
  10. Re: Show items based on login Password (Alex McCombie 2003)
  11. Re: Show items based on login Password (WJ Starck 2003)
  12. Re: Show items based on login Password (Alex McCombie 2003)
  13. Re: Show items based on login Password (Alex McCombie 2003)
  14. Re: Show items based on login Password (WJ Starck 2003)
  15. Re: Show items based on login Password (WJ Starck 2003)
  16. Re: Show items based on login Password (Alex McCombie 2003)
  17. Re: Show items based on login Password (Kenneth Grome 2003)
  18. Re: Show items based on login Password (Donovan 2003)
  19. Re: Show items based on login Password (Donovan 2003)
  20. Re: Show items based on login Password (Alex McCombie 2003)
  21. Re: Show items based on login Password (Donovan 2003)
  22. Re: Show items based on login Password (Alex McCombie 2003)
  23. Re: Show items based on login Password (WJ Starck 2003)
  24. Show items based on login Password (Dan Braley 2003)
>On 5/31/03 9:26 AM, Dan Braley wrote: > >> I am setting up a site to be used in a production environment. >> I would like to have it show only items that correspond with a person's >> login and password. >Webcat 4.x code >Been in use without issue for well over a year. > >[showif [username]=][authenticate Partner's Area][/showif] > >[showif [username]!] >[search db=partners.db&eqUSERNAMEVARdatarq=[username]] >[showif [numfound]=0][authenticate Partner's Area][/showif] >[founditems] >[showif [index]=1] >[hideif [password]=[passwordvar]][authenticate Partner's Area][/hideif] >[/founditems][/search] >[/showif] Alex, you should consider putting the showif and hideif parameters inside url contexts so they continue to work properly no matter what values are used for username or password or passwordvar. In fact, you should always url variables used in comparison tags ... -- Sincerely, Kenneth Grome ------------------------------------------------------------- My programmers will write WebDNA code for you at $27 an hour! -------------------------------------------------------------------------------------------------------------------------- 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/ 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:

[OT] Theiving B*****ds (2004) WebCatalog seems to choke on large (2meg) html files. (1998) target=_blank and form variables (1997) Associative lookup style? + bit more (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Emailer (1997) [WebDNA] How to use [function] (2012) server side includes & webcatalog (2000) More on [purchase] (1998) emailer and other smtp (1998) Error Lob.db records error message not name (1997) Sorting by date (1997) unix permissions theory applied to db security? Or...? (2000) Re:Merging databases (1997) Cleaning up all the shopping carts (2000) WebCat cannot handle compatible search parameters? (1997) [append] vs. [appendfile] delta + question? (1997) WebCat2b13 Command Reference Doc error (1997) Appending Information from one db to another (1998) Limiting user access to .tmpl files (1997)