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:

Security for malls with different webmasters (1998) webcat2b12 CGI -- Date comparisons (1997) WebMerchant / Authorize.net and Secure order processing (2000) [WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010) Sample Tearoom Search Error (1997) Where's 3.0 Online Docs? (1999) Help!!!! (1997) Date search bug (1997) Format of Required fields error message (1997) Extended [ConvertChars] (1997) What about an ends with operator? (2000) Help! WebCat2 bug (1997) [WebDNA] Problem with SendMail - seems succesfull but nothing to recieve (2016) PIXO (1997) Duplicate Emails being sent (2004) possible, WebCat2.0 and checkboxes-restated (1997) Credit card payment processor (2004) Email Formatting and Encryption (1998) displaying New products (Yikes! it's Fixed!) (1997) [WebDNA] 4th of July (2008)