You’re gonna remember me

Is your MT “Remember Me” cookie not working from entry to entry? Do you use an inline comment form instead of the default pop-up comments window? Chances are, each entry is stored in it’s own dated directory (or shares one with one or two other posts from the same day). Change the path variable in the setCookie() and deleteCookie() functions in the head of your entry page from '' to '/'. “Remember Me” should now work across all comment forms on your site—you could even use it to pre-populate your contact form!

Previous
Number Seven
Next
T:SNLG Tee Now Available
Author
Shaun Inman
Posted
February 5th, 2004 at 11:51 pm
Categories
JavaScript
Movable Type
Comments
005 (Now closed)

005 Comments

001

How could you use this method to pre-populate a contact form . There isn’t an included MT contact form, is there?

Author
Danny Cohen
Posted
Mar 13th, 2004 6:16 am
002

Just use the same field names in your contact form for name, email and if you’re interested, url. You can then use the same function that you use to pre-populate the comments for the contact form.

Author
Shaun Inman
Posted
Mar 13th, 2004 11:42 am
003

But one would have to use a different script for getting the contact message to their inbox?

Author
Danny Cohen
Posted
Mar 13th, 2004 11:45 am
004

Ah, yes they would. Maybe I’ll whip up a quick example later tonight or this weekend for those who are interested.

Author
Shaun Inman
Posted
Mar 13th, 2004 11:50 am
005

Come on, let’s see that example!

Author
Danny Cohen
Posted
Mar 14th, 2004 2:39 pm