Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-10-30 08:05:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

password_protect

For the first time since I’ve started using txp I have to protect a particular article for a few days before we go public as it needs to be previewed by a number of people.

Would <txp:password_protect login="theuser" pass="thepassword" /> in the beginning of the article in the “write tab” provide sufficient (not foolproof) protection or can someone suggest an alternative?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2013-10-30 09:44:55

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: password_protect

That depends on your definition of ‘sufficient’, I suppose. If you know the IP addresses/range of the viewers you could use rah_ip_range to lock it down further. More work, granted, but potentially more secure. Perhaps combine that with a hidden/secret section that’s styled in a similar way to the main article with some if_section conditionals. I’ve done this before with a section called ‘internal-drafts’ to underline the hush-hush nature of the article.

Offline

#3 2013-10-30 10:54:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: password_protect

Adding another section to the structure would be a lot of work just now and I do not have the ips of the people who will review the text (they are all in the states).

By sufficient I do not mean absolutely safe but private enough so as to prevent a normal surfer from viewing it. What I have done is that I posted the article in its section/categories on a future date (so as not to appear in the feeds). I also added the password_protect tag on top of the article, so as to prevent it from being viewed in another way due to the way Textpattern handles URLs.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2013-10-30 11:14:11

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: password_protect

colak wrote:

By sufficient I do not mean absolutely safe but private enough so as to prevent a normal surfer from viewing it.

Yes.

Offline

#5 2013-10-30 12:15:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: password_protect

Yiannis, exclude that article from appearing on any list page as it will password protect the whole page otherwise.

I’ve used rvm_privileged instead, as a TXP login wasn’t a problem.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2013-10-30 13:29:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: password_protect

hi Uli,

I thought of rvm_privileged as it would make things much easier but the people who will review the text have no privileges in the site. I found that by giving the article a future date (a year from now), it is excluded from all the schemas I have in the site as I don’t use the time="future" or time="any" variables anywhere.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2013-10-31 05:53:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: password_protect

And here’s something I don’t normally do here:) The text was approved and password protection is now lifted.

This is an exclusive first time publication (both text and images) of a 1990 held conversation between Gene Youngblood (author of Expanded Cinema) and Erkki Huhtamo (author of Illusions in Motion) which we felt that it still reads as relevant today as it was then. Those with a revolutionary spirit can read it here.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB