coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Omni on October 24, 2004, 12:10:09 AM

Title: Help for altering custom-fields
Post by: Omni on October 24, 2004, 12:10:09 AM
I didn't managed to find any topic that could help so, if anyone can help (or show the way to an existing topic) I would be greatful.
I need to alter one of the custom-fields to operate almost the same way as the description field does.
I want to have it displayed as a multiline field into which it would be possible to store a long text.
What I really want to do, is: have the "description field" as a "Short descrition" field, and one of the 4 custom fields as a "Long descrition" field. It would be nice if I could set the length of that field as a "multiplier*description-field-length" or as a variable that it would be easy to change when I need to do so.
I tryed to alter it by myself (files editOnePic.php, displayimage.php, upload.php) but I'm pretty new to php so I didn't managed to make it work as I need it to. Do I have to alter something in the DB tables also?
Can anyone help?
Thanks in advance.
Title: Re: Help for altering custom-fields
Post by: Joachim Müller on October 24, 2004, 01:59:32 PM
This will be a feature in the next coppermine version (cpg1.4.x), which currently is under development. It has additional fields, one of the being for multi-line input (<textarea>). You're welcome to get the devel version from the cvs if you consider yourself an experienced coppermine user, but you have to understand that the devel version comes without support.
To change the current stable version to allow multi-line descriptions/custom fields, no hack has been posted yet afaik. You'll have to apply code changes in various places, and maybe fiddle with the database structure as well.

Joachim
Title: Re: Help for altering custom-fields
Post by: Casper on October 24, 2004, 02:11:20 PM
I have done a quick hack to do this.  Use the attached files, and use custom field 1 for what you want.
Title: Re: Help for altering custom-fields
Post by: meshroom on February 14, 2005, 10:14:38 PM
Quote from: GauGau on October 24, 2004, 01:59:32 PM
This will be a feature in the next coppermine version (cpg1.4.x), which currently is under development. It has additional fields, one of the being for multi-line input (<textarea>). You're welcome to get the devel version from the cvs if you consider yourself an experienced coppermine user, but you have to understand that the devel version comes without support.
To change the current stable version to allow multi-line descriptions/custom fields, no hack has been posted yet afaik. You'll have to apply code changes in various places, and maybe fiddle with the database structure as well.

Joachim

Will this include the ability to upload or 'attach' seperate files into custom fields alongside the images you upload? For example, I'd like to attach a pdf document or 'toenail' to an image that will be stored in the database as a blob. I'm going to try Casper's hack to achieve this but it'd be good to see as a feature in 1.4.x.

Thanks.  :D
Title: Re: Help for altering custom-fields
Post by: Joachim Müller on February 15, 2005, 05:53:53 AM
no, additional uploads into custom fields will not be in cpg1.4.x, but you can use a workaround by using bbcode to link to additional files.

Joachim