Help - Search - Members - Calendar
Full Version: MT 2.11 Comments pop-up
Movable Type Community Forum > Additional Resources > Tips and Tricks
Phlog
I still use MT 2.11 (no plans to upgrade yet) and after implementing a new template, my Comments listing and preview do not pop-up but instead open in a full browser window. Any suggestions welcomed!

My Webpage.

Thanks!
John.
kadyellebee
You don't have the javascript in the head of your Main Index template that controls the popping up.  Unfortuantely, I don't know the 2.21 code off the top of my head, but you could get the default from the default-templates - I *think* that it should work.

Kristine
girlie
He's using the latest version of writing the link, so he should use the latest version of the Javascript function as well:

CODE
<script language="javascript" type="text/javascript">
function OpenComments (c) {
   window.open(c,
                   'comments',
                   'width=480,height=480,scrollbars=yes,status=yes');
}
</script>


(Same thing you already said, K, I was just at the default templates page already, so I pasted the code.)
kadyellebee
Oh, thanks Girlie!!  I have a hard time recognizing the comment code w/o looking it up - it all looks familiar to me, but I can't necessarily see if its right smile.gif  Silly, huh?! smile.gif

Kristine
Phlog
kadyellebee and girlie -- you two are awesome.  You hit the nail on the head. Comments pop-up is working (again).
Thank you !!
girlie
Kristine, I recognize the old code by two things - it has the mt-comments URL in the function, and the a href tag does not have OpenComments(this.href) in it. There are other differences, but those are the two I look for.

Glad we got ya fixed, Phlog!!
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.