If you look at the commentbox code you will see it has a simple log
line that records a certain number of the most recent comments in a
special log page, already formatted and ready to go. Then the display
page just includes the little log. Very simple, and does not require
any searching or scanning or anything.  It works great for me.

Cheers,
Dan


On Tue, Mar 24, 2009 at 6:12 AM, Linly <[email protected]> wrote:
>
> Hi all,
>
> My WikiBlog solution is nearly done right now. There are a few
> problems left. One of them is the "recent comments".
>
> If I want to know recent comments, I need to know "which comment" post
> by "whom" and "when". So I need a comment id, the author and post
> time. Here is my code:
>
> <code>
> [form][session target {p}#comment{=ccount}]
> [box commentx rows=5 cols=30][box]
> [session ccount { {info.wikiblog::comment.{p}}+1 }]
> [hidden comment "<box>**Comment {=ccount}** [(time {now}|%Y/%m%d)] by
> [[~{id}|+]]<br>{=commentx}</box>"]
> [session edit "{=comment}"]
> [session info_1 "counter field='comment.{p}' target='info.wikiblog'"]
> [session info_2 "field='{p}#comment{=ccount}' value='{now}'
> target='info.wikiblog.recentcomment'"]
> [submit]
> [form]
> </code>
>
> In this code I can set [[#comment1]], [[#comment2]],
> [[#comment3]]...in the comment section, giving them unique id.
>
> I can retrieve the counter info in template page by this syntax
> "Comments: {info.wikiblog::comment.{+p}}".
>
> For the "recent" purpose I use info_2 to force every comment to be
> recorded with a timestamp. So I can find the recent comment by using
> info report. The problem is how to grab the recent comments together
> with the id?
>
> Should I add info_3 to do the job?
>
> Cheers, linly
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to