Help - Search - Members - Calendar
Full Version: Getting URL from e-mail notification form
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
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
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
That did the trick - thanks, Ben!

Neil
medic119
Hope this is turned on by default in the next release.. smile.gif
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
biggrin.gif
girlie
Yep, me too - which is why I requested it here!
davidjaymz
Yay i found this post again.

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
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). wink.gif

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
Can anyone get this to work with mt 3.01D?
She
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.
Invision Power Board © 2001-2009 Invision Power Services, Inc.