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: Have a value in upload form  (Read 2890 times)

0 Members and 1 Guest are viewing this topic.

recman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Have a value in upload form
« on: October 10, 2004, 09:33:45 am »

Hi!
When I have uploaded a file and should place it in a album I come to the file upload.php, there is a form called "File Title". I wonder how I can do to always have a value in this form, a text that is typed there automaticlly so the user dont have to write it. Anyone understand how I mean? Sorry for the bad english.
Logged

Nibbler

  • Guest
Re: Have a value in upload form
« Reply #1 on: October 10, 2004, 02:59:10 pm »

Upload.php, find:

Code: [Select]
// Create a text box.
add

Code: [Select]
$value = ($name == 'title') ? 'Text that appears here automatically' : '';

just below it

find

Code: [Select]
<input type="text" style="width: 100%" name="$name" id="$name" maxlength="$max_length" value="" class="textinput">
change to

Code: [Select]
<input type="text" style="width: 100%" name="$name" id="$name" maxlength="$max_length" value="$value" class="textinput">               
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.