Thanks Sami for this post. It works fine but I have a small design problem.
The line 'Optional information' ist still above the aditional fields, but the first four are now mandatory. How can I move this line?
http://www.volleyball.lu/fotogallery/register.php
Thanks
I realize this is old, but since it went unanswered, I thought I'd share this. This is how I changed mine. (Coppermine Photo Gallery 1.4.14 (stable))
In the same file (register.php) find this section:
$form_data = array(
array('label', $lang_register_php['required_info']),
array('input', 'username', $lang_register_php['username'], 25),
array('password', 'password', $lang_register_php['password'], 25),
array('password', 'password_verification', $lang_register_php['password_again'], 25),
array('input', 'email', $lang_register_php['email'], 255),
array('label', $lang_register_php['optional_info']),
array('input', 'user_profile1', $CONFIG['user_profile1_name'], 255),
array('input', 'user_profile2', $CONFIG['user_profile2_name'], 255),
array('input', 'user_profile3', $CONFIG['user_profile3_name'], 255),
array('input', 'user_profile4', $CONFIG['user_profile4_name'], 255),
array('input', 'user_profile5', $CONFIG['user_profile5_name'], 255),
array('textarea', 'user_profile6', $CONFIG['user_profile6_name'], 255)
Simply move the option profle lines you have made to be required ABOVE the line that says "array('label', $lang_register_php['optional_info'])," like this:
$form_data = array(
array('label', $lang_register_php['required_info']),
array('input', 'username', $lang_register_php['username'], 25),
array('password', 'password', $lang_register_php['password'], 25),
array('password', 'password_verification', $lang_register_php['password_again'], 25),
array('input', 'email', $lang_register_php['email'], 255),
array('input', 'user_profile1', $CONFIG['user_profile1_name'], 255),
array('input', 'user_profile2', $CONFIG['user_profile2_name'], 255),
array('label', $lang_register_php['optional_info']),
array('input', 'user_profile3', $CONFIG['user_profile3_name'], 255),
array('input', 'user_profile4', $CONFIG['user_profile4_name'], 255),
array('input', 'user_profile5', $CONFIG['user_profile5_name'], 255),
array('textarea', 'user_profile6', $CONFIG['user_profile6_name'], 255)
For mine, I required the first two fields (profile1 and profile2) to both be filled in, so I moved both of them. It displayed correctly in IE6 and FF2.0.0.11.
My Galleries reside at:
http://coh.iswiz.com/gallery(related to an online MMORPG I play)
and
http://dee.iswiz.com/gallery(My private gallery)