Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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>
•
<txp:if_comments>
<img src=”/images/icn_quoteleft.gif” alt=“Kommentieren”> <txp:comments_count /> <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
Offline
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
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
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
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
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
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
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