Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-31 21:51:22

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Tricky comments question

Hello,

To emulate some sort of simple blog-roll, for only those domains, that belong to existent commenters of the Site, I tried the following:
( recent comments doesn’t do here, as it doesn’t allow me to sort by comment_count )

The article_custom is supposed to get me only one comment per article:

<li>
<txp:article_custom form=“mrs_blogroll_comments_articles” pgonly=“0” sort=“comments_count desc” status=“4” time=“any” />
</li>

This is the article form used, to display the comments:

<txp:comments form=“mrs_blogroll_comments” />

And my comment form looks like this:

<p>This is a test form, in order to display a blogroll.</p>
<p class=“small”>— <txp:comment_name link=“1” />
</p>

This all seems to do what it needs too ( display all commenter domain links, with their name text sorted by the ones with the most comments)

Except, it displays all the comments for each article.

How can I limit the comments, so I get one comment output per article ?

Another problem would be to avoid the double domain output for commenters on multiple articles. Probably this cries for a plugin, just thought to try the standards way.

regards, marios

Last edited by marios (2007-03-31 21:54:37)


⌃ ⇧ < ⌃ ⇧ >

Offline

#2 2007-04-01 03:06:25

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

Re: Tricky comments question

article_custom is supposed to get me only one comment per article…

Why would it do that?

Probably this cries for a plugin…

Yep.

Offline

#3 2007-04-02 03:17:31

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Tricky comments question

Ok, thanks mary. I’ve whipped something together, that does what I need here.
Haven’t tested this much, but it works fine for me.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB