forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: jjkatrina on July 09, 2005, 12:59:20 am

Title: Adding custom comment fields..
Post by: jjkatrina 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!  :-*
Title: Re: Adding custom comment fields..
Post by: jjkatrina on July 10, 2005, 02:38:40 pm
no one knows how to do this?  ???
Title: Re: Adding custom comment fields..
Post by: Joachim Müller 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.
Title: Re: Adding custom comment fields..
Post by: jjkatrina on July 11, 2005, 08:13:17 am
<salutes> will do, and thank you much for the help in this!  8)