cra_password.pl

Post your requests for addons here, and discuss any addons in development here, as well.
Once an addon has completed development, it will be released in the "Addon Release" forum.

Moderator: Spunkmeyer

cra_password.pl

Postby Mpessoa » Mon Jan 29, 2007 5:28 pm

Dear all,

Is it possible to have a addon that when I submit the news and check the option "password it" for example, and build it, and when an internaut cliks on it's news links, he is asked for the passwor to see that news?

I'm asking this to see if I can use some news to be viewed only by who I allow (password required to see the news)

Best regards,
Marcelo Pessoa
http://www.mvp.adv.br/
Mpessoa
 
Posts: 10
Joined: Fri Jan 19, 2007 4:55 pm
Location: Brazil

Postby Jackanape » Mon Jan 29, 2007 5:32 pm

The easiest way would be to select a profile that builds it's file in a password protected directory, and manage the passwords that way.
User avatar
Jackanape
 
Posts: 632
Joined: Tue Jan 09, 2007 12:15 am
Location: Capitol of the Great State of New York

Postby Mpessoa » Mon Jan 29, 2007 7:45 pm

Jackanape wrote:The easiest way would be to select a profile that builds it's file in a password protected directory, and manage the passwords that way.


Hi, I know that can be. But what I'm looking for is a way to use a password protect when clicking in the link to a specific news only and not for the directory.

You know, when you submit a news should use the field password check.

Do you think it can be done? Or somenthing similar?

best regards,
Marcelo Pessoa
http://www.mvp.adv.br/
Mpessoa
 
Posts: 10
Joined: Fri Jan 19, 2007 4:55 pm
Location: Brazil

Postby SrNupsen » Mon Jan 29, 2007 10:57 pm

The easiest would still be to have all those news items (with passwords) being built inside a passworded directory (using .htaccess).

Individual file protection would require some sort of Javascript password protection, which is far less secure.

You could use a checkbox for password when submitting news items, and then making that field part of the ouput file path in some way, depending on how your folders are organized.
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Mpessoa » Tue Jan 30, 2007 1:46 pm

The problem that I have is that some of my news can be only see for a specific person (client) I must password only a specific news to a specific client. This client is not allowed to see the others news.

Do you undertand it?
Marcelo Pessoa
http://www.mvp.adv.br/
Mpessoa
 
Posts: 10
Joined: Fri Jan 19, 2007 4:55 pm
Location: Brazil

Postby SrNupsen » Tue Jan 30, 2007 2:09 pm

Yes. But you would still have to give each user (=client) a separate password, right?

There are two ways of password-protecting files: server-side (means it is the server doing it) or client-side (means it is done in your browser). Server-side is the most secure, and the only server-side method I know of is by using .htaccess.

I would suggest you read about how to create authentication systems with .htaccess, and combine that with the Maginot addon. You should be able to create a solution where each user has his/her own directory, and where Maginot will put each user's news item(s) in his/her directory. In addition, you should be able to create .htaccess files for all of the subdirectories by using a second style and profile.

A far easier (but as I said, less secure) system would be to set up a third-party Javascript authentication for all of your users. This is, however, outside the reach of what Coranto can do.
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Mpessoa » Tue Jan 30, 2007 2:17 pm

Ok thanks.
Marcelo Pessoa
http://www.mvp.adv.br/
Mpessoa
 
Posts: 10
Joined: Fri Jan 19, 2007 4:55 pm
Location: Brazil

Postby CSEnforcer » Fri Feb 09, 2007 6:02 am

I don't know if it would help you at all, but there is a "password" field option in the CustomFields add-on.

See this old thread: http://coranto.org/forum/viewtopic.php?t=7357
CSEnforcer
 
Posts: 12
Joined: Mon Jan 22, 2007 12:49 am


Return to Addon Development and Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron