forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Charity on January 26, 2007, 02:24:45 am

Title: Album Tittle Too Long?
Post by: Charity on January 26, 2007, 02:24:45 am
The album tittle is long and it won't let me fit in the whole thing. Is there anyway I can change the setting to allow it to be longer?
Title: Re: Album Tittle Too Long?
Post by: eruss on January 26, 2007, 05:46:37 am
The album tittle is long and it won't let me fit in the whole thing. Is there anyway I can change the setting to allow it to be longer?

You should have 80 characters available.  Is that not enough?  An album name is usually a title or subject rather than a long sentence.
Title: Re: Album Tittle Too Long?
Post by: Charity on January 27, 2007, 03:05:00 am
Well here's an example:

Jessica Simpson & Nick Lachey Host Sony Ericsson T610/T616 "Shoot For The Stars" Charity Auction - November 13, 2003 [HQ]

It's just that I don't want to take words out because they are all important including the date and stuff
Title: Re: Album Tittle Too Long?
Post by: Gizmo on January 27, 2007, 04:49:33 am
Why not use the album description field? It will then display along with the title and thumbnail.
Title: Re: Album Tittle Too Long?
Post by: Charity on January 27, 2007, 11:08:28 pm
but if it possible to allow it to be longer
Title: Re: Album Tittle Too Long?
Post by: Nibbler on January 27, 2007, 11:15:55 pm
Edit albmgr.php and up the limit to 255 (imposed by the db schema).

Code: [Select]
                                <input type="text" name="album_nm" size="27" maxlength="80" class="textinput" style="width: 300px;" onChange="Album_NameChange(this.value);" onKeyUp="Album_NameChange(this.value);" />

to

Code: [Select]
                                <input type="text" name="album_nm" size="27" maxlength="255" class="textinput" style="width: 300px;" onChange="Album_NameChange(this.value);" onKeyUp="Album_NameChange(this.value);" />

and

Code: [Select]
text = change_name.substring(0, 80);
to

Code: [Select]
text = change_name.substring(0, 255);
Title: Re: Album Tittle Too Long?
Post by: Charity on January 28, 2007, 05:58:36 pm
Thanks! But I can't find the

Code: [Select]
text = change_name.substring(0, 80);

in albmgr.php
Title: Re: Album Tittle Too Long?
Post by: Charity on January 29, 2007, 10:45:19 pm
Help?
Title: Re: Album Tittle Too Long?
Post by: Nibbler on January 29, 2007, 10:57:23 pm
It's there, trust me.
Title: Re: Album Tittle Too Long?
Post by: Charity on January 30, 2007, 10:35:03 pm
ok i found it now. and it works great. thanks!