Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-19 15:56:33

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

[issue] Comment count after Blogger import?

Hi!

I have imported some hundreds of articles from Blogger and it seems as if my comments have also been imported (I can see them under “comments”), but on the homepage itself, txp does not show the number of comments connected with each article.

Here is my form to display the comments:

<code>
<txp:if_comments_allowed> &nbsp;•&nbsp; <txp:if_comments> <img src=”/images/icn_quoteleft.gif” alt=“Kommentieren”>&nbsp;<txp:comments_count />&nbsp;<img src=”/images/icn_quoteright.gif” alt=“Kommentieren”> <txp:else /> <txp:comments_invite /> </txp:if_comments>
</txp:if_comments_allowed>
</code>

Any idea what went wrong? (Oh – and how can I connect the <txp:comments_count /> with an invitation to comment, I mean something like <txp:comments_invite /> but only displaying the number of comments, no text. It seems as if this tag does only display the number of comments?)

M

PS: The FAQ about posting code is nice, but how can I post well-formatted code?

Offline

#2 2005-12-21 10:08:58

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [issue] Comment count after Blogger import?

Any ideas anyone? Pleeeeaaassseeee?

Offline

#3 2005-12-21 14:41:24

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [issue] Comment count after Blogger import?

The way you have that code, nothing will show at all if comments are not allowed, not even an existing comments count. Are comments allowed for the articles concerned? Also the comments_invite will not show if you have comments. I think you need to take the comments_count outside the “if_comments_allowed” tag so something like:-

<code><txp:if_comments>
<txp:comments_count />
</txp:if_comments>
<txp:if_comments_allowed>
<txp:comments_invite showcount=“0” />
</txp:if_comments_allowed></code>

Last edited by thebombsite (2005-12-21 14:49:49)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2005-12-21 14:51:17

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: [issue] Comment count after Blogger import?

I think the import scripts need updating, it is possible that they do not set the comment count correctly in the database.

Offline

#5 2005-12-22 06:34:10

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [issue] Comment count after Blogger import?

Yes, the Blogger import does not update the comment count.

You can fix the problem yourself, as I posted here, but it’d be nice to the have the importers updated.

Offline

#6 2005-12-22 07:41:11

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [issue] Comment count after Blogger import?

Thanks for your help. I knew this way, but I am not willing to do this for about 300 articles… Did anyone try another solution?

Offline

#7 2005-12-22 07:49:41

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [issue] Comment count after Blogger import?

Just for one article, Michael, not one for each. As I said: “Textpattern updates the comment counts when you delete a comment.”

Offline

#8 2005-12-22 07:53:32

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [issue] Comment count after Blogger import?

I just did it. Created a comment. Submitted it. Deleted it. Nothing happened… Have a look yorself!

Offline

#9 2005-12-22 07:56:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [issue] Comment count after Blogger import?

Looks like it’s working to me. Clear your browser cache.

Offline

#10 2005-12-22 08:01:05

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [issue] Comment count after Blogger import?

Still not working. Go to the main site and then scroll down to the article starting with “Nachtrag zu “3 Tage, In 3 Tagen,” – this one HAS comments. TXP shows the code that I declared to show when there are no comments…

Offline

#11 2005-12-22 16:51:47

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [issue] Comment count after Blogger import?

Did you check the code you were using as I suggested above?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#12 2005-12-22 17:00:09

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [issue] Comment count after Blogger import?

I tried it with your example and with mine: No difference. (Except if I do not want comments to be shown on one of the articles, with your code I can see something – the picture I have there – with mine, you don’t see the line, but that’s not the problem…)

Offline

Board footer

Powered by FluxBB