Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2005-06-10 06:17:59

aslsw66
Member
From: Geneva, Switzerland
Registered: 2004-08-04
Posts: 338
Website

Re: ign_password_protect

igner, Looking at the demo on your site, does this mean you can password protect specific bits on the page? I notice that when I logged in with the demo password, the photo of snow appeared on the page. This would mean you could mix protected and public content on the same page …

Offline

#12 2005-06-10 12:31:29

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

yes, you can password specific bits – anything surrounded by the txp:ign_password_protect tags will not be displayed unless the user logs in. Note that the login is persistent to the browser session, and the login form can be divorced from the content, so it’s possible to have, say, the login form on one page, but protected content, like a comment form, on other pages.

It’s likely I’ll be updating this soon to include a page-protect mode that uses the browsers authentication dialog as well.


And then my dog ate my badger, and the love was lost.

Offline

#13 2005-06-14 09:53:13

katasta
New Member
From: germany
Registered: 2005-05-30
Posts: 4

Re: ign_password_protect

i’m having some problems with this plugin. i can’t seem to be able to use the hide_login parameter.

i’d also like to get rid of the table structure, and use paragraphs instead. unfortunately i’m no good in programming. can anyone help me with that?

Offline

#14 2005-06-14 13:34:15

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

katasta – seems I had an attention deficit lapse when I posted the version 0.2a; apparently the txp file upload interface neither replaces the existing file nor displays an error when uploading a duplicate file…so the version on my site was still the original 0.1 version. (Note that this behaviour is different from the plugin behaviour, hence my confusion…)

I’ve corrected this oversight, so if you grab the updated version, you should have better luck getting the hide_login parameter to work :). Sorry for the inconvenience.

Also, the login form moved away from the table structure in version 0.2a – the form is now output using the following structure:

<code><label>name<br /><input …></label></code>
usw.

I can help you tweak it if you need/want to further modify the form output.


And then my dog ate my badger, and the love was lost.

Offline

#15 2005-06-14 20:15:14

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: ign_password_protect

How come I missed this plugin ?
This is great, I’ll definitely use this and report…

With the recent privileges tweaking available, that’s going to be nice :D

Last edited by davidm (2005-06-14 20:33:14)


.: Retired :.

Offline

#16 2005-06-14 20:43:58

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

Hmmm, thought you’d been part of the discussion in conjunction with Manfre’s self_register plugin

Perhaps not :)

Anyway, give it a try. Feedback, bug reports, and suggestions all welcomed.


And then my dog ate my badger, and the love was lost.

Offline

#17 2005-06-15 15:39:31

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

Updated again, to version 0.2b.

Squashed a minor bug that returned the user to the front page on login, regardless of where the login form appeared. Will now return to the current page (based on the request URI, i.e. using clean URLs – if there’s sufficient demand, I’ll add support for messy mode as well…).

Also added one more parameter to <code><txp:ign_password_protect></code> – login_type
Set this to “page” to use the browser’s authentication dialog, rather than an inline form. Note that the closing tag for ign_password_protect is now optional – <code><txp:ign_password_protect /></code> will also work, but in the self-closing format it will default to login_type=“page” (as will the open + close tags with no content).


And then my dog ate my badger, and the love was lost.

Offline

#18 2005-06-16 08:31:29

katasta
New Member
From: germany
Registered: 2005-05-30
Posts: 4

Re: ign_password_protect

i was already wondering whether i had a wrong version of the plugin since i couldn’t see anything in the plugincode about the new options, but i thought someone would have noticed that before.

anyway, it’s working fine now. thanks for this great plugin!

Offline

#19 2005-06-19 15:26:22

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: ign_password_protect

This is really cool. Thank you very much for this plugin.

<h4>Request: A tag to display a list of online users according to their previliges.</h4>

Last edited by creativesplash (2005-06-19 15:29:03)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#20 2005-06-20 01:35:32

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

Thanks.

The authentication code does update the “last_access” field in txp_users, so it’s conceivable I could accomplish this. Not sure what you mean by “according to their privileges” though – do you mean only display if the current users’ privileges exceed a certain level?


And then my dog ate my badger, and the love was lost.

Offline

Board footer

Powered by FluxBB