Custom field text limit?

dazb

Joined: 2003-07-11
Posts: 19
Posted: Thu, 2003-10-30 06:58

Is there a limit to the amount of text that can be entered into a custom text field?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-10-30 08:00
 
dazb

Joined: 2003-07-11
Posts: 19
Posted: Fri, 2003-10-31 04:39

well i guess that proves it!

cheers

 
dazb

Joined: 2003-07-11
Posts: 19
Posted: Mon, 2003-11-03 14:33

ok, 1 more question: how did you get the single <br>?

In all of my lines, after a cr/lf I am getting an extra blank line (<p>).

http://brodziakcustomknives.com/gallery/view_photo.php?set_albumName=carol&id=carol1lge

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-11-03 21:12

It's because I am using the beta 1.4.1.

You can fix 1.4 by editing view_photo.php and finding

foreach ($extra_fields as $field) 
{
        $value=$gallery->album->getExtraField($index, $field);
        if ($value) 
        {
                print "<tr><td valign=top align=right><b>$field:<b></td><td>".
                        str_replace("\n", "<p>", $value).
                        "</td></tr>";
        }
}

and replacing the "<p>" with "<br>"

 
dazb

Joined: 2003-07-11
Posts: 19
Posted: Mon, 2003-11-03 23:59

Thanks again joan - exactly what i'm after! :D