Help - Search - Members - Calendar
Full Version: Notification
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
You need to change it so that the form "action" points to the full URL to mt-add-notify.cgi. So this is basically the full URL to mt.cgi, but with mt-add-notify.cgi instead of mt.cgi.

Then replace the <$MTBlogID$> and <$MTBlogURL$> with the proper values, and you're set.
btrott
blog_id is the numeric ID of the blog. You can get this ID when you log in to MT; move your mouse over the name of the blog for which you want to add this notification form, and look at the URL. You should see "...&blog_id=N" where N is the numeric blog ID. That is the value that you should put into the form.
btrott
Hard to tell. Is the email address being added to the notification list?

Also, do you have access to your webserver error logs?
btrott
Do the other mt*.cgi scripts work from outside of the cgi-bin? If so, mt-add-notify.cgi should as well. Check the permissions, check that it was uploaded in ASCII mode, check the path to Perl.
light_to_carry
If I want to create the notification form that is included in the MT documentation, but cannot include it inside on of the templates, how do I modify the code so I am able to do that.


I need to map the "post" value to point to the mt-add-comment.cgi? Cause I tried similar things with no success. I don't know CGI, and I imagine this is pretty simple.. but I hoped someone had a quick fix...

Thanks.
light_to_carry
And those values are bascially the return URL after the e-mail has been entered... right?

But what about the <$MTBlogID$> ?

I changed the action to point to the full URL, but I am still returning a 500 error

The server encountered an internal error or misconfiguration and was unable to complete your request.


Here is what the code looks like:


CODE
<form method="post" action="http://www.lighttocarry.com/mv/mt-add-notify.cgi">
             <input type="hidden" name="blog_id" value="light_to_carry">
             <input type="hidden" name="_redirect" value="http://www.lighttocarry.com">
             <input name="email" size="20">
             <input type="submit" value="add">


thanks for your help
light_to_carry
####... I'm still not getting it to work correctly..

The server is still returning

CODE
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email=webmaster@familybizadvice.com]webmaster@familybizadvice.com[/email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Is this a server error that has nothing to do with MT?
light_to_carry
No, the e-mails haven't been added. Here are the last entry from the server's CGI Script Error Log.  

CODE
Content-length: 91
Content-type: application/x-www-form-urlencoded
Cookie: user=light_to_carry%3A%3AAzFwM61Sas%2FLo%3A%3A0
Extension: Security/Remote-Passphrase
Host: www.lighttocarry.com
Referer: http://www.lighttocarry.com/index2.shtm
UA-CPU: PPC
UA-OS: MacOS
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)

blog_id=%3C%24MTBlogID%24%3E&_redirect=%3C%24MTBlogURL%24%3E&email=chris_vivion@hotmail.com
%response
%% [Wed Feb 27 10:24:18 2002] POST /mv/mt-add-notify.cgi HTTP/1.1
%% 500 /big/dom/xfamilybizadvice/www/ltc/mv/mt-add-notify.cgi
%request
Accept: */*
Accept-Language: en
Connection: Keep-Alive
Content-length: 102
Content-type: application/x-www-form-urlencoded
Extension: Security/Remote-Passphrase
Host: www.lighttocarry.com
Referer: http://www.lighttocarry.com/index2.shtm
UA-CPU: PPC
UA-OS: MacOS
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)



Now, I don't have the scripts in the server's cgi-bin. Do they need to be there to make it work?
light_to_carry
thanks ben. i'll check those in the morning. you provide great support.

i owe you a check.

biggrin.gif
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.