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: Adding custom comment fields..  (Read 2736 times)

0 Members and 1 Guest are viewing this topic.

jjkatrina

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 22
    • K~A~T~R~I~N~A
Adding custom comment fields..
« on: July 09, 2005, 12:59:20 am »

I am sorry to spam for help, hehe..but would anyone know of a way to edit the displayimage.php file, in the comment area so that you could:

1) Extend the "Name" field to just be a bit longer (I didn't see any number areas when i searched the code that looked like it would extend it).

2) Add an additional text box just like the Name one, but for the persons email? (I am havings people type their email in the Name box somtimes!  :P )

The closest forum thread I could find about these was http://forum.coppermine-gallery.net/index.php?topic=18217.0 - but it didn't explain how to add any aditional areas for submitting of comments!

Thank you wonderful people who work on this..I am so very lookking forward to new version of Coppermine!  :-*
« Last Edit: July 11, 2005, 08:15:05 am by GauGau »
Logged

jjkatrina

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 22
    • K~A~T~R~I~N~A
Re: Adding custom comment fields..
« Reply #1 on: July 10, 2005, 02:38:40 pm »

no one knows how to do this?  ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding custom comment fields..
« Reply #2 on: July 11, 2005, 07:07:37 am »

1) http://coppermine.sourceforge.net/faq.php#lamesupport
2) Only one question per thread!
3) To widen the name field, edit displayimage.php, find
Code: [Select]
$user_name_input = '<input type="hidden" name="msg_author" value="' . USER_NAME . '">';and add a width attribute (either using html's size attribute or by using css.
4) An additional text input field to hold the email would take a lot of modifications. Instead I'd recommend to allow comments only for registered users.
Logged

jjkatrina

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 22
    • K~A~T~R~I~N~A
Re: Adding custom comment fields..
« Reply #3 on: July 11, 2005, 08:13:17 am »

<salutes> will do, and thank you much for the help in this!  8) 
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.