Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#313 2007-01-17 13:59:18

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

Re: ign_password_protect

On the privilege issue – you need to use the numerical value, not the name. By default, none is 0, and Freelancer is 5.

On the password issue – are you using the TXP users table, or the custom table? Make sure you’re changing the password in the correct place. (Note that on initial setup, the plugin will propagate any users in the txp_users table to the custom table for convenience, but following that, the two tables are NOT synchronized in any way.)


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

Offline

#314 2007-01-17 14:04:30

infusion
Member
Registered: 2005-08-04
Posts: 19

Re: ign_password_protect

I’m using the txp users database. Is it absolutely necessary to use the alternate one?

And how can I go about changing the user password using phpmyadmin then?

Last edited by infusion (2007-01-17 14:06:14)

Offline

#315 2007-01-19 20:43:09

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

Re: ign_password_protect

infusion: no, it’s entirely up to you which database you use. you shouldn’t need to go into phpmyadmin to change passwords.


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

Offline

#316 2007-01-19 22:07:48

infusion
Member
Registered: 2005-08-04
Posts: 19

Re: ign_password_protect

Thanks for your reply igner. But the thing is…. I’m using the txp users and have successfully changed the password for it. And I log in using this new password but when I’m at the protected section, the new password gets rejected. How do I check or fix what’s wrong?

Offline

#317 2007-01-19 22:12:49

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

Re: ign_password_protect

what version of the plugin are you using?


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

Offline

#318 2007-01-19 22:21:08

infusion
Member
Registered: 2005-08-04
Posts: 19

Re: ign_password_protect

0.4.2d

Offline

#319 2007-01-20 13:41:18

infusion
Member
Registered: 2005-08-04
Posts: 19

Re: ign_password_protect

One more thing igner….. I’m not sure if this is a bug or a feature but I’ve inserted these 2 code fragments to 2 different articles to mutually exclude 1 group from another.

Article 1:
<code>
<txp:ign_if_not_logged_in privs=“6”>You are trying to access a password protected page. Please log in or sign up by clicking the link below.
</txp:ign_if_not_logged_in>
</code>

Article 2:
<code>
<txp:ign_if_not_logged_in privs=“5”>You are trying to access a password protected page. Please log in or sign up by clicking the link below.
</txp:ign_if_not_logged_in>
</code>

But given the scenario that I logged in with priv 5 (Article 2) and tried accessing the protected area for priv 6 (Article 1), the message that it is a password protected page does not come up. If i’m not wrong, it labels me as being logged in. However I want the message to show up as long as he’s not logged in as a priv 6 user. Vice versa is true as well.

Any suggestions?

Offline

#320 2007-01-22 13:51:22

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

Re: ign_password_protect

That’s really a shortcoming in previous versions. You are logged in, but don’t have sufficient privileges, so the content’s swallowed.

I’ve strived to address that in the 0.5 version that’s currently in beta, if you want to give that a shot.


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

Offline

#321 2007-01-22 22:35:06

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: ign_password_protect

>igner

Quick Question: Is there a way to output in plain text the user’s email?

Detailed Thanks: Thanks to your plugin and wondertag, I got my client section set up and it works really well. All I have to do to set up a new client is add an account with no rights, and add pertinent client categories (image, article, file, etc.).

As a user logs in, he is greeted with a summary page listing:
  1. A personal greeting with name user name and logout info.
  2. A list of recent developments that have been accomplished for them (with detail pages)
  3. A collapsible sidebar menu that contains:
    • A small calendar (with a link to the large detailed one) that visually shows progress/deadlines
    • A small email form with their name pre-filled
    • Upcoming deadlines
    • Files and Proofs
    • Image galleries
    • Upload form (coming soon)

It all seems to work. And it’s all client-specific. I even figured out some conditional logic to keep one user out of another user’s permlinks if they are smart enough to guess them.

I’m thinking about posting a how-to somewhere…

Just thought I’d say thanks again.

Last edited by mrdale (2007-01-22 22:35:43)

Offline

#322 2007-01-22 22:46:28

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

Re: ign_password_protect

mrdale: try <txp:ign_user_info type="email" /> :)

looking forward to seeing that writeup – maybe in the interim I’ll have time to finish the documentation on the current version!


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

Offline

#323 2007-01-22 22:48:36

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: ign_password_protect

igner wrote:

mrdale: try <txp:ign_user_info type="email" /> :)

Is this specific to the 5.0b or has it been around all along? Does it output the email in plain text?

Offline

#324 2007-01-22 23:17:48

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: ign_password_protect

Hey, tried it out and I got a very interesting “woo hoo” message on login. :)

Last edited by mrdale (2007-01-22 23:40:21)

Offline

Board footer

Powered by FluxBB