GithubHelp home page GithubHelp logo

benjaminpick / contact-form-7-select-box-editor-button Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 189 KB

Wordpress Plugin: Contact Form 7 Select Box Editor Button

Home Page: http://wordpress.org/extend/plugins/contact-form-7-select-box-editor-button/

License: Other

PHP 58.06% Shell 8.22% JavaScript 33.72%
wordpress plugin

contact-form-7-select-box-editor-button's Introduction

=== Contact Form 7 Select Box Editor Button ===
Contributors: benjamin4
Tags: tinymce, button, contact form, german
Requires at least: 3.3
Tested up to: 5.4
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Add a contact form link into article text.
For contact forms where the recipient can be chosen in a select box.

== Description ==

Ever wanted to use one contact form for all your contacts? Yet be able to link to a specific contact?
And without modifying the *Contact Form 7* extension?

This little extension guides you to set up *Contact Form 7*, enter the contacts there, and then adds an editor button by which you can link a specific contact form.

**Features:**

* Email adresses are invisible to website visitors (no spam)
* Adds Editor Button to the admin area where links to a contact form can be added or modified
* Contact form links can by styled by CSS
* Translation to German

**Requirements:**

* Contact Form 7 (v3.3 or later): http://wordpress.org/extend/plugins/contact-form-7/

== Installation ==

1. Install *Contact Form 7* first
1. Create a form containing a select tag:

   `[select* recipient id:recipient "John Doe|[email protected]" "Max Mustermann|[email protected]"]`

1. Set Mail option "To:" to `[recipient]` 
1. Install and Activate this plugin
1. Test it: Add this contact form to a page or post, and call it with `#Max+Mustermann` at the end. "Max Mustermann" should be pre-selected now.
1. Configure the parameters: 
  * The URL where the contact form resides (e.g. `/contact/`)
  * An optional prefix to the title attribute that will get created.

== Frequently Asked Questions ==

= Can I contribute bugfixes or new features to this extension? =

Of course, be welcome! Send me a pull request at [Github](https://github.com/benjaminpick/wp-contact-form-7-select-box-editor-button).

== Screenshots ==

1. Form in action
2. Editor Button
3. Parameters
4. Popup Window to choose Contact
5. The Email-Adresses are in the Contact Form 7 Tag

== Upgrade Notice ==

= 0.4 =
* The Parser has been rewritten to use Contact Form 7 parsing.
If this happens to break this plugin at your site, please send me your form code so that I can add it to my use cases. 

= 0.3.2 =
If upgrading this plugin, you should also upgrade Contact Form 7 to at least v3.3.

= 0.2.3 =
The Frontend Javascript code was added to the plugin itself,
so you should remove it from your contact form itself.
(For this version, the JS code wasn't modified, so it should continue to work if you don't.)

== Changelog ==

= 0.9 =


= 0.6 =
* Fix compatibility with WPCF7 4.6

= 0.5 =
* Nicer GUI for Wordpress 3.9
* First Steps: Automatic checks the items that are done
* Compat with WPCF7 3.9

= 0.4.3 =
* Compat with TinyMCE4 (upcoming Wordpress) was verified
* Fix: Compat with WPCF7 3.7

= 0.4.2 =
* Fix: Admin GUI window for Wordpress 3.8

= 0.4.1 =
* Fix: When a Link is edited, but the current recipient is not in the contact list anymore, the old recipient is now removed anyway.
* NEW: When changing the URL Prefix Option, show a warning that the links need to be updated (open the window and click insert).

= 0.4 =
* NEW: The contact form to use can now be chosen via a select box at the settings page
* Fix: select box can now have all syntax that wpcf7 supports.
* De: Translation updated.

= 0.3.3 =

* Fix: Select box can now have more options (see http://contactform7.com/checkboxes-radio-buttons-and-menus/)
* Show error message if no id/invalid id is given
* NEW: Load js files only if a contactform is shown
* Add unit tests

= 0.3.2 =
* Fix: Recipient is now the same as before submit.

= 0.3.1 =
* Fix: Avoid empty select boxes (when contact form is called with empty or invalid hashtag, and form was submitted)

= 0.3 =
* Feature: Also handle links that are on the same page as the contact form
* Fix: Correctly reset select box after succesful submit

= 0.2.3 =
* Performance: Compressed JS files
* Frontend JS Code is added by plugin
* Add Install Instruction to admin page

= 0.2.2 =
* De: Fix button title

= 0.2.1 =
* Updated lang/de
* Add Screenshots

= 0.2 =
* Add German translation
* Fix: Link to WPCF7 Config
* Add Error Message when no select box found

= 0.1 =
* First version

== TO DO ==

* Currently, only one form can be used (selectable at the settings page)
* The URL could be detected (find all articles containing a contact form, and propose them in a select box)
* When clicking on a link that has the form on the same page, should it scroll to the form? Currently, it only changes the selected value.

These are limitations that I may (one day, if/when I come to it) adress in future.
So if you're a developer and want to adress them yourself,
go ahead and I will be happy to support you!

contact-form-7-select-box-editor-button's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

benjamin4ruby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.