Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
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
#106 2005-09-13 17:51:09
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
sorry – as of right now, the login forms’ pretty much hardcoded – you can pass in a class for the container the form’s in, but that’s about it. I’ll put use form for input form on the list of things to add, but I probably won’t be touching this for a couple weeks due to other work that has to get done…
And then my dog ate my badger, and the love was lost.
Offline
#107 2005-09-13 18:00:06
Re: ign_password_protect
Ok. Thanks for your reply Igner.
edit: If there is someone who know more about this than me (anyone I guess) and don´t mind look in to this… this is my test article for the plugin: <a href=“http://www.mattiasskoog.se/index.php?id=46” >Here</a>
The login form looks weird in IE but just fine in Firefox.
Last edited by skoggy (2005-09-13 18:04:57)
Offline
#108 2005-09-14 03:41:27
Re: ign_password_protect
There’s an extra <code>}</code> after the class <code>.entry form </code> in your css. Please remove that.
This should solve your problems for the time being…
<code>
.entry form p {
clear: both;
margin: 10px 0 10px 0;
}
</code>
<code>
.entry form input {
margin: 5px 0 5px 0;
}
</code>
Last edited by creativesplash (2005-09-14 03:41:42)
“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