Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-21 14:32:30

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

[request] Protected download page?

I need to protect a page with some downloadable pdfs. A site visitor has to agree to a few conditions by checking a few boxes (no account creation) before being forwarded to the download page. And the download page should not be able to be addressed directly just by typing in it’s url.

Possible with Txp?

Cheers
Lee

Offline

#2 2008-02-21 17:42:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] Protected download page?

Not without writing a plugin.

Offline

#3 2008-02-21 18:09:42

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [request] Protected download page?

You up for it? How much? When? :)

Offline

#4 2008-02-22 09:45:52

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

Re: [request] Protected download page?

lee wrote:

I need to protect a page with some downloadable pdfs. A site visitor has to agree to a few conditions by checking a few boxes (no account creation) before being forwarded to the download page. And the download page should not be able to be addressed directly just by typing in it’s url.

Possible with Txp?

Cheers
Lee

you can use zem contact reborn and set the conditions there. the pdfs could appear after sending the email.

example:

<txp:zem_contact mailto="you@yoursite.com" thanksform="download pdfs">
<txp:zem_contact_text label="Name"  />
<txp:zem_contact_email />
<txp:zem_contact_submit label="Agree" />
</txp:zem_contact>

the thanks form could have the links to the pdfs


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

Offline

#5 2008-02-22 09:55:07

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [request] Protected download page?

Hi Colak, many thanks for the idea, but the url containing the pdf would still be directly available, but I’ll probably use your idea in the future. In the end I used ExpressionEngine.

Offline

#6 2008-02-22 12:44:33

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

Re: [request] Protected download page?

lee wrote:

Hi Colak, many thanks for the idea, but the url containing the pdf would still be directly available, but I’ll probably use your idea in the future. In the end I used ExpressionEngine.

it depends what you mean with ‘publicly available’. Yes if somebody copies the url and links to it directly, it will be as such but not for the people visiting the page. I guess that it depends what level of control you want.


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 2008-02-22 13:18:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] Protected download page?

Using ZCR is not a bad idea, because the nonce system enforces that each visitor has to fill out a new form, instead of being able to reuse an old one. Instead of redirecting a download page, you could respond by sending a file. This does depend on your server setup. In a FastCGI setup, this wouldn’t work, in most other setups it does work (although I haven’t explicitly tested this).

Offline

Board footer

Powered by FluxBB