Adding custom comment fields.. Adding custom comment fields..
 

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

Adding custom comment fields..

Started by jjkatrina, July 09, 2005, 12:59:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jjkatrina

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!  :-*

jjkatrina


Joachim Müller

1) http://coppermine.sourceforge.net/faq.php#lamesupport
2) Only one question per thread!
3) To widen the name field, edit displayimage.php, find$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.

jjkatrina

<salutes> will do, and thank you much for the help in this!  8)