Toms Welt

/wp-plugins/tiny-contact-form

Tiny Contact Form

548 Kommentare | Kommentar schreiben

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.7

Contributors: Tom Braider
Tags: email, mail, contact, form
Donate link: www.tomsdimension.de/postcards
Requires at least: 2.8
Tested up to: 4.6
Stable tag: 0.7

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. check the settings (email, messages, style) in backend
  4. insert [TINY-CONTACT-FORM] in your page or/and add the widget to your sidebar
  5. without widgets use this code to insert the form in your sidebar.
<?php echo do_shortcode("[TINY-CONTACT-FORM]"); ?>
or
<?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


Translations

Changelog

  • new language: Turkish, thanks to Emrullah Tahir Ekmekçi
  • new language: Dutch, thanks to Erik Collou
  • new language: Arabic, thanks to qasem gaayat.com
  • language update: Italian, thanks to Alberto Scocco www.lemappedelpensiero.it

0.7

  • new: multi widgets with different receivers
  • new: 5 additional fields (e.g. website, phone) possible
  • new: to hide form after submit is your choice now
  • new: alternative "question answer captcha"
  • new language: Swedish, thanks to Thomas www.ajfix.se
  • some bugfixes

0.6

  • new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
  • new: get subject from url like ?subject=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 */
 .contactform label { display:block; }
 /* fields */
 .contactform input { display:block; width:400px; border:1px blue solid; }
 /* message area */
 .contactform textarea { display:block; width:400px; height:200px; }
 /* ok message */
 .contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; }
 /* error message */
 .contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; }
 /* smaller widget form */
 .widget .contactform { width:200px; }
 .widget .contactform input { width:98%; }
 .widget .contactform textarea { width:98%; height:100px; }


RSS-Feed 548 Kommentare

Seiten: « 1 2 3 ... 13 14 15 16 17 18 19 20 21 22 23 »
  1. Ian Ian sagt:

    HI,

    Thanks for the great plugin.

    I have set this up so it is in my sidebar but I want to use it to collect:

    Name:
    Telephone:
    Message:

    I don't want to collect subject or email.
    Which parts of the code do I need to comment out or change to do this?

    Hope you can help,
    Cheers, Ian

    • Tom Tom sagt:

      Hi Ian,
      to change the fields you have to change the code on some locations. It's not so easy because e.g. the email will used as emails "from".
      But you can rename "Subject" to "Telephone" in showForm():
      <label for="tcf_subject">'.__('Subject', 'tcf-lang').':</label>
      to
      <label for="tcf_subject">Telephone</label>
      To show right error message change checkInput()
      $error[] = __('Subject', 'tcf-lang');
      to
      $error[] = 'Telephone';
      But all fields, email too, are required.

  2. Ian Ian sagt:

    Thanks a lot for that Tom

  3. mili mili sagt:

    Hi Tom
    maybe you can help,,:)
    i put the code inside a post, but in the main page -index.php - where the post displayed i get the" [TINY-CONTACT-FORM] " instead of the form itself.
    i use

    <?php
    $post_id = 16;
    $queried_post = get_post($post_id);
    ?>
    
    <div id="contacttext"> 
    <h2 class="postheader" align="center"><?php echo $queried_post->post_title; ?></h2>
     </div>
    <br />
    <div class="starsrow" align="center"> </div>
    
    <div class="art-postcontent">
    
    <?php echo $queried_post->post_content; ?>
    

    for displaying the post..
    you can see it here
    http://www.circusloco.com/#contact
    thanks for any help
    mili

  4. Ian Ian sagt:

    Hi again Tom,

    Thanks for your help last time. My TCF is working fine now and has got me my first lead, however, I now have another problem.

    I initially enabled captcha but the questions are too difficult :oops:

    Well, not difficult but a few of the non-technical people didn't know what / or * meant and one didn't know the answer when you divide something by 1 or 0 :oops:

    I turned captcha off but am being spammed to death by bots so really need to enable it again. Is there a way to make the captcha easier, like a simple '2+2' rather than '17/1'?

    Cheers,
    Ian

    • Tom Tom sagt:

      Hi Ian,
      my mother always said "don't speak wiht people who don't know * or /". Every 10 years old scoolboy can solve these arithmetical problems. :mrgreen:
      But you can change line 544
      $operation = rand(1, 4);
      to
      $operation = rand(1, 2);
      to only use + and -.

  5. Yusef Yusef sagt:

    Hello,
    How do you change the text color?

  6. kristina kristina sagt:

    hi.. i need to make your contact form a little narrow for my sidebar. mainly the content box. can you tell me how? kristina

    • Tom Tom sagt:

      hi kristina,
      you have to set the stylesheet for the form. See my sample above the comments, Copy the last 3 lines in your style.css or in the style field on the options page of the plugin. Play with the numbers if needed. ;)

  7. BD BD sagt:

    I would like to be able to send the completed form to more then just one email...Is it possible?

  8. Nick Nick sagt:

    Bitte in der deutschen Sprachdatei "Email" zu "E-Mail" ändern. Danke!

  9. [...] Tiny contact form : handig omdat het beschikbaar is als widget [...]

Seiten: « 1 2 3 ... 13 14 15 16 17 18 19 20 21 22 23 »

Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht.

:mrgreen:  :D  :)  ;)  8-)  :O  :cry:  :(  :liebhab:  :-x  :-?  :P  :roll:  :arrow:  :schwitz:  :thumbsup:  :thumbup:  :thumbdown:  :facepalm:  :?:  :!:  :eis: