Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#736 2010-07-28 21:54:25
Re: ign_password_protect
I did a couple of searches (sorry, didn’t read through every single post in the forum, this time, I’m sure I have several times) but I didn’t see any references to this.
Can anyone think of a way we could have an alert sent via email whenever someone (logged in) visits a particular page or if not that, even an email sent that so-and-so just logged in to SectionA?
I can’t think of an easy way to do this, but I’ve never tried (read: thought of this) before, either.
-Ryan
Offline
#737 2010-07-28 22:41:39
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Ryan -
This isn’t really directly related to ign_password_protect functionality. More importantly, I’m not entirely clear what the use case is you’re trying to target.
Off the top of my head, it’s conceivable to add callbacks to certain events such that another plugin could then hook into those events, but I can’t really say when or if I could make those changes.
What’s the end goal here?
And then my dog ate my badger, and the love was lost.
Offline
#738 2010-07-28 23:10:20
Re: ign_password_protect
I know it’s not expressly tied to ign_password_protect (ie. I know it won’t do it for me), but I just wondered if there was some kind of login event that, when triggered, could also be set to send out an email to the site owner/manager.
A client is thinking for a download page of product manuals, being notified when the user logs in (I am honestly not entirely sure why other than to keep an eye of how often things are downloaded — proprietary systems that they need to make sure aren’t being shared with the wrong people) they just asked if it was possible.
I’m wondering now if it might just be easier to set up a custom report in Google Analytics and have that sent to them weekly.
Thanks much for your quick response, though.
-Ryan
Offline
#739 2010-07-28 23:15:16
- igner
- Plugin Author

- Registered: 2004-06-03
- Posts: 337
Re: ign_password_protect
Sure – the old saying goes “anything’s possible for a price”.
There’s no event callback currently tied to the validation event though IIRC it shouldn’t be that hard to register a callback there for another plugin to tap into. On the other hand, it sounds more like he’s interested in who’s downloading what – which is also entirely possible to implement at the download level. If I were working on it – that’s where I’d look first.
And then my dog ate my badger, and the love was lost.
Offline
#740 2010-08-18 09:16:32
Re: ign_password_protect
Hey,
I’m building some sort of intranet-Blog which needs to be protected by password.
My questions is wether ign_password_protect also protects the RSS-Feed from being read? If not does anyone know a solution?
I haven’t used TXP for quite some time now. Can I make Feed-Templates in which I could use ign_password_protect?
thanks, Markus
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#741 2010-09-10 08:37:24
Re: ign_password_protect
OK, after a lot of messing around I have returned to the self edit functionality of ign_password_protect – mainly because mem_self_register keeps throwing up errors. And it works (which should be no surprise of course).
What I would like to add is the functionality to allow a user who has forgotten their password to have a new one sent to them, similar to the back-end functionality. In my head, I see a simple form where the user enters their username. When they submit the form, the username is checked and if that username exists in the database then a new password is created and emailed to the email address in the database.
I would have a go at hacking this but after wading through the plugin code I’m struggling to identify the code that does this for the backend (ie. for administrators).
Any ideas on how to accomplish this?
[EDIT] yes, I should read this thread to see if someone else has asked before. I’m up to page 34 of 74 so far!
Last edited by aslsw66 (2010-09-10 08:39:39)
Offline
#742 2010-09-10 09:04:38
Re: ign_password_protect
Hey aslsw66, I am not sure if I could help in some way but as you seem to be a lot into the ign_password and mem_self register subject you might be able to help me.
Right now I am on two projects which use either both or one of those plugins and I have problems with both.
1. The first project should be a password protected area (self registering would be nice but not necessarily needed) – Here it fails because whenever I login and reload the page or click on another link, i am logged out again and can not even login properly before deleting the cookies. I use the latest version of txp and the ign_password_protect plugin (4.2 and 0.5b9)
2. The second one is a txp-ticket-system. I got this running so far with mem_moderation and I am quite satisfied with the result. Problem is that I don´t receive any email when someone creates a new article. Email notification on comments works fine. Also the search function cannot search through comments. Any idea how that can be done? Later on I will have to protect everything with ign_password_protect as well (sorry if the second problem does not have a lot to do with that thread)
Offline
#743 2010-09-10 14:21:18
Re: ign_password_protect
Solved the first problem.
I retried the plugin without using the additional table ign_user in my database and… it works fine =)
If anyone got an idea on Problem #2 I ll be more than happy to read any ideas about it.
Offline
#744 2010-09-10 16:07:18
Re: ign_password_protect
I haven’t worked with mem_moderation much, so I don’t recall if it’s supposed to email you when there’s an article awaiting moderation.
If you are looking for the functionality in general (vs. something specific to mem_moderation), perhaps take a look at upm_pending_notify
Offline
#745 2010-09-10 16:09:00
Re: ign_password_protect
Thanks a lot! I solved it just some minutes ago… i was just to stupid to see that there additonal prefs for the plugin in the prefs area. Here you can decide wheter to get an email notifcation or not.
Offline
#746 2010-09-15 12:28:18
Re: ign_password_protect
demoncleaner, sorry but I can see your issues but am not really advanced enough to help!
And now I need help myself…
<txp:ign_self_edit / > works as intended if the user enters matching new passwords. However, if the new passwords don’t match then it correctly returns an error message BUT fails to put the enclosing <form>...</form> tags around the input fields. In other words, the form fields appear but clicking the button does nothing.
Any ideas? I tried the mem_self_register functionality just now, but it is till failing on me.
Offline
#747 2010-09-15 13:19:16
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: ign_password_protect
aslsw66 wrote:
fails to put the enclosing
<form>...</form>tags around the input fields.
Very much cases like this are curable by using rah_replace, perhaps in combination with an if_variable construct in order to avoid duplicated form tags.
But I don’t want to keep any hardcore ign_pp user from posting native solutions.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#748 2010-09-16 12:49:32
Re: ign_password_protect
uli, I’m not really sure what you’re suggesting here… The problem I’m having is not duplicated form tags, which I guess I could search for and strip out, but missing form tags when the form is submitted with an error.
BTW, it’s amazing that I can get most of the functionality to work, but this user-side editing of passwords and personal details is consuming about 90% of my brainpower!
Offline
#749 2010-09-16 13:02:18
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: ign_password_protect
Ignore the “duplicate” part of my post for now. But you can add the necessary form tags with rah_replace, I’m sure.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#750 2010-09-16 22:00:22
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: ign_password_protect
Reading my last post again, I think I should have been a little more communicative.
You could try it like so:
<txp:rah_replace from='<input,class="ign_inputclass">' to='<form action="whatever" etc.><input,class="ign_inputclass"></form>'>
<!-- your ign code -->
</txp:rah_replace>
Where class="ign_inputclass"> is just an example, just has to be unique for the output of that block of code. Have a look at where I used single apostrophes.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline