Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Truncate Comments and add ...  (Read 2349 times)

0 Members and 1 Guest are viewing this topic.

RyteByte

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Truncate Comments and add ...
« on: April 09, 2007, 01:11:20 pm »

Greetings.

I did a search through the forums for an answer to my question, but found none.

I have users that are posting long comments for their images.  I would like to allow a full comment to be posted, limit the amount of characters of a comment shown on the main thumbnail page (CopperMine entry page).

If the comment is less than 100 characters, I would like it to display normally.

If the comment is more than 99 characters, I would like 96 characters of the comment to be displayed along with a "..." added onto the end of the displayed comment.

Finally, if possible, I would like the "..." at the end of the comment to be linked to the main viewing page, just like the thumbnail.

Anyone know how to do this?

Logged
Pages: [1]   Go Up
 

Page created in 0.335 seconds with 20 queries.