coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: gos1 on April 04, 2007, 04:01:04 PM

Title: Modifications of file description
Post by: gos1 on April 04, 2007, 04:01:04 PM
Hi 
  I made a research in the database fields and find out that _picture --> keywords table is the one showing in the image descriptions. Is it possible for me to change it to _picture --> key 
I mean I want to use some other field in the same table to be shown in image descriptions...
Title: Re: Modifications of file description
Post by: Joachim Müller on April 04, 2007, 08:25:43 PM
Possible if you code it.
Title: Re: Modifications of file description
Post by: gos1 on April 04, 2007, 08:33:06 PM
I will code it but I cannot find where the database field names etc are :And where the script insertsthe data in the _pictures table ?
Title: Re: Modifications of file description
Post by: gos1 on April 05, 2007, 02:49:00 AM
I found the file it is picmgmt.php but now I could not understand what the script is doing in these codes :
       $keywords=str_replace(chr(138), chr(228), $keywords);

$keywords=str_replace(chr(140), chr(229), $keywords);
Title: Re: Modifications of file description
Post by: Sami on April 05, 2007, 06:42:38 AM
what version of CPG you are using ?
there isn't any picmgmt.php on 1.4.10 instead we have picmgmt.inc.php and actually there isn't such code exist !!!
Title: Re: Modifications of file description
Post by: gos1 on April 05, 2007, 10:19:25 AM
sorry I wrote the filename wrong it is pcmgmt.inc.php
Title: Re: Modifications of file description
Post by: Joachim Müller on April 05, 2007, 02:36:28 PM
You mis-spelled the name again, please be more carefull when composing your messages. As Sami suggested, there is no such code in our file.