Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » ign_password_protect

#91 2005-09-08 14:24:29

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

Re: ign_password_protect

@vasanth – I caught a minor bug in Manfre’s plugin last night, he’s updated it to address that issue. It is working in the 0.6.1 release.

You can also use <mem_profile var=“RealName” /> to return the real name, rather than the login value. Note that this may cause some hinkiness with the “remember” functionality, so you might want to do as Vasanth suggested and hide the inputs for name and email, unless you want them to be able to change those values, of course.

regarding the show_login issues, to show the “logged in as” message, you’ll want to add verbose=‘1’ to the tag; I got enough questions on how to suppress that content that I decided to suppress it by default, and just show the user name. Probably should have called that out in the announcement, sorry.

As for the other item – there’s a little hinkiness going on there courtesy of sleep deprivation…I just posted version 0.4.1 which should solve those problems. Note that this version will return an error message on failed logins or bad cookies (not always the case in the previous versions) – you can suppress this with hide_login=‘1’. I’ve tested, but not extensively, so let me know if you see any odd behaviour.


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

Offline

#92 2005-09-08 14:45:57

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

Re: ign_password_protect

Thanx for the info Jeremy. I noticed manfre’s release and I have the most recent version.

I was using manfre’s tags without using txp:mem_user_edit_form or txp:mem_change_pass_form tags. That was the reason it had failed. So, My bad.

btw. The download link isnt working for me.


“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

#93 2005-09-08 15:16:29

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

Great stuff. The fixes in 0.4.1 work well and return functionality as expected. Thank you.

I find the addition by Vasanth (ign_username) very useful and have started using it in other places – I’ll definitely keep that one! What are the chances of adding a function to get any of the logged-in users details, along the lines of txp:ign_user_details name=“email”…

While I’m here – what is the value of having an alternate database?

Offline

#94 2005-09-08 15:23:37

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

Re: ign_password_protect

Great stuff. The fixes in 0.4.1 work well and return functionality as expected. Thank you.

glad to hear it. I mentioned to Manfre that I need to quit my job so I can get more sleep. that way all this free code I’m writing would have fewer stupid mistakes in it :)

I find the addition by Vasanth (ign_username) very useful and have started using it in other places – I’ll definitely keep that one! What are the chances of adding a function to get any of the logged-in users details, along the lines of txp:ign_user_details name=“email”…

Short term, I wasn’t planning on including a lot of profile support, since it’s present in mem_self_register, and I don’t see the value in duplicating efforts. If there’s enough demand for it though, I could add in some basic tags along those lines.

While I’m here – what is the value of having an alternate database?

it keeps things entire separate from the admin-side logins, so you can provide varying levels of access to individuals without giving them access to the back end. Particularly handy for community-type sites, where you want to allow individuals to register before letting them at protected content. make sense?


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

Offline

#95 2005-09-08 16:11:53

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

I just need the username and email address, but am loathe to install mem_self_register as I don’t need any other functionality from there. Forgive me being a complete TXP newb, but is there a general way to get a row from a db table given that I have the username? I know php and mysql pretty well, but the structure of the TXP environment is unfamiliar.

I understand the seperate db now, good idea if you don’t want registered users to also be able to add content. Nice.

Thanks for your help.

Offline

#96 2005-09-08 16:36:52

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

Re: ign_password_protect

David, I really wish I could help you. But I am a pure noob as far as PHP/MYsql is concerned. The hack that I provided was a result of Igner’s help and some experimentation on my part.

You will be able to achieve what you want by grabbing the latest version of <a href=“http://manfre.net/project/627/mem-self-register”>mem_self_register</a>.

I used <code><input type=“text” name=“email” value=”<txp:mem_profile var=“email” />” size=“25” class=“comment_email_input” tabindex=“3” /></code> and it works nicely. Infact with Manfre’s plugin is a must have. You will be able to do lotsa other things. I insist that you check it out.

If you still arent satisfied. Just hang on. Someone here will help you out.

Regards,
Vasanth

Last edited by creativesplash (2005-09-08 16:39:41)


“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

#97 2005-09-08 16:59:11

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

> creativesplash wrote:
> … I insist that you check it out.

:-) Ok – installed it now… thanks.

edit: and it works a treat… Brilliant stuff, thank you all.

Last edited by davidraine (2005-09-08 17:08:32)

Offline

#98 2005-09-08 17:45:33

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: ign_password_protect

I haven’t looked too close into how the alternate db is tied up to this plugin, but would it be cumbersome to use e.g. the user-table of punBBs db to control logins? (not that igner has to code this as soon as the sun rises though – just a general question! :)

Offline

#99 2005-09-08 18:27:17

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

Re: ign_password_protect

the sun’s been up for hours
det år 1400 uhr här (hope I got that right, it’s been over 15 years since I studied swedish :)

the issue with tying to something like the punbb’s db to control logins would mean writing a second set of authentication routines to use the punbb authentication mechanism. it’s a nice long-term goal, but I don’t see it happening in the near term.


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

Offline

#100 2005-09-08 19:08:24

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: ign_password_protect

igner, I just installed 0.4.1 and it looks great. One quick thing, this isn’t huge or anything like that, but when I am at ign_usr_mgmt and switch the alternate database (no to yes or yes to no)…i have to switch off that tab and come back to it to see my changes. Still works though. Thanks!

Offline

#101 2005-09-08 19:31:25

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

Another question/issue. I am using txp as a closed community with all members effectively staff writers, able to write articles. When they log in on the front page (using ign_*) and then go (via a link) to the admin page to write articles, they are asked to login again!

(It may well be related to cookies, the back-end sets a cookie (txp_user) for the /textpattern domain and the ign system sets ign_user for the / domain. )

Is there any way that the ign login can also log in to the back-end?

Offline

#102 2005-09-08 19:53:36

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: ign_password_protect

@davidraine – I brought this one up too a little earlier and igner gave me this response:

I looked at doing that when I started with the plugin – but the cookie that gets set for the back-end can’t be accessed from the front end, but if you set remember='true' on ign_show_login or ign_password_protect then you won’t be prompted for the password on subsequent visits.

I have just put up a post on the feature request to move the location…I’ll see if anyone responds. If you want to add your support you can view it here.

Last edited by variaas (2005-09-08 19:57:11)

Offline

#103 2005-09-08 20:39:36

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

Re: ign_password_protect

I just took a quick look, and while what I said before still stands — it’s not possible to read the existing back-end cookie from the front end, it is possible for me to write the txp_login cookie from the root, assuming you’re using the in-built user table and not the alternate.

I’ll have to mull over the ramifications of actually including this in the release, however.


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

Offline

#104 2005-09-08 21:20:19

davidraine
Member
Registered: 2005-08-25
Posts: 15

Re: ign_password_protect

@igner – thanks, that would suit me well, but I have already asked and received a lot from you (and others here) in just 1 day! Flippin marvellous.

Respect.

Offline

#105 2005-09-13 17:40:18

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: ign_password_protect

Guess I should figure this out myself by now… but sadly not. I´d like to make me a form for the login form – so I can style it with css. But I simply can´t figure out how to write the form. What are names of the username and password fields?

Perhaps someone could post an example?

Offline

  1. Index
  2. » Archives
  3. » ign_password_protect

Board footer

Powered by FluxBB