Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#436 2007-07-02 12:25:21
Re: ign_password_protect
Anybody have any ideas for my issue above
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#437 2007-07-06 16:23:26
Re: ign_password_protect
Issue seems to be solved. It seems related to the fact that the article form that was being called was being called through an txp:article_custom tag? Any idea why?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#438 2007-07-22 22:00:01
- ellen
- Member
- From: Switzerland
- Registered: 2006-04-18
- Posts: 41
Re: ign_password_protect
Hello,
I’m using version 0.4.2d and don’t like to upgrade to 0.5b4 before it is finished.
This is the code implemented on my members page:
<txp:ign_if_logged_in>
<p>Greeting Message</p>
<p>Text</p>
<txp:article form=“news” limit=“1” />
<txp:else />
<p>Text<br />Please log in:</p>
<txp:ign_show_login />
<p>Text</p>
</txp:ign_if_logged_in>
This tag is used in the sidebar: <txp:ign_show_login remember=“true” />
1. Log in works fine but remember=“true/1” causes error “Unknown tag attribute” in Debug-mode.
2. After log in, a link “Log out” is displayed in the sidebar, but no logged_in_as message or the logged user name at least.
What am I doing wrong? Is there a way to get rid of this quickly?
Many thanks in advance…
Last edited by ellen (2007-07-22 22:01:54)
Offline
#439 2007-07-27 10:59:04
- ellen
- Member
- From: Switzerland
- Registered: 2006-04-18
- Posts: 41
Re: ign_password_protect
Hello,
Anyone out there? I’d really appreciate your help….
Offline
#440 2007-08-03 09:26:31
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: ign_password_protect
Hi, I have trouble with the logout… No matter which option I use (either <txp:ign_show_login /> or <txp:ign_show_login />), the logout link (“?logout”) produces an error 404… what am I doing wrong here? Any help appreciated!
Offline
#441 2007-08-03 16:29:45
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Just catching up here.
@ma_smith – no reason I can think of that wouldn’t work with article_custom, but I will investigate.
@firefusion – which version of the plugin? I’m not seeing that with the current release.
@ellen – I’d strongly recommend moving the current 0.5 release, there are some bugs in the 0.4x releases that 0.5 corrects.
@zoltandragon – the logout link should end in ?logout=1, not just ?logout; what version of TXP and what version of the plugin?
And then my dog ate my badger, and the love was lost.
Offline
#442 2007-08-03 16:48:10
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: ign_password_protect
Sorry – yes, it has the “=1” there too… I am using messy urls, if that is importants. When I click on “Log Out”, it puts “?logout=1” to the actual page url, and brings me to the error page (404). Latest version of both TXP and the plugin (I downloaded both today :)
Last edited by zoltandragon (2007-08-03 16:49:27)
Offline
#443 2007-08-04 00:31:38
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
@zoltandragon – I’ll take a look, but messy versus clean URLs shouldn’t make a difference.
And then my dog ate my badger, and the love was lost.
Offline
#444 2007-08-27 16:49:49
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: ign_password_protect
I tried it once again on different servers and different settings: it works when there is a clean url, and it doesn’t when I use the messy url. Can it still be the mere problem? Thanks for any hint :)
Offline
#445 2007-09-15 17:25:53
Re: ign_password_protect
Hi,
the idea is simple. All I wanted was to show individual content to specific users after login. I tried this:
<txp:ign_password_protect remember=“0”>
<txp:asy_wondertag> <txp:article_custom category=”<txp:ign_logged_user />” /> </txp:asy_wondertag></txp:ign_password_protect>
I wanted to load articles from the category matching the login name but the ign_logged_user tag only shows me a logout link. What do I have to do to just get the username returned? Help would be greatly appreciated
Markus
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#446 2007-09-15 20:54:05
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
@zoltandragon – I just had one of those “d’oh’ moments. You are correct that the logout link is broken in messy url mode, becuase the ? is hardcoded into the logout link. But there’s no reason I can’t handle that differently. I’ve been unbelievably swamped of late, but I’m hopeful that I can find some time to fix this in the near future.
@markus – if you’re using the 0.5 version, you can bend the logged_user output to your will using a form – by default ign_current_user1 looks for a form ‘current_user’ and if none exists, then it uses the following form to render the output:
<div class='active'>
<p><txp:ign_user_info type="realname" /><br />
<txp:ign_logout_link>Log out</txp:ign_logout_link></p>
</div>
It’ll also accept any form passed in using the form attribute. So, in your case, since all you want is the user name, then you’d create a form that only contains <txp:ign_user_info type="name" />. If you called the form “username_form”, then your code would be:
<txp:ign_password_protect remember=“0”>
<txp:asy_wondertag> <txp:article_custom category=”<txp:ign_current_user form="username_form" />” /> </txp:asy_wondertag>
</txp:ign_password_protect>
Make sense?
1 ign_logged_user has been renamed to ign_current_user, as I think that better reflects the function of the tag. However, ign_logged_user is currently an alias for ign_current_user, for backwards compatibility.
Last edited by igner (2007-09-15 21:04:54)
And then my dog ate my badger, and the love was lost.
Offline
#447 2007-09-15 21:33:53
Re: ign_password_protect
I created a form like you said. Then added:
<txp:asy_wondertag>
<txp:article_custom allowoverride=“0” category=”<txp:ign_logged_user form=“current_user”/>” pgonly=“0” />
</txp:asy_wondertag>
but it is still not working the way it should. And I don’t understand the logic of the new 0.5 version. How du I get rid of the remember me functionality now that it is deprecated within <txp:ign_password_protect> ???
<txp:ign_logged_user form=“current_user”/> used seperately produces the right output.
Has anyone tried this before or does anyone know how to output content sensitive to the logged in user?
thx
Last edited by markusfalk (2007-09-15 22:44:55)
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#448 2007-09-16 05:24:24
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Try using <txp:article_custom category="username" /> without the wondertags. I think you’ll find that it still doesn’t work as you’d like / expect. You’ll need to re-work how you’re calling the data, but the asy_wondertag combo with the form will definitely take you in the right direction.
And then my dog ate my badger, and the love was lost.
Offline
#449 2007-09-16 07:56:51
Re: ign_password_protect
I’ve already tried it that way but still nothing. Then I copied the exact output of the ign tag into the category attribute and it still doesn’t load the right content. It seems only the combination won’t output the right content.
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#450 2007-09-16 17:45:50
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Right – what I was trying to suggest is that you need to work it out using a static value for the category until you get the desired results, and then use the technique you were trying before (asy_wondertag + ign_current_user) to convert it to a dynamic process.
And then my dog ate my badger, and the love was lost.
Offline