dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on June 07, 2016, 09:17:48 AM

Title: Advanced Contact Form
Post by: Chip on June 07, 2016, 09:17:48 AM
http://custom.simplemachines.org/mods/index.php?mod=1352

naviagte to settings via: Admin > Configuration > Modification Settings > Contact Form

This advanced contact form is easy to use, yet it provides a full array of configuration settings so that you can configure it to suit your preferences.

Its integrated error checking avoids users getting those annoying "go back and try again" screens. The error checking highlights invalid entries and informs the user which are wrong, and why. Only the erroneous entries need be reentered before hitting Send Message again.

The default setting puts the sender's name, email address and subect line in the contact form responses sent to you via email. If a valid email address has been provided by the sender you can reply to it just as with any ordinary email. Or if you prefer, you can configure in static settings for any or all of these fields. You can optionally add a prefix you select such as "[Contact Form]" to all your replies, to facilitate easy sorting by your email client's message filters.

You select whether guests, members or both can use the contact form. Guest use of the contact form (anybody not logged in) follows the same anti-spam policy as configured in your forum's Anti-Spam Verification settings including CAPTCHA and supplemental verification questions.

Features

CAPTCHA protects against spam generated by spammer 'bots.
Members bypass CAPTCHA check as long as they are logged in.
Integrated error checking avoids "go back and try again" screens.
You select whether guests, members or both can access your contact form.
You select whether name, email and subject are required or optional.
Responses are emailed to your forum's default email address or to one you select.
Replies include sender's name, email and subject line in email headers.
Or you can override sender name, email and subject line with settings you select.
Optional prefix label added at beginning of subject line for all responses.
Contact form title can be customized to a title you select.
Contact form tab label can be customized to a label you select.
Sender's IP address and reverse DNS are included in each emailed response.
Sender's member name is included in emailed response if member is logged in.

Note: The visual verification feature (CAPTCHA) is available with SMF 2.0 only.
Title: Re: Advanced Contact Form
Post by: Chip on June 07, 2016, 09:18:15 AM
installed !
Title: Re: Advanced Contact Form
Post by: DeadCat on June 07, 2016, 11:44:05 AM
The idea came to me when I was oddly unable to gain access with my password for a few days. Therefore I think it should be set so you don't hve to be logged on to use it.
Title: Re: Advanced Contact Form
Post by: Chip on June 07, 2016, 12:43:58 PM
@DeadCat's way is the best idea because it allows for an app to actually send the mail for you; the old way didn't seem very easy so it was removed from the home page "Footer".

a good idea all 'round ... thanks DeadCat.
Title: Re: Advanced Contact Form
Post by: Chip on June 14, 2016, 11:47:27 PM
I made a manual mod for this: http://www.simplemachines.org/community/index.php?topic=546472

it highlights the CONTACT button.
Title: Re: Advanced Contact Form
Post by: Chip on July 20, 2016, 04:59:17 AM
"Don't use contact form email address as sender email address:" do not leave this unchecked or you will get the following bounced message similar to this:

Quote
<recipient@hotmail.com>: host mx1.hotmail.com[65.54.188.72] said: 550 5.7.0
    (BAY004-MC1F8) Unfortunately, messages from (128.199.200.202) on behalf of
    (email-address) could not be delivered due to domain owner policy
    restrictions.
Title: Re: Advanced Contact Form
Post by: Chip on July 23, 2018, 02:33:02 AM
bug fixes (courtesy of Chip):

+173 /var/www/html/Sources/Contact.php

Code: [Select]
//                      if (eregi("^$hostName", $line)) return true;
// deprecated           if (eregi("^$host", $line)) return true;
                        if (preg_match("/^$host/i", $line)) return true;

Title: Re: Advanced Contact Form
Post by: Chip on May 03, 2021, 06:27:05 PM
fixed deprecation of eregi (see above)
Title: Re: Advanced Contact Form
Post by: Chip on May 19, 2021, 08:09:44 AM
Here is the installable zip package
Title: Re: Advanced Contact Form
Post by: Chip on December 26, 2022, 05:16:02 AM
Temporarily uninstalled due to abuse.
Title: Re: Advanced Contact Form
Post by: Chip on May 19, 2023, 07:11:11 PM
reinstated again and .css modified:

Code: [Select]
#button_contact > a, #button_contact > a > span {
        font-weight: bold;
        color: navy;
        border-radius: 5px;
}
#button_forum > a, #button_forum > a > span {
        font-weight: bold;
        color: black;
        border-radius: 5px;
}
SimplePortal 2.3.6 © 2008-2014, SimplePortal