Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-27 00:24:39

dharris001
Member
Registered: 2008-11-27
Posts: 12

Pop-up Comments

For some reason my pop-up comments aren’t working… I would like the pop-up window to display the currently posted comments and below that, the comment form to add a comment. Here are my forms:

popup_comments:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><txp:page_title /></title>
	<link rel="stylesheet" type="text/css" href="<txp:css />" />
</head>
<body>
<div style="padding: 1em; width:300px;">
<txp:comments form="popup_comments" sort="posted desc" />
</div>
</body>
</html>

Unfortunately, all that comes up is a blank page.

Here is my comments invite link at the bottom of the article form…

<txp:if_comments_allowed>
<txp:an7_comments_invite comment="Leave a Comment" count0="  (None)" count1=" (1) comment" count2=" (#) comments." />
<txp:else />
	<p>Comments are turned off for this article.</p>
</txp:if_comments_allowed>

Let me know what you think!! Thank you :D

Offline

#2 2008-11-27 23:56:05

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

I think you need to replace this line in your ‘popup_comments’ form:

<txp:comments form="popup_comments" sort="posted desc" />

with

<txp:popup_comments />

Offline

#3 2008-11-28 05:11:24

dharris001
Member
Registered: 2008-11-27
Posts: 12

Re: Pop-up Comments

I tried that, but on the pop up window all I get is a message that reads: “Comments” if there are no comments or “Comments [#]” if there are are comments, with # being the amount of comments posted. If you’re wondering how I have comments when I haven’t been able to get this working yet, it’s because the comments are from posts imported from other software.

Offline

#4 2008-11-28 12:38:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

Hmm… I’ve never used popup comments, and now that I give it a try in my test install I can’t figure out how it works either. It looks like <txp:popup_comments /> is a non-existing tag…

I hope an experienced popup comments user will be able to help you.

Offline

#5 2008-11-30 17:34:04

dharris001
Member
Registered: 2008-11-27
Posts: 12

Re: Pop-up Comments

Hm, that’s unfortunate. It doesn’t have to be a popup I guess, I can’t seem to get any type of comment working other than displaying them all on the main page. I wouldn’t mind clicking the comment invite link to show the post by itself with the comments at the bottom, but I haven’t been able to do that either.

Offline

#6 2008-11-30 18:17:28

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

Is ‘Automatically append comments to articles’ in Advanced preferences set to ‘yes’?

Offline

#7 2008-11-30 18:30:06

dharris001
Member
Registered: 2008-11-27
Posts: 12

Re: Pop-up Comments

It’s set to no.

Offline

#8 2008-11-30 18:40:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Pop-up Comments

<txp:popup_comments /> can only be used in a form called “popup_comments”. It’s used only when the “comments mode” preference is set to “popup”.

Offline

#9 2008-11-30 18:44:18

dharris001
Member
Registered: 2008-11-27
Posts: 12

Re: Pop-up Comments

the <txp:popup_comments /> is in the correct form and the mode is set to popup.

Offline

#10 2008-11-30 18:47:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

dharris001 wrote:

It’s set to no.

Is it possible that you need to set it to ‘yes’ for popup comments?

Offline

#11 2008-11-30 19:01:45

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Pop-up Comments

From what I can see in a fresh 4.0.7 install, setting that preference to popup only affects the <txp:comments_invite /> link, which by default is used in article list context, but not on the individual article page.

Offline

#12 2008-11-30 19:09:59

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

ruud wrote:

setting that preference to popup only affects the <txp:comments_invite /> link

Aha! It’s a plugin problem:

<txp:an7_comments_invite comment="Leave a Comment" count0="  (None)" count1=" (1) comment" count2=" (#) comments." />

You’d better ask in the plugin thread if the plugin can work with popup comments.

Offline

#13 2008-12-06 20:34:42

dharris001
Member
Registered: 2008-11-27
Posts: 12

Re: Pop-up Comments

Well, it’s not the plugin though, I’ve tried the same thing with the default. Anyway, I’ve decided to just go with showing comments on the bottom of individual posts only since that’s all I could get to work. But there’s a problem with that solution as well – It takes a lonnnnng time for the page to load the individual post with the comment form. I have no idea why it would take so long! But, each time I click to visit the individual post with the comment form on it, it takes about 25 seconds to load, when the homepage with several posts on it takes less than 5. Any idea what could cause such severe loading times with the comment forms?

Offline

#14 2008-12-06 20:58:52

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Pop-up Comments

Might be worth checking this older FAQ entry for some help. Or maybe this one. Probably not what you need, but might help.

Offline

#15 2008-12-06 22:14:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Pop-up Comments

It’s probably this one.

Offline

Board footer

Powered by FluxBB