Advanced search  

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]

Pages: [1]   Go Down

Author Topic: length of a comment in thumbnail view  (Read 2463 times)

0 Members and 1 Guest are viewing this topic.

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
length of a comment in thumbnail view
« on: October 29, 2006, 01:28:27 am »

hi there, i would like to limit the length of a comment in thumbnail view, because it messes up the template
is the anyway to do this?
thanks alot for reading

Vargha~
« Last Edit: October 29, 2006, 07:20:58 am by Sami »
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: length of a comment in thumbnail view
« Reply #1 on: October 29, 2006, 06:09:27 am »

AFAIK you can't show comment under thumbnails on standard CPG
Are you using a MOD to display comment on thumbnail view ?
- Post a refernce to that mod
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: length of a comment in thumbnail view
« Reply #2 on: October 29, 2006, 06:45:16 am »

if you talk about the last comments meta album, then it's already limited to 50 chars. To change that find in functions.inc.php
Code: [Select]
            $msg_body = utf_strlen($msg_body) > 50 ? utf_substr($msg_body,0,50).'...': $msg_body;and change it to your needs

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: length of a comment in thumbnail view
« Reply #3 on: October 29, 2006, 07:20:20 am »

thanks alot, problem solved :)
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.