May 05, 2005

Comments remembering info

Rusty posted earlier about the comments section remembering your information. I started playing with the templates and using his code and the code posted at Eric's Grumbles, I was able to get the Individual Archive Posts working. But I wasn't able to get the pop-up comments window to remember the information.

Being 99% OCD and 100% Geek it bothered me that I couldn't figure it out. Then it hit me, after I finished rubbing my head I tested out my thought.

The problem is the:

var HOST = <$MTBlogHost$>;
line in the code.

If you change this in line in both the Comment Listing template and the Individual Archive Template to:

var HOST = 'mu.nu';

It saves the information and it’s readily accessible. Now for the nifty part: It remembers the information for any of the mu.nu blogs you visit.

Hopefully this helps.
Later,
phin

Posted by phin at May 5, 2005 08:07 PM
Comments
#1

That may well explain a lot. I don't use pop ups for comments and trackbacks, I do it all inline in my individual post archives. Because of that, I didn't see any reason to test the javascript in the pop up. If you do inline comments/trackbacks then my code samples would work quite well for you. The popup probably does not have the same global variables in the headers, in fact I'm sure it doesn't. Thus, the problem for some folks.

Posted by Eric at May 5, 2005 09:10 PM
#2

Do you have the Javascript in your header for the "remember me" template? Wait - do you have a "remember me" template?

Posted by sadie at May 5, 2005 09:24 PM
#3

It's not missing it just takes some tweaking. In the Manage Templates Screen see a Button / Line with the Edit Comment Listing Template. Once you edit the template towards the top in the Java Script you'll see a line with the:

var HOST = '';

Thats the line you want to change
var HOST = 'mu.nu';

As Eric noted, this won't really affect the blogs doing Inline Comment Posting though, unless everybody switched the Host over to mu.nu. Then it would be a common cookie and the default information will populate everywhere.

Posted by phin at May 5, 2005 09:43 PM
#4

The only thing that's driving me batty (besides the OCD) is the difference in the 2.6 and 3,15 templates.... it's all doable, just with a few headaches;-)

Posted by sadie at May 5, 2005 10:52 PM
#5

Need to check one thing: What browser are you using?

There's a problem with IE that prevents it from remembering cookies set by mu.nu (or any other 2-letter domain name). Works fine in every other browser in the world except the one most people use. Grrr.

Posted by Pixy Misa at May 6, 2005 03:03 PM
#6

*hangs head in shame and puts on dunce cap for not testing in IE also*

Update on the post folks, looks like it only works with firefox for now.

Posted by phin at May 6, 2005 04:24 PM
#7

I searched Microsoft's site I found a fix.

http://support.microsoft.com/default.aspx?scid=kb;en-us;310676

If the users are running the latest security patch they're half way there. The second portion and something most people won't do is; edit the registry to allow for the “Special Domain”.

If someone does decide to edit the registry be sure to reverse the last portion of the domain, thus the .nu would become un. otherwise it won’t fix anything.

Posted by phin at May 6, 2005 06:34 PM
#8

Yeah, lovely isn't it...

Posted by Pixy Misa at May 7, 2005 12:36 AM
#9

You can just explicitly write your full domain (e.g. phin.mu.nu) - for some reason it always remembered my comment info, so I didn't use the fix.

Could you answer me another question, though? How do you get your munu blogroll to appear expanded in the HTML, instead of as nu.js? Do you use MT includes? If so, how do you do it? It seems to make a difference for the TTLB Ecosystem and Technorati.

Posted by David Boxenhorn at May 10, 2005 08:47 AM
#10

The best way is to use PHP includes.

<?php include "http://blogroll.mu.nu/mli.i"; ?> will include the blogroll as an alphabetically-sorted HTML list.

The available blogrolls:

mu.i - plain text, alphabetical
nu.i - plain text, chronological
mli.i - list, alpha
nli.i - list, chrono
pulldown.i - pulldown list, alpha
pulldownd.i - pulldown list, chrono

Posted by Pixy Misa at May 10, 2005 10:07 AM
#11

Thank you, Pixy. It's exactly what I wanted to know. Now, how can we get everyone to use them?

Posted by David Boxenhorn at May 10, 2005 12:02 PM
#12

Poke them with a pointy stick!!!!

Posted by Pixy Misa at May 10, 2005 03:30 PM
#13

Okay....maybe all the meds I'm taking are messing my head up, but could someone make a 'cheat sheet' that my 10-year old could understand??

[/hanging head in shame...]

Posted by Mad Mikey at May 12, 2005 12:35 AM
#14

1. From the Movable Type on the left hand side you'll see options for Post, Manage & Utilities. Under the Manage option, choose Templates.

2. From there click on Individual Entry Archive.

3. In the template body as you scroll down you'll see a line that says: var HOST = ;

4. We want to change this line to read:
var HOST = 'mu.nu';

5. Click the save button, for right now you can ignore the message saying you need to rebuild.

6. Click the Templates button again.

7. Scroll down to the Miscellaneous Templates. Beside the Comment Listing Template click the edit button.

8. In the template body as you scroll down you'll see a line that says: var HOST = ;

9. We want to change this line to read:
var HOST = 'mu.nu';

10. Click the save button.

11. At the top of the page click the Text that says rebuild. The message should say: "Your template changes have been saved. REBUILD to see those changes reflected on your public site."

12. Choose to rebuild all the files.

This should take care of it. One thing Pixy found is there is a bug that Microsoft is aware of that keeps Internet Explorer from accepting Cookies from Two Digit Domains. But this should take care of it for Firefox.

Posted by phin at May 12, 2005 01:49 AM
#15

Phin - thanks for the help. It would appear that the code tweaks are working, i.e., my 'comments' info was remembered after leaving a test message.

Posted by Mad Mikey at May 13, 2005 02:59 AM
Live Comment Preview
Post a comment









Remember personal info?