modifyalb.php modifyalb.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

modifyalb.php

Started by AfroJoJo, December 12, 2006, 06:56:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AfroJoJo

Does anyone know how to set a maxlength on the album title. I looked in modifyalb.php and can't figure it out. Any ideas?

AfroJoJo

I figured out how to change it in the albmgr.php, but still can't figure it out in modifyalb.php. I need a maxlength in both of these because if there is a maxlength in one and not the other then it doesnt do any good. They could just make the album title longer in the one that doesnt have a maxlength set.

AfroJoJo

Ok, I figured it out. Im an idiot. Dont make fun of me.  :'(

Joachim Müller

You might want to post your changes for the benefit of others.

AfroJoJo


function form_input($text, $name)
{
    global $ALBUM_DATA;

    $value = $ALBUM_DATA[$name];

    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" value="$value" class="textinput" maxlength="40"/>
                </td>
        </tr>

I just added a maxlength to the <input>. So simple, yet it took me so long to figure out. Deserves another crying face - :'(