Help - Search - Members - Calendar
Full Version: Comments tag
Movable Type Community Forum > Additional Resources > Tips and Tricks
hyster00
I just wanted to know whether or not there was something special that I had to do in order for the comments link on my page, to activate a pop up window.
for example...when I go to other MT user pages, and I click on the comment links at the end of post, a pop up window comes up where I can enter a comment, as well as read other comments that have been posted. how do I go about doing this on my page...as I am only taken to a html page when I click on comments.

suggestions??
silverberry
Is this in your head tags? (or linked via javascript)

CODE
function OpenComments (c) {
   window.open(c,
                   'comments',
                   'width=480,height=480,scrollbars=yes,status=yes');
}

function OpenTrackback (c) {
   window.open(c,
                   'trackback',
                   'width=480,height=480,scrollbars=yes,status=yes');
}



And is this how you coded your comment link for your entry:
CODE
<a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false">Comments                       (<$MTEntryCommentCount$>)</a>
hyster00
now should I put the second code that you posted after the tag??? or just what...but thanks alot for that info.
silverberry
It would help if you would post how you have your COMMENTS tag coded .... but you want to use the second code to replace how you have your comments linked now -- so that it will call the javascript and open the popup window.
hyster00
stupid question...I got it to work, but which template do I edit to give the pop up window a different look?? the "comment listing" template??
silverberry
Yep -- Comment Listing --
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.