Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#613 2008-08-05 08:07:19

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

Hi, just trying to get to grip with this plugin. Sorry if this is a stupid question, and yes I have tried searching to find the answer.

I am trying to style the form which is output with <txp:ign_show_login /> – I can do so much with css but those pesky <br /> tags are causing a headache – is there a way to either use my own form or edit the form from somewhere. I tried looking through the plugin code but it is not easy to see where this form comes from!

Cheers for any help.

Offline

#614 2008-08-05 15:06:22

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

Re: ign_password_protect

You can create your own login form, and either name it ‘login_form’ or call it using the form attribute (i.e. <txp:/ign_show_login form='my_super_login_form' />).

For reference, the default form code looks like this:

<div class='login'>
<p><span class='error'><txp:ign_error_msg >There was a problem logging in.</txp:ign_error_msg></span></p>
<p><label>Name:<br />
	<txp:ign_user_field />
</label><br />
 <label>Password:<br />
	<txp:ign_pass_field />
</label><br />
<label>Remember Me? <txp:ign_checkbox name='stay' value='1' /></label>
<txp:ign_submit_field name='login' value='Login'/></p>
</div>

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

Offline

#615 2008-08-06 12:04:39

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

many thanks for that, got it sorted now.

I have another problem now though! I can’t seem to get a persistance of the login state between pages. I can login on one page but when I go to any other page or even refresh the sign in page it behaves as though I am not signed in.

Does this plugin use PHP sessions or its own cookie to maintain state? I had a look at cookie info and it appears there is txp_login_public cookie – but I’m not sure if that is what your plugin uses to maintain state.

Any suggestions gratefully received.

Offline

#616 2008-08-07 12:51:15

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

looking through your code I’ve identified that the cookie that should be set is ign_login. However this does not seem to get set, despite trying in different browsers with all cookies allowed.

Any ideas why this might happen? All the other textpattern cookies seem present and correct.

Offline

#617 2008-08-08 16:28:06

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

Re: ign_password_protect

For those having problems with getting immediately logged out after logging in – are you using the txp_users table or the alternate user table?


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

Offline

#618 2008-08-08 19:10:16

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

txp_users

Offline

#619 2008-08-08 19:17:00

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

Re: ign_password_protect

thought that might be the case. i found an issue with that yesterday because of the changes to how 4.0.6 handles the login cookies.

I’ll be rolling out an update to address this by the end of the weekend.


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

Offline

#620 2008-08-08 19:25:50

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

wow, cheers! Look forward to the update.

Offline

#621 2008-08-15 15:56:17

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: ign_password_protect

Hi Igner

Any news on that update? Keenly awaited!

Cheers

Offline

#622 2008-08-26 17:03:24

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

Re: ign_password_protect

@tameboy – I’m still having at it. While there are a couple places I need to clean up the code for 4.0.6 – I realized they are not impacting the current functionality, and I haven’t been able to recreate your problem to track it down.

If possible, email me using the forum link more specifics on your install, and that might help me track down the issue.


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

Offline

#623 2008-08-27 17:03:02

Alex007
Member
Registered: 2007-10-24
Posts: 57

Re: ign_password_protect

Hi All

I am using the ign_password_protect with the txphorum plugin and all is good except for one thing. I login and it says “Update your profile” or “Logout” – then as soon i click on update your profile it logs me out ;(

Any help would be appreciated – i am using version 0.5b7.
Thanks
A.

Offline

#624 2008-09-01 21:17:34

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: ign_password_protect

I am trying to allow for users with a privilege of “none” to log in. I created a user like that through the admin tab. But I can’t log in? Any reason why? Below is how my code looks like;
——————

<txp:ign_if_logged_in privs=“1,2,3,4,5,6,7”>

<txp:ign_show_login show_logged=“1” remember=“1” /> <txp:file_download_list form=“files” label=“Downloads” limit=“999” sort=“filename desc” wraptag=“ul” /> <txp:else /> <txp:ign_show_login /> </txp:ign_if_logged_in>

Last edited by dreamer (2008-09-01 21:29:32)

Offline

Board footer

Powered by FluxBB