On Mon, Mar 23, 2009 at 7:56 AM, Martin <[email protected]> wrote:
>
> Commentbox writes the comments in sections on the page.
>
> We could do this right out of the core.
>
> The basic form would be like that (tested):
>
> [form]
> [session target {p}#comment[(time {now})]]
> [box commentx rows=5 cols=40][box]
> [hidden comment "<box>Comment by [[login.{id}|+]], posted [(time {now}
> %d.%m.%Y)]<br><br>{=commentx}</box>"]
> [session edit "{=comment}"]
> [submit]
> [form]
>
> The target line gives each section/comment an unique id.
> The hidden line is a kind of template - maybe there is a more elegant
> way to this.
Hey, this is really nice Martin! Similar to the commentbox strategy,
but more clever, I think!
I just added this line to the edit command (create already has it)
$value = str_replace('\n', "\n", $value);
Which would make it possible to do this
> [hidden comment "<box>Comment by [[login.{id}|+]], posted [(time {now}
> %d.%m.%Y)]\n\n{=commentx}</box>"]
Not sure how much it would help, but it's nice to have options...
Cheers,
Dan
P.S. As for my other post on how to get the related links line before
the comments, you could use this form also, by changing the target to
comments.{p} and then including the comments. It would work exactly
the same.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---