[pmwiki-users] CommentBoxPlus

Vince Admin Account vadmin at math.uconn.edu
Tue Mar 20 13:40:20 CDT 2007


Thanks Hans. I updated PmWiki and the FixFlow skin so I could use  
Fox, added the comment box markup, and showhide,
and it looks great.
         Vince

On Mar 17, 2007, at 1:03 PM, Hans wrote:

> Saturday, March 17, 2007, 2:58:40 PM, Vince wrote:
>
>> The commentboxplus recipe is very close to ideal for one of our
>> applications.  But I would like to do a  (slight?)
>> modification, and perhaps you or someone could point in the right
>> direction.
>> I would like the comment to start with the text of the comment, then
>> have the signature/time line right justified.
>> But I can't even seem to have the signature line below the comment
>> (If it matters, I am using commentboxchrono,
>> and the version for PmWiki 2.1.x
>
> To achieve what you want means a substantial hack of the script,
> between lines  350 and 363 I think, to change the order of how strings
> are added together to the $entry variable.
>
> I find requests like yours very legitimate, but CommentBoxPlus not
> flexible enough to handle it, as each modification means some
> sometimes substantial rewrite of the script code.
>
> For this reason I developed the Fox recipe  ( see Fox
> http://www.pmwiki.org/wiki/Cookbook/Fox  and
> FoxCommentBox), out of the AddDeletePlus2 recipe and incorporating
> features of CommentBoxPlus.
>
> In Fox you can use wiki pages as templates to define where on
> a page Fox should put the message, the author name, possible
> headings, web address etc.
>
> For a CommentBox posting  message text, author name, and date as  
> you see
> on http://www.pmwiki.org/wiki/Cookbook/FoxCommentBox
> (remove the line with heading field)
> you can use the following template for the template page to get the
> resulting order of fields you are asking for:
>
> #foxbegin#
>>> messageitem<<
> {comment}
>>> messagehead right<<
> '''{author}''' - [-{date:d.m.Y - H:i}-]
>>> <<
> #foxend#
>
> and redefine the class styles for messageitem and messagehead,
> because the head is underneath the item the border and margin
> attributes need swapping (or background colors):
>
> #message { clear:both; }
> .messagehead {
>             margin:0;
>             padding:0 0 0 3px;
>             border-left:1px solid #999;
>             border-right:1px solid #999;
>             border-bottom:1px solid #999;
>             }
> .messageitem {
>             margin:1em 0 0 0;
>             padding:3px;
>             border:1px solid #999;
>             }
>
> There is no real reason to use the class styles of messagehead and
> messageitem, you could create your own. I use them because this way I
> can reuse css from commentboxplus, and in addition I get matching
> colors when using skins Gemini, FixFlow or Triad.
>
> I hope this helps a little, even if it is perhaps not quite
> what you asked for.
>
> Hans
>
>




More information about the pmwiki-users mailing list