tips and tricks for movable type

no pop-up comments?
April 03, 2002

Nice tip for those who don't want pop-up comments, but would rather open them in the current browser window - by Stian in this Community Forum topic.

Instead of:

<a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false">Comments (<$MTEntryCommentCount$>)</a>

Use this:

<a href="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTEntryID$>">Comments (<$MTEntryCommentCount$>)</a>

Then go ahead and delete the OpenComments Javascript function from the HEAD section of your template.

If you want to link directly to the Individual Archive page instead of mt-comments.cgi, then use this:

<a href="<MTEntryLink archive_type="Individual">#comments">Comments (<MTEntryCommentCount>)</a>

The default Individual Archive Template includes the anchor, but if you've made a lot of modifications to yours, you may need to add it back in:

<a name="comments"></a>

Comments

I used this and it worked! Well, sort of - it didn't open them in a new window but it did open them in the window and not in a tiny one like before etc.

by Nefertiti | 08.08.02 11:11 PM

That what it's supposed to do!

If you want your comments to open in a new window, but not a tiny pop-up window, just use the link you ceurrently have but add

target="_blank"

in the 'a href' tag.

by bmd | 08.09.02 01:02 PM

I changed the code and it worked well.
But how do I place a link from the comment side back to the main page?

by Booga | 02.11.03 10:18 AM

Ok I am off to try this out :-D

by iced glare | 03.31.03 01:21 PM

would that work the same with the trackbacks?

by iced glare | 03.31.03 03:54 PM

OK I unsubcribed from here

by iced glare | 03.31.03 05:43 PM

yes it should do.

by henry | 04.01.03 05:18 AM

Answered over at the Forum in this topic.

by girlie | 04.01.03 01:32 PM

Ok I am off to follow this thread girlie

and which would you prefer to link you to your main site or the tips?

by iced glare | 04.02.03 02:49 AM

Hmmm. I haven't had any problems with the forum - and I practically live there.

by girlie | 04.02.03 12:20 PM

Thanks for the awesome site and this has been extremely helpful! :)

by denise | 05.17.03 06:13 PM

With the anchor tag (<a>) being deprecated in XHTML 2.0, it would be forward-looking to do something like changing this (in the default MT templates, at least in version 2.64):

<div class="comments-head"><a name="comments"></a>Comments</div>

to:

<h4 class="comments-head" id="comments">Comments</h4>

This gets rid of the <a> tag with the deprecated "name" tag, as well as maintains structural markup in the form of a <hX> tag.

Just a (very) late suggestion :)

by Cheah Chu Yeow | 11.09.03 06:51 AM

Sorry about that last comment - the <a> didn't come through because I (daftly) forgot to encode them properly.

by Cheah Chu Yeow | 11.09.03 06:54 AM

Hi there,
I thought the major hurdle was getting MT installed on my server, ha no chance this pop-up thing is driving me insane.

I found the thread for changing the form to have all these bits and pieces, but I'd really like to have a simple honest solution to making the comments appear underneath the entry. I don't want it to open in another window.

I'm not really interested in the collapsing extend version (found here. Ideally I'd like to be able to have a form pretty much the same as this one underneath my portfolio for anyone to leave a comment.

I've been searching for like 6hrs and I keep getting to threads where people ask the question and not the answer.

If I missed it somewhere I do appologise profusely, last thing I want to be is the 1000th person to ask you the same question. Any links in the correct direction would really be appreciated.

by kay | 01.15.04 01:08 AM

Awesome! Thank you very much. I used your second suggestion that allows users who want to leave a comment the ability to see the comments other visitors have left, by actually linking them to the archive page.

I will have to check out your site further, it looks like you have posted lots of excellent customizing methods.


Thanks again.

by kathy | 02.17.04 10:53 PM

hi all, could somebody tel me in which template this code should be?

I'd really like to get rid of the pop-ups.. :-)

by Erwin | 02.22.04 11:50 AM

*shame*

i figured it out

*shame*

;)

by Erwin | 02.22.04 12:33 PM

Oh, thx. It is very useful. Is it work because we get rid of the javascript?

By the way, do you know how to make a "roll-up/roll-down comment list" showing within the same page of an entry (i.e. comment is showed (roll-down) when a "+" button is hit; comment is hide when a "-" is hit ) like what sugarfused and hlb's articles does.

by Aaron | 03.21.04 02:29 PM

Sorry about the three pings. I had a bookmarklet set up for my sideblog orangemoon, and after making changes to it twice, I was noticing it pinged automatically, Not my intention--- SORRY!

(and yes, I have you Bloglined now..I love this site!)

by ej | 03.23.04 07:20 AM

I used the coding above to make my extended entries slide down. I want to do the same with my comments. There is a link to SHOW the comments - regardless if there are any or not (which is fine, no issue) but the FORM to make a comment doesn't show up. How do I get the form to make a new comment to slide down with the comments themselves? Thanks!

by Chelle [TypeKey Profile Page] | 07.29.04 06:15 AM

It sounds like you're talking about the show/hide script from Scriptygoddess? If so, you should probably ask about that over on her site. :)

by girlie [TypeKey Profile Page] | 07.29.04 11:14 AM

I have a question to ask you. I code my domain with php, and my MT files are in an MT directory...now I got a code snippett from tutorality.com that makes it so if you use php, you could have your content go into one area, like if I had an iframe there. Well, the code for linking things to that will only work if what your linking to it is in the same directory as your index.php file...is there a way to make it so that it still goes into that "frame" even if it isn't in that file? I wanted to make my comments go there, but so far I have no clue how to do it because my mt-comments.cgi file isn't in my main directory. If your not understanding you can always email me or go to my site and click on the comments link. :)

by Shasta [TypeKey Profile Page] | 10.07.04 04:52 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/20)

» Something I might do (from Anitra)-- [the girlie matters] tips and tricks: no pop-up comments?
Excerpt: [the girlie matters] tips and tricks: no pop-up comments?...
Weblog: ej's orange moon
Tracked: 03.23.04 07:16 AM