BB code in comments BB code in comments
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

BB code in comments

Started by panwac, December 18, 2004, 03:41:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

panwac

In my CPG 1.3.2 test-gallery any comments are only a simple text, without any BB codes. I think, BB codes like [b]Bold[/b], [i]Italic[/i], [url=http://yoursite.com/]Url Text[/url] (the same codes can be useful in descriptions for photos) in comments could make gallery better - reading texts would be easer.

Joachim Müller

adding this request to todo-list

Joachim

panwac


Tranz

BBcode has been added to devel version comments and ecard. However, due to the character limit, comments with url would get truncated, it seems because they would appear to be too long. Maybe someone can address that.

Thanks for the suggestion.

Casper

Well, in 1.3.2, you can change ' Max number of characters in a word' in config, but this has been removed from 1.4  :-\\
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

The table setting is still there 'max_com_wlength', and it seems to default at 38.  I suppose you can change this.

Edit, it is still there, but it's been moved from the comment settings to the image settings.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tranz

It would be nice to still enforce the character limit on regular words but make an exception for urls. For example, instead of having the character count be based on the raw message, have it apply to the final output. So that if there is a 5-letter word pointing to a 40-character url, only 5 characters would be counted toward that part of the comment.

I don't know if that's possible, but just a thought.

Tranz

If you want to apply this to your current gallery:

in displayimage.php (for version 1.32)

FIND:
'{MSG_BODY}' => &$comment_body,


REPLACE with:
'{MSG_BODY}' => bb_decode($comment_body),