forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Joachim Müller on December 19, 2005, 10:09:42 am

Title: Multiline Comments
Post by: Joachim Müller on December 19, 2005, 10:09:42 am
Nibbler has created a plugin that enables multiline comments - originally posted in the cpg1.3.x mod "[MOD] Multiline Comments! (http://forum.coppermine-gallery.net/index.php?topic=18217.msg110980#msg110980)"

Title: Re: Multiline Comments
Post by: Mats on May 30, 2006, 02:42:04 pm
Is the zip in this thread or the original one the latest? This one says $version='1.0';, but the one in the original thread says 1.1?

EDIT
The one below is newer and solves the double new rows issue:
http://forum.coppermine-gallery.net/index.php?topic=18217.msg110980#msg110980
Title: Re: Multiline Comments
Post by: stormtrooper on May 31, 2006, 01:03:46 am
the double line bug is not yet fixed.

Enter or Shift-Enter gives a double-liner. when writing without hitting the enter button it "breaks" the text correctly on the next line.

also spacing of the table is not correct and shows a black line.

table 1 (black background)
---table 2 (comment box)
black line-----------------
---table 3 (smile box)
Title: Re: Multiline Comments
Post by: bitcloud on October 09, 2007, 01:09:46 pm
I use this multiline comments plugin, but I find I can't edit the comments using the (e) edit button.

Has anyone else encountered this possible bug?
Title: Re: Multiline Comments
Post by: Oracle9 on November 17, 2007, 08:49:03 am
The Multiline Comments work fine with me but iwith the subscribe/unscribe comments control of Stramm modpack:

in the write comment box below the pics, the clickable text (subscribe/unscribe) is disappeared.
Any help
Regards
Title: Re: Multiline Comments
Post by: jesusarmy on January 09, 2008, 11:30:18 am
The Multiline Comments work fine with me but with[out] the subscribe/unscribe comments control of Stramm modpack:
in the write comment box below the pics, the clickable text (subscribe/unscribe) is disappeared.
Any help

In plugins/multiline_comments/codebase.php, find:
Code: [Select]
$template_add_your_comment = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
        <td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
        </tr>

change one line (<td> ... </td>) so it becomes:
Code: [Select]
$template_add_your_comment = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
        <td width="100%" class="tableh2_compact"><span style="float: left"><b>{ADD_YOUR_COMMENT}</b></span><span style="float: right">{SUBSCRIBE}</span></td>
        </tr>
Title: Re: Multiline Comments
Post by: jesusarmy on February 29, 2008, 11:47:22 am
There is one problem I have found with this plugin. Multiline input with textarea doesn't accept "maxlength" (unlike single line text input), so the setting for maximum length of comments is not respected.

That can have an impact on vulnerability to spam, which is often many lines long.