Thanks, Sami.
I'll just post the file edits to lang/english.php here. All of the new files along with a README.txt file with installation instructions and containing the file edits to lang/enlish.php are in a zip file, which you can download at the end of this post.
I should add that this works with the PHP mail() function. Some hosts block the use of PHP mail() unless you are using your domain email address for the 'fromemail'.
files to edit - 1:
lang/english.php
new files to add - 3:
randomimage.php // generates the random image code.
contact.php // the contact us form
thank_you.php // page displayed when user has successfully submitted an message
As always with any editing to existing files or installing new ones, BACKUP!! before applying the changes.
step 1:
upload randomimage.php into the root folder of your gallery
upload contact.php into the root folder of your gallery
upload thank_you.php into the root folder of your gallery
end upload new files
step 2:
edit lang/english.php // you'll have to edit for different languages
open and find - around line 2024 (approx.) in the view_log.php section:
// ------------------------------------------------------------------------- //
// File view_log.php //cpg1.4
// ------------------------------------------------------------------------- //
if (defined('VIEWLOG_PHP')) $lang_viewlog_php = array(
'delete_all' => 'Delete All Logs', //cpg1.4
'delete_this' => 'Delete This Log', //cpg1.4
'view_logs' => 'View Logs', //cpg1.4
'no_logs' => 'No logs created.', //cpg1.4
);
add after:
// ------------------------------------------------------------------------- //
// File thank_you.php // contact us mod
// ------------------------------------------------------------------------- //
if (defined('THANK_YOU_PHP')) $lang_thank_you_php = array(
'thank_name' => 'Contact Us Form - Thank you',
'feed_back' => 'Thank you for your feedback',
'thanks_email' => 'Thank you for your comments and or suggestions. If your message requires a reply, we will get back to you as soon as possible.',
'return_page' => '<a href ="' . $CONFIG['home_target'] . '">Return to the Catalog Page</a>, or use any of the links above.',
);
// ------------------------------------------------------------------------- //
// File contact.php // contact us mod
// ------------------------------------------------------------------------- //
if (defined('CONTACT_PHP')) $lang_contact_php = array(
'page_head' => 'Contact Us Form',
'form_name' => 'Contact Us',
'all_fields' => 'All fields are required!',
'enter_name' => 'Please enter your name.',
'enter_email' => 'Please enter your valid email address.',
'enter_subject' => 'Please enter the subject of your message.',
'enter_comments' => 'Please enter your comments.',
'enter_code' => 'Please enter a valid image verification code! Maybe you\'re having trouble seeing the image code clearly.<br />If so, just hit the "Reset Image" button >>',
'reset_image' => 'Reset Image',
'contact_explain' => 'You can use this form to send your comments/suggestions to the Administrator. <b>Please Note:</b> All fields are required and if you expect a reply, please include your correct email address. Thank you.',
'name' => 'Name: ',
'email_address' => 'Email address: ',
'subject' => 'Subject:',
'comments' => 'Comments:',
'check_spell' => 'Check your spelling at <a title="Check your spelling at SpellCheck.net" target="_blank" href="http://spellcheck.net/">SpellCheck.net</a>',
'copy_paste' => '(Just copy and paste your text)',
'enter_image_ver' => 'Enter Image Verification: This is to prevent automated entry from search robots. Letters must be in upper case.',
'submit' => 'Submit',
'reset_form' => 'Reset Form',
'reset_warn' => 'Resetting the form will delete any or all data entered!',
'give_time' => 'Please do not hit the Submit button more then once. It may take some time for the server to post your comment. Thanks!',
'ip_sent' => '<b>Note</b> - Your IP address is being recorded and will be sent along with the message.',
);
end edit lang/english.php
upload edited lang/english.php file
========================================================
Now, where to place a link to your 'Contact Us' form?
I put mine in the custom footer (you could also add it to the custom header) of the main template of my theme (classic):
example - <a title="Contact Us" href="contact.php">Contact Us</a>, and in the sub menu, in the Admin Panel, under - Themes settings: Custom menu link name (Contact Us) - Custom menu link URL (contact.php)
Enjoy! wirewolf, John
PS, I think this would make a good plugin module, but I've never done one before and may need a bit of help. I'll give it a try.