Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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