Add the "url" field to your notification form... then open up mt-add-notify.cgi in a text editor. Find line 36:
CODE
$note->email( $q->param('email') );
After that line add this line:
CODE
$note->url( $q->param('url') );
Then save (and re-upload if necessary). It should now save the submitted URL.
theNonsuch
Jan 12 2002, 09:29 AM
Playing with the e-mail notifications feature a bit. I've noticed that on the notification page in MT there's a field and column for the user's URL, but I haven't been able to figure out if this is a field gatherable from the notification form used on the site (and in the documentation).
I've tried adding in a text field with the name "url", but that wasn't saved. Is this only a field usable if you manually type in the URL in MT, or can you add a field on the site that will also be sent with their e-mail address?
thanks! Neil
theNonsuch
Jan 12 2002, 11:35 PM
That did the trick - thanks, Ben!
Neil
medic119
Nov 30 2002, 02:09 PM
Hope this is turned on by default in the next release.. I'd rather have it there by default and not use then have to add it each time i upgrade. I already have enough hacking to do... lol
Yep it's a bummer having to redo this every upgrade.
Am i the only one using the URL field to get the subscribers name?
Is there a way to add an extra field so URL can be URL and i can get there name as well.
DJ
shelley
Apr 23 2004, 06:32 AM
So far, I've not had to re-implement this hack with each upgrade, because the mt-add-notify.cgi script hasn't changed since early 2003 (when I upgrade, I only upload files where the dates have changed since the last distribution).
Adding an extra field would require hacking not only this script file, but also other MT files (such as Notification.pm and list_notification.tmpl) as well as adding the field to the database itself.
Chris.m
Aug 24 2004, 05:04 PM
Can anyone get this to work with mt 3.01D?
She
Sep 5 2004, 11:53 PM
QUOTE (Chris.m @ Aug 25 2004, 01:04 AM)
Can anyone get this to work with mt 3.01D?
great question.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.