coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: vhero on May 18, 2007, 01:29:01 PM

Title: file title box issues
Post by: vhero on May 18, 2007, 01:29:01 PM
when uploading an image to the gallery in the box where i put the file title, the box itself is HUGE

http://i71.photobucket.com/albums/i146/Vherostar/problem-1.jpg

see the pic for example plus it only allows caps however once i submitted it does not submit in caps.. Also if i press caps it goes bold its a wierd error I cannot figure out how to fix any help please?
Title: Re: file title box issues
Post by: Nibbler on May 18, 2007, 01:44:51 PM
Post a link and test account with upload rights.
Title: Re: file title box issues
Post by: vhero on May 18, 2007, 02:01:19 PM
site - http://epicrenders.com/gallery
login - u/test  p/test123

hope that helps
Title: Re: file title box issues
Post by: Nibbler on May 18, 2007, 02:14:49 PM
That's an issue with the theme. It is using an id that is already used by Coppermine (title). You'd need to edit the theme or upload.php.
Title: Re: file title box issues
Post by: vhero on May 18, 2007, 02:54:33 PM
what would i have to edit on upload to fix?? im not too savvy with php though i'm learning
Title: Re: file title box issues
Post by: Nibbler on May 18, 2007, 06:32:43 PM
Try changing


    // Create a text box.
    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text  $ordinal
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" id="$name" />
                </td>
        </tr>

EOT;


to


    // Create a text box.
    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text  $ordinal
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" id="upload_$name" />
                </td>
        </tr>

EOT;


untested though.
Title: Re: file title box issues
Post by: vhero on May 18, 2007, 10:34:20 PM
thanks! that worked great!