This website has run out of funding so feel free to contribute if you can afford it.

Author Topic: Advanced Contact Form  (Read 1537 times)

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Advanced Contact Form
« 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.
« Last Edit: June 07, 2016, 09:37:17 AM by chipper »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #1 on: June 07, 2016, 09:18:15 AM »
installed !
« Last Edit: June 07, 2016, 09:39:00 AM by chipper »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline DeadCat

  • Deceased
  • Sr. Member
  • ****
  • Join Date: Jul 2015
  • Location:
  • Posts: 704
  • Reputation Power: 41
  • DeadCat is now getting very popular.DeadCat is now getting very popular.DeadCat is now getting very popular.DeadCat is now getting very popular.
  • Last Login:June 07, 2017, 04:01:37 PM
  • Welcome to our community forum ...
Re: Advanced Contact Form
« Reply #2 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.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #3 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.
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #4 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.
« Last Edit: July 20, 2016, 04:54:00 AM by chipper »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #5 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.
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #6 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;

« Last Edit: May 03, 2021, 05:54:20 PM by smfadmin »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #7 on: May 03, 2021, 06:27:05 PM »
fixed deprecation of eregi (see above)
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6411
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 08:17:44 AM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Advanced Contact Form
« Reply #8 on: Today at 08:09:44 AM »
Here is the installable zip package
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Tags:
 





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE



Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal