Advanced search  

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]

Pages: [1]   Go Down

Author Topic: modifyalb.php  (Read 2978 times)

0 Members and 1 Guest are viewing this topic.

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
modifyalb.php
« on: December 12, 2006, 06:56:50 am »

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?
« Last Edit: December 13, 2006, 08:13:24 am by GauGau »
Logged

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: modifyalb.php
« Reply #1 on: December 12, 2006, 09:21:00 pm »

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.
Logged

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: modifyalb.php
« Reply #2 on: December 13, 2006, 07:55:23 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: modifyalb.php
« Reply #3 on: December 13, 2006, 08:13:49 am »

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

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: modifyalb.php
« Reply #4 on: December 13, 2006, 09:30:21 am »

Code: [Select]
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 - :'(
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.