Version 1.1-alpha7()
------------------------------------------------------------------------
+ * Fix not fetching allow_comments/moderate_comments value when
+ inside search function. Thanks to stm! (garvinhicking)
+
* Add new links to check for upgradable SPARTACUS plugins
(garvinhicking)
$user = PLUGIN_COMMENTS_ANONYMOUS;
}
- if (function_exists( 'mb_strimwidth')) {
+ if (function_exists('mb_strimwidth')) {
$pos = 0;
$parts = array();
$enc = LANG_CHARSET;
$pos += mb_strlen($part, $enc);
$parts[] = $part;
}
- $comment = implode( "\n", $parts);
+ $comment = implode("\n", $parts);
} else {
$comment = wordwrap($comment, $wordwrap, "\n", 1);
}
$entry = array('comment' => $comment,
'email' => $row['comment_email']);
+
+ // Let's help the BBCOde plugin a bit:
+ #$entry['comment'] = preg_replace('@((\[.*)[\n\r]+(.*\]))+@imsU', '\2\3', $entry['comment']);
+ #$entry['comment'] = preg_replace('@((\[.+\].*)[\r\n]+(.*\[/.+\]))+@imsU', '\2\3', $entry['comment']);
+
serendipity_plugin_api::hook_event('frontend_display', $entry);
+
printf(
'<div class="plugin_comment_wrap">' . PLUGIN_COMMENTS_ABOUT . '</div>',
. htmlspecialchars($row['subject'])
. '</a><br />' . "\n"
. '<span class="plugin_comment_date">' . htmlspecialchars(serendipity_strftime($dateformat, $row['stamp'])) . '</span><br />' . "\n"
- . '<span class="plugin_comment_body">' . strip_tags($entry['comment'], '<br /><img>') . '</span>'
+ . '<span class="plugin_comment_body">' . strip_tags($entry['comment'], '<br /><img><a>') . '</span>'
. '<br /><br /><br />' . "\n\n"
);
}