Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#21 2005-06-20 03:58:16

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

Re: ign_password_protect

List users of a particular privilege (eg: publisher, designer).

i.e When I use a tag like <code><txp:ign_password_protect_users_online priv=“Publisher”></code> i’ll get a list publishers who are online.

Last edited by creativesplash (2005-06-20 06:59:35)


“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

#22 2005-06-20 04:11:16

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

Re: ign_password_protect

ok that makes sense. should be relatively easy to implement something like this.


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

Offline

#23 2005-06-20 07:03:08

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

Re: ign_password_protect

Thanx! I am really looking forward for this feature. Good luck!


“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

#24 2005-06-20 18:08:33

abacus7
New Member
From: UK
Registered: 2004-11-11
Posts: 9

Re: ign_password_protect

Great plugin – quick question though. One of my forms is for my frontpage, and when I used <code>ign_show_login</code> there and then login it goes straight back to the form when I click the button and looks like I haven’t logged in. If I go to an article that I’m using <code>ign_password_protect</code> on then it prompts me again. Should this happen? I’m using the <code>remember=“1”</code> option for everything.

Cheers.

Offline

#25 2005-06-20 19:46:43

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

Re: ign_password_protect

erm, no. that shouldn’t happen.

can you point me to an example where this is happening (email me a user / pass if possible).


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

Offline

#26 2005-06-20 21:04:10

abacus7
New Member
From: UK
Registered: 2004-11-11
Posts: 9

Re: ign_password_protect

Okay – email’s on its way to you now. http://www.oakesscouts.org.uk. This is a static style site for the Scout Group I’m involved in. Nothing flash but the password protection allows us to put member-only stuff in there.

Offline

#27 2005-06-21 03:02:38

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

Re: ign_password_protect

OK, it looks as though the cookie’s not being set properly on the front page. I’m not sure why that is; give me a day or two to look into what might be going on here.


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

Offline

#28 2005-06-27 03:08:36

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

Re: ign_password_protect

OK, more than a couple days – but abacus7’s issue is fixed in version 0.3

In addition to several other bugfixes, this release adds one more tag based on creativesplash’s request: ign_usr_online
This tag accepts a handful of parameters:
privs accepts a comma-delimited list of privileges to filter the users listed; display determines whether the login name or the real name is diplayed (defaults to login name); and wraptag, break, and class parameters are also accepted.

Last edited by igner (2005-08-08 13:54:50)


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

Offline

#29 2005-06-27 05:19:57

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

Re: ign_password_protect

That is SO cool. Thanx a TON igner for all your hard work. Cant wait to get back home and try this out.


“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

#30 2005-07-16 18:11:37

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

Re: ign_password_protect

Sorry. I was held up with a lot of things. I finally got a chance to test this one out.

I put the tag <code><txp:ign_usr_online display=“name” /></code> but nothing happens. Am I using the right tag?

secondly, abacus7’s problem still persists (atleast for me). If I click on an article or if I revisit a protected page I get diverted to the login box (cookie settings: remember=“true”)

Surprisingly I dont face the problem if i dont use the attribute “remember”.


“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

Board footer

Powered by FluxBB