Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2005-10-25 20:34:46
Re: ign_password_protect
Do not use mem_self_register on my side :-|
Offline
#137 2005-10-26 16:13:55
Re: ign_password_protect
Hi. As I currently have no idea how to solve this and it is kinda urgent (to me at least) I’d like to know what possible causes a failed/?non-submitting? authentication with ign_password_protect can have. The login dialog pops up, and longs for authentication, the problem is just, even a valid user, with a valid password (I checked user/pwd over twenty times, no kidding) isn’t allowed in. I use Txp 4.0.1. This can’t be related to the issues some other cms’s have had with mysql 5.0+, because of it’s different encryption? EDIT: Oh, never mind, just noticed I’m not even using mysql 5.0+.
thx in advance, step21, any help is greatly appreciated
Last edited by step21 (2005-10-26 16:17:06)
Ever/Never Design
Beauty meets Business.
Offline
#138 2005-10-26 16:41:46
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
@darrepac – haven’t been able to reproduce the problem on this end…but I’m still looking.
@step21 – tough to say, depends on what authentication method you’re using. shoot me an email offlist and I can take a look.
And then my dog ate my badger, and the love was lost.
Offline
#139 2005-10-26 17:22:51
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: ign_password_protect
I just upgrade to the mem_self_register : same “notice” error as above …
Offline
#140 2005-10-26 19:21:44
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
@darrepac and/or jpdupont – any chance of getting admin access to your txp install temporarily? I’m not having much luck recreating the problem, so the most expedient route would be to go to an install where I know it’s failing. email me offlist if this is a possibility.
And then my dog ate my badger, and the love was lost.
Offline
#141 2005-10-26 19:29:02
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: ign_password_protect
Sent … Check your mail …
Offline
#142 2005-10-27 02:30:50
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Seems like a day for finding dumb mistakes. Version 0.4.2 is now available.
Contains fixes for page mode authentication and the aforementioned errors when resetting user passwords.
Thanks to jpdupont for helping me track down the latter.
Last edited by igner (2005-10-27 13:35:48)
And then my dog ate my badger, and the love was lost.
Offline
#143 2005-10-27 05:11:43
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: ign_password_protect
Thanks ! Works now as expected !
Offline
#144 2005-10-27 05:16:28
Re: ign_password_protect
Is there a lot of changes? I think I will go for a manual update as I have done a lot of changes in the original code to scope with french language…
Offline
#145 2005-10-27 12:43:01
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
not a lot of changes – replace the ign_send_new_password function with the following:
<code> function ign_send_new_password($NewPass,$themail,$name) { global $ign_user, $ign_user_db, $sitename, $txp_user;
$realname = safe_field(‘realname’, $ign_user_db, “name=’$name’”); $message = sprintf(ign_pp_gtxt(‘change_email’),$realname, $name, $NewPass, $sitename, hu);
return ignMail($themail, “[$sitename] “.gTxt(‘your_new_password’), $message);
}
</code>
and you’ll take care of the email issue. You can ignore the other fixes if you aren’t planning on using the plugin in page mode (as opposed to inline).
I still plan on improving the localization when I wrap up a couple of projects I’m currently working on. Please feel free to send me any suggestions you might have.
And then my dog ate my badger, and the love was lost.
Offline
#146 2005-10-27 13:13:52
- oldi
- Member

- Registered: 2005-10-14
- Posts: 87
Re: ign_password_protect
the above link doesn’t work for me
Offline
#147 2005-10-27 13:36:27
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
sorry – dropped a couple of slashes from the url. fixed now.
And then my dog ate my badger, and the love was lost.
Offline
#148 2005-10-27 14:48:07
- oldi
- Member

- Registered: 2005-10-14
- Posts: 87
Re: ign_password_protect
thanks. resetting passowrds from admin works fine now.
I had a question about hiding some links which would appear only for the registered users. I know i have to use <code><txp:ign_password_protect hide_login=“true”></code>. But i don’t seem to find where the tags or code of the links are. I have found this in a sidebar form
<code><div class=“sidebarbody links”> <h3>Links</h3> <div class=“sidebarin”> <txp:linklist form=“plainlinks” limit=“5” wraptag=“ul” break=“li” /> </div> </div> </div>
</code>
But that includes all my links, while i want only few of them. What should i do in this case?
thanks
Offline
#149 2005-10-27 15:08:38
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
hmm, good question. I’d probably do something along the lines of the following:
1. set up a “restricted” or “member” category for links in Content->Organise
2. set up a links form called ‘restricted’ that looks something like
<code>
<txp:if_category name=‘restricted’>
<txp:ign_if_logged_in>
<txp:linkdesctitle /><br />
</txp:ign_if_logged_in>
<txp:else />
<txp:linkdesctitle /><br />
</txp:if_category>
</code>
3. call that form using <txp:linklist form='restricted' limit='5' wraptag='ul' break='li' />
That should do the trick for you – though I didn’t have time to test it to be certain.
And then my dog ate my badger, and the love was lost.
Offline