Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#565 2008-04-06 14:47:58
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
I’m sorry – I completely misread your post and thought you’d said on logout, not login.
Let me see what I can do.
And then my dog ate my badger, and the love was lost.
Offline
#566 2008-04-07 00:42:58
Re: ign_password_protect
Thanks!
Offline
#567 2008-04-07 01:44:11
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
new version – ign_password_protect 0.5b9
Preserves query strings on login as well as logout, which should solve the issues with messy urls.
Last edited by igner (2008-04-07 01:44:39)
And then my dog ate my badger, and the love was lost.
Offline
#568 2008-04-07 07:30:42
Re: ign_password_protect
hi, great its working now also with the messy urls. Thanks a lot, I really appreciat it.
sanmarco
Offline
#569 2008-04-09 18:12:55
Re: ign_password_protect
I’m using my own form to present the login screen.
I see tags for name (ign_user_field) and password (ign_submit_field), but not an obvious one for the “remember me” checkbox.
One would probably use (ign_checkbox) but I assume you have to pass the right name or value for it to work properly.
Can someone give me an example please?
Thanks,
Shige
Offline
#570 2008-04-09 18:23:13
- igner
- Plugin Author
- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
<txp:ign_checkbox name="stay" value="1" />
Edit: Looking at this, I seemed to have gaffed when I added the ign_checkbox function, setting it to default to ‘remember’ instead of ‘stay’ – that’s what happens when the code sits idle for a year. For now you can specify the name and it’ll work just fine. You can even omit the value, as it’ll default to 1 if no ‘value’ attribute is passed in.
Last edited by igner (2008-04-09 18:37:44)
And then my dog ate my badger, and the love was lost.
Offline
#571 2008-04-09 18:49:35
Re: ign_password_protect
Thank you!! This is exactly what I wanted to know!!
Offline
#572 2008-04-10 00:11:01
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: ign_password_protect
Can this plugin be modified so the use of this tag: <txp:ign_usr_online /> can show the names of the commentators rather those logged in on admin side? Also, have those commentator names be linked to their sites.
Last edited by Ruhh (2008-04-10 00:13:05)
<txp:Ruhh />
Offline
#573 2008-04-25 20:08:43
Re: ign_password_protect
I can’t get the logout link to go to my root page with return_path used within 0.5b9 ???
<txp:ign_logout_link return_path=”/vg”>abmelden</txp:ign_logout_link>
thanks
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#574 2008-04-26 21:03:23
Re: ign_password_protect
I’m having little troubles :)
I use the plugin to have privilege levels across my site. I programmed several functions myself to include them into txp. What I now needed was the Id of the current logged in user in my function.
I tried the following:
<txp:ign_if_logged_in privs=“1,3,4” >
<txp:php>
$user=<txp:ign_user_info />; //for sql_query SELECT user_id FROM ign_users WHERE name=$user
include(“php/article_show.php”);
</txp:php>
<txp:else />
<p class=“fehler”>Sie haben keine Rechte diese Funktion zu benutzen.</p>
</txp:ign_if_logged_in>
the problem is that the txp tag won’t be interpreted which I wanted to use to get the user_id from the ign_users table.
How can I transfer the ID of the currently logged user to my included php function??
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#575 2008-04-26 22:19:11
Re: ign_password_protect
I use your cookie now to get the user_id :) … still no forwarding with return_path ;)
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#576 2008-05-05 17:28:26
Re: ign_password_protect
hi … it’s me again ;)
do you think it would somehow be possible to inlcude the users privilege into the cookie so that something like <txp:ign_user_info type=“priv”/> would then output the set privilege level
:) thx
Markus
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline