modifyalb.php modifyalb.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 - :'(