Tiny Contact Form

Ein ganz einfaches und kleines Kontaktformular.

Einfach in den Einstellungen die Empfänger-Email-Adresse angeben und den Shortcode (siehe readme.txt) an den gewünschten Stellen eintragen. Fertig.

Download bei WordPress

Tiny Contact Form 0.6

Contributors: Tom Braider
Donate link: www.unicef.org
Tags: email, mail, contact, form
Requires at least: 2.7
Tested up to: 2.9.2
Stable tag: 0.6

Little form that allows site visitors to contact you by email.

Description


Use [TINY-CONTACT-FORM] within any post or page.
Add the widget to your sidebar.

Installation

  1. unzip plugin directory into the /wp-content/plugins/ directory
  2. activate the plugin through the Plugins menu in WordPress
  3. insert [TINY-CONTACT-FORM] in your page or/and add the widget to your sidebar
  4. check the settings (email, messages, style) in backend
  5. without widgets use this code to insert the form in your sidebar.
<?php global $tiny_contact_form; if (isset($tiny_contact_form)) echo $tiny_contact_form->showForm(); ?>

Frequently Asked Questions


How to style?

  • The complete form is surrounded by a div class="contactform". Tags in FORM: LABEL, INPUT and TEXTAREA.
  • To change the form style in your sidebar you can use .widget .contactform (plus tags above) in your template style.css.
  • Since v0.3 you can use the settings.

Need Help? Find Bug?

read and write comments on plugin page

Screenshots


  1. 1. contact form on page

  2. 2. contact form widget in sidebar

  3. 3. settings page

Arbitrary section


Silent Helper
Translations

Changelog


0.6

  • new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
  • now name and email of the writer are the default "From" data if non "From" given on options page

0.5.2

  • new translation: hebrew, thanks Sahar Ben-Attar

0.5.1

  • Bugfix: referer on pages with more post was wrong
  • Bugfix: PHP4 compatibility, "static" before function deleted
  • new translation: Danish, thanks to Jonas Thomsen

0.5

  • new: optional captcha
  • new: referer (page the mail was sent) in mail
  • new translation: France, thanks to Jef Blog

0.4.3

  • Bugfix: little change in stylesheet to realy hide the "hidden" fields

0.4.2

  • Bugfix: little change in spam check

0.4.1

  • new translation: Belorussian, thanks to Marcis Gasuns

0.4

  • new: custom widget title and submit button

0.3.3

  • new translation: hungarian, thanks MaXX

0.3.2

  • new translation: espanol, thanks Jeffrey

0.3.1

  • new translations: hr and italiano, thanks Alen

0.3

  • new: more user settings
  • new: language support (english, german)
  • change to wp_mail()

0.2

  • new: sidebar widget to easy add the form to the sidebar

0.1

  • first release
created by Readme Parser

Zu guter letzt ein Style-Sheet Beispiel. Wird ja oft genug danach gefragt.

/* field names */<br />
.contactform label { display:block; }<br />
/* fields */<br />
.contactform input { display:block; width:400px; border:1px blue solid; }<br />
/* message area */<br />
.contactform textarea { display:block; width:400px; height:200px; }<br />
/* ok message */<br />
.contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; }<br />
/* error message */<br />
.contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; }<br />
/* smaller widget form */<br />
.widget .contactform { width:200px; }<br />
.widget .contactform input { width:98%; }<br />
.widget .contactform textarea { width:98%; height:100px; }<br />

RSS-Feed 380 Kommentare

alle Kommentare anzeigen / show all comments
  1. Ditto to Ian's comment above. Spam has been a real problem. Any fix? Thanks for a exceedingly simple contact form!

  2. Oki Oki sagt:

    Hello Tom, you Tiny Form is have a great function. But I need to fiz the appearance, because it shown as a single line. See my contact page :

    http://basuki.biz/?page_id=76

    I don't really understand CSS. What must i do?

    Thx b4

  3. Oki Oki sagt:

    Now is better when i change the width. But i still need it have an enough space between line.

    http://basuki.biz/?page_id=76

  4. Alan Alan sagt:

    I'm currently trying to install the contact form on my wordpress's sidebar but it doesn't work. What do I have to write exactly to have it show? I typed [TINY-CONTACT-FORM] into a post and the form will show automatically but not when I have it on my sidebar. I am customizing my sidebar so I have a sidebar.php. Would I have to do anything different?

  5. Oki Oki sagt:

    I want to give a little contribution, translate to Indonesian. But how Tom?

  6. Greta Greta sagt:

    Hi Tom,

    What should I look at if when I hit send nothing happens - no email , no error, nothing? I had modified the php file quite a bit to remove the subject field had intermittant problems with that behavior, but when I left it last week I thought it was working. Alas - When I checked it again today it was not working. I deleted everything excpet my styles and installed 4.0, and left the subject field alone this time, but it still isn't working. I think something might be left over in the database because my settings remained after I reinstalled. I wanted to clear that too but I can't find which table they are in.

    Thanks for any advise.
    Greta

  7. Greta Greta sagt:

    More information:

    The re-install is working better than I thought - It works when I put it in a page, but the message isn't sent and the error/success message isn't displayed when it is loaded as a sidebar widget.

    Thanks again.

    Greta

  8. Greta Greta sagt:

    I discovered some more - The widget version doesn't work from the home page, but it does from the other pages. Maybe something to do withaction="'.get_permalink().' not being able to display the text in the sidebar? If I hard code that to another page it works, but that is not where I want that text to display.

    Greta

    • Tom Tom sagt:

      Hello Greta,
      i have just tested the plugin in sidebar on the Index/Start page. The mail was send and the message was displayed. But the permalink was the first post in the loop of the Index page. So this page loaded if the form was sent. That is the "error" i found.
      The options are in wp-options: "tiny-contact-form". This entry will delete if you deactivate and delete the plugin on the plugin page.

      • Greta Greta sagt:

        Hi Tom, thanks for the quick reply.

        Is your home page a blog or a static page? I suspect my problem as to do with having a static home page - there is no post to go to. The email was definitely not being sent.

        I got it to work by hacking the php file. I first tried to use if (is_home(') ), but that didn't work - maybe that is related to the other problem. So I used if (is_page('2') ) which is the page in question, and appended index.php

        $action = get_permalink(); //new variable
        if (is_page('2') ) { $action = get_permalink().'/index.php';} =
        ...

        I'm not so good with php so I don't doubt there is a better way to do this. I don't like coding this to a specific page and would like to find out why is_home doesn't work, but for now this works for the site I'm building and I can fix it better later.

        Thanks again. I'm curious if you agree with my diagnosis of the static home page being an issue.

        Greta

        • Tom Tom sagt:

          Hello Greta,
          my home page is the index (10 last posts). I will test action="" which gets the current url. Perhaps it works on all pages. You can also try $action="/" without the permalink before.
          But if your hack is working - all ok. :smile:

  9. K K sagt:

    Servus Tom,

    eine kurze Frage: gibt es eine php-Funktion um Dein Kontaktformular direkt in ein Template einzubinden? Vielen Dank uns schönes Wochenende!

  10. rajeev rajeev sagt:

    Hi I am actually coding a premium wordpress theme and I Want to provide your plugin for download along with the theme with some modifications to styling, to the users. Can I do that ? is that ok with you ?

Kommentare Seite:«12345678910»»|
alle Kommentare anzeigen / show all comments

Kommentar schreiben




Tiny Corner