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
-~----------~----~----~----~------~----~------~--~---