Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-11-03 22:52:46

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Help with Password Protect

Gocom wrote:

Cause you are login to the logout path :D To fix that, change the form’s action value et cetara.

Change it to what? The login form is inside a txp form, and so must be universal, it is currently set to ‘<txp:page_url />’

Last edited by driz (2008-11-03 22:54:13)


~ Cameron

Offline

#14 2008-11-03 23:51:12

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Help with Password Protect

I’ve tried some tags, no luck, what do I need to change it to?


~ Cameron

Offline

#15 2008-11-04 13:19:31

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Help with Password Protect

help? :S


~ Cameron

Offline

#16 2008-11-04 14:00:46

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Help with Password Protect

Wait for it, it will come when it has to.
Or re-read the first replies in this thread, to find out where you should ask questions about ign_password_protect and so, you will have more chances of being helped with the correct answer.

Avoid bumping your threads in less than two hours (check your three first posts) and now less than a day after, it irritates me, really.

And you bump it with just:

“I’ve tried some tags, no luck, what do I need to change it to?”
“help? :S”

Really, couldn’t you post some helpful information so others can help you?
Are you stupid? Or just lazy?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#17 2008-11-04 15:27:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help with Password Protect

In example <txp:page_url /> could become <txp:php> echo str_replace('?logout=1','',page_url(array())); </txp:php> or you could use plugin’s form tag that automatically outputs form. I just didn’t use it in my example cause you needed a invalid and customizable form.

Last edited by Gocom (2008-11-04 15:27:42)

Offline

#18 2010-03-05 07:52:08

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: Help with Password Protect

Hello all. I’m new to this. I’m trying to employ the use of Password_Protect onto one of my pages. I’m following the advice out of TextPattern Soultions (not helpful) which says to simply include this tage to the template page I want password protected:

<txp:password_protect />

When I view the page, the article content appears. I even logged out and viewed again, but still not requirement to log in.

BTW, I’m working from Local Host for now.

Ideas anyone?

Thanks much!


Living the Location-Independent Life: www.NuNomad.com

Offline

#19 2010-03-17 17:59:31

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Help with Password Protect

ign_password_protect still might be the way to go; there are problems but some people seem to having partial success with the latest version of TXP (4.2.0).

If you can get it to work, it’s a simple conditional tags, something like this (I think)

<txp:ign_if_logged_in>
restricted content
</txp:ign_if_logged_in>

…or have you solved this already?

Offline

#20 2010-05-19 04:38:58

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: Help with Password Protect

Hi Gavnosis,

Just saw your reply. Nope, haven’t solved the problem yet (I’ve been working on other parts of the website and have just come back to the issue). The tag I am using is this (I don’t remember where I found it though):

<txp:ign_password_protect privs=“1,2,3,4,7” login_msg=“Please log in to view this resource.” remember=“true”><txp:article status=“sticky” limit=“1” form=“sticky-blog” /> <txp:article form=“archive-form-bod” limit=“5” /> </txp:ign_password_protect>

I’m able to log in, but its very unreliable. Sometimes it works, sometimes not. I emailed the author of the plug-in, but he’s no longer working on it (time constraints and whatnot). Now I’d be interested in ANY password protection—preferably one that will allow me to maintain Users that are not granted access to the Textpattern backend.

Information would be very much appreciated by anyone.

Thanks for your help.


Living the Location-Independent Life: www.NuNomad.com

Offline

Board footer

Powered by FluxBB