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.
Tiny Contact Form 0.6
Contributors: Tom BraiderDonate 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
- unzip plugin directory into the
/wp-content/plugins/directory - activate the plugin through the
Pluginsmenu in WordPress - insert
[TINY-CONTACT-FORM]in your page or/and add the widget to your sidebar - check the settings (email, messages, style) in backend
- 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 templatestyle.css. - Since v0.3 you can use the settings.
Need Help? Find Bug?
read and write comments on plugin pageScreenshots
Arbitrary section
Silent Helper
- Jay Shergill www.pdrater.com
- by: Marcis Gasuns www.fatcow.com
- da: Jonas Thomsen jonasthomsen.com
- de: myself ;)
- es: Jeffrey Borbón www.eljeffto.com
- fr: Jef Blog
- he: Sahar Ben-Attar openit.co.il
- hr, it: Alen Širola www.gloriatours.hr
- hu: MaXX www.novamaxx.hu
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 />



Is there a way to edit the form so that it is even smaller for a sidebar or compact space in the content area?
Hello bert,
Type it in the style.css of your theme.
you can use all Stylesheet you know.
The complete form is surrounded by a
div class="contactform". Tags in FORM: LABEL, INPUT and TEXTAREA.hi. Thanks for plugin
perfect.
Regards
[...] Tiny Contact Form [...]
[...] Tiny Contact Form [...]
[...] Tiny Contact Form [...]
[...] Tiny Contact Form [...]
hallo, hättest du nicht lust, eine antispam-methode in das plugin einzubauen? ich denke da an die simple aber effektive methode von sergejs antispam-bee
Sowas in der Art mache ich auch. Ganz ohne Schutz kann man ein Formular ja nicht frei lassen.
Es gibt unsichtbare Felder die bestimmte Werte haben oder leer sein müssen. Hab die Idee von "Yawasp".
mhh... mist, bei mir scheint der mailversand (mit der funktion 'mail') nicht zu funktionieren (habe das plugin mit eigenen email-adressen getestet und es kamen keine mails)
herrje, jetzt geht es doch (ich sollte nicht soviel rumfrickeln...)
When I plug [TINY-CONTACT-FORM] into my sidebar php, I only see it come out as [TINY-CONTACT-FORM] on the screen. How do I fix this?
Currently the plugin only works in post or page content. Perhaps i can add a widget for the sidebars.
Version 0.2 now have a sidebar widget.
Thanks,
one question ... how to reset / clear form inputs after sending the form
somewhere at the lines 84-86 :
thanks in advance ...
You can simple reload the page or click another one.
Otherwise you can change the code (your selected lines) to
This resets the post fields.
Thanks, that was quick ...
addition I made is to change from headers :
meaning not using from admin email:
$from = get_option('admin_email');this way we can simply reply to the message as from headers will be: tcf_sender and tcf_email
Thanks again for the plugin
The right email is in "Reply-To" header so you can click "answer" in your mail client.
I have used the admin email for "from" because some servers only allow its own email accounts to send mails. So i think user emails would not send. In next version i will try to use the wp-mail function.
AbsChicken???
Nice plug-in...fruitcake!
maybe its me I don't get it.
value="abschicken"in line 79<input type="submit"...Love the plugin.
One of my questions was already entered in the comments about clearing what was input.
My other question is this.
Is there a better way to show that the message has been sent. I am getting people who are sending me the same email 3 or 4x because they are unsure if the message got through.
The easiest way ist to change the message and say that the mail was sent successfully.
For an another idea see Jays comment. Disappear the form if the mail was sent.
Thank you for your fantastic and fantastically simple plugin. I thought you might be interested to hear about my modification of your plugin. I've added two more options in the settings page for the plugin. One allows the user to specify an e-mail confirmation message. The second option is a textarea that allows the user to include whatever CSS they would use to style the contact form (this way the CSS is independent of the theme).
I've also changed the plugin so that the contact form disappears after it successfully sends an e-mail. If you're interested in it at all, you can see my modification at work at http://www.spiderdev.com/about . Also, I would be happy to share my modified code with you.
Hello Jay,
thanks for your responce. "disappear the form" is a nice idea.
). The "CSS textarea" is another great idea.
CSS i don't included intentionally to size down and speed up the plugin (TINY contact form
Thanks! I will use you work.
Do I have to insert my email address in somewhere?
I've installed the plug-in and activated it and it's showing nicely on my sidebar but when I test it I'm not receiving the message?
Set your email in Settings -> Tiny Contact Form.
In next version (soon) i will update the readme.
Hi Tom, thanks for the quick reply. That's done it.
How do I now change it so that the customer gets a message confirming that it's been sent?
At the moment it's sending and then returning to the page with all the option boxes still filled in. It might make the customer think that the message hasn't gone.
At the moment there is only a "Thank you" message. In the next version you can change these message. To clear the form now see this comment.
Thanks Tom.
Great little plug-in.
The new version is breaking the backend of my wordpress. When I would publish a post, it will publish but it goes to a blank screen.
Hello Ian,
it works in all my blogs.
Do you have update only TCF or change other settings too? Is all ok when you deactivate TCF?
I did the auto update, then I tried using ftp . The backend of WP worked fine when I deactivated the plug-in. I've since reverted back to 0.2 version of the plugin.
And strangely enough it's working again after upgrading this time.
Strange. You say it. Maybe something was wrong with the files. Not deleted or overwritten correctly.
OK, it works.
Hi ! I found your lovely plugin
, and I translated in into my language ( croatian, do you want the translation ). But I have problem -- it's not sending any mail, that is, the mail doesn't arrive and iI get error message ... 

I'm newbie in WordPress and PHP generally, so could you tell me how to set options to get success with email sending ...
Thanks
Hi Alen,
if you see the error message wp_mail() has failed. Do you get other wordpress emails like comments?
In the plugin options you have to set the TO email. If FROM email (optional) is empty the admin email will be used.
Hi Tom,
thanks for such a fast reply. I sent you the language files
Well, I disabled comments on the whole site, becuase I'm buliding site more like CMS then blog ( even not using posts, just pages ).
I don't want no comments except for this mailform.
Here's the form's location so you can see the error.
http://gloriatours.hr/?page_id=10
Is it maybe the matter of setting up mail server with my hosting company ?
Alen
You can test the mail server if you add a new user. Then you (admin) get a mail. If not your mail server settings (in php.ini?) are wrong.
And thanks for the translations!
Yeah, well, still no result ...
Thanks for your help, anyway... I cannot access php.ini (hosting company)
Btw, I'm trying to make msg_ok and msg_err to change as the language change, but the TCF options always save my current language "OK" and "error "message. So I alyways have, for example, italian ok or error, even if I'm on english or croatian page.
I tried to delete code in the admin part ( in the form input value ) but it doesn't work ...
The messages are not localized.
Well .... Thanks Tom for help ... I had it enough for today ( my head is like pumpkin already ...
)
I'll contact you tomorrow perhaps, regarding your plugin, ok ... ?
Thanks and bye,
Alen
Where and what do I need to put in the style.css in the theme? I don't quite understand exactly where to put exactly what phrase?
If you click "reset" in the settings you will see the empty labels that you can style. The content of these textarea you can cut/paste in your style.css and empty the field. For your form in the sidebar e.g.
Tom,
Thank you for mentioning myself and my website with your plugin! I really appreciate it!
Thanks,
Jay
Hi Tom.
Thanks for mentioning me too ... Although, it wasn't really neccessary, you are the one that does the real work here.
).
I solved sending mail ( I installed http://wordpress.org/extend/plugins/wp-mail-smtp/ plugin and it works through SMTP ...
I really would like if the OK and ERROR messages would be translatable. Wouldn't you agree that, if you have field labels translatable, it would be reasonable to have the return messages translatable also ? Btw, I'm trying to make that changes to your script to make it so, but it's really not working ... yeah ...it's because I'm real php noob.
.
Well, I'm looking forward to your updates ...
p.s.: keep this "tiny"... don't put too many options to make this plugin comlicated like others ..
Bye,
Alen
Congratulation for your mail fix.
You only can translate "static" phrases. They must be in xyz.po. Now i have the messages in the options and any user can change them. So i can't include it in the translation files. To do this you have to change the code to static messages which also in the translation files. But the language is set by the WP_LANG in wp-config.php. So you have change this setting if a visitor ist change the frontend language. Not soooo easy.
Hint: Style ok green and error red.
Well, I know about WP_LANG and the rest.
I changed .po ( thus, and .mo ) file, and also I changed your tiny-contact-form.php lines (
$msg_ok = __('Thank you! Your message was sent successfully.','tcf-lang');) and it worked ...Only, when I refreshed options page Ok and Error fields was filled with current language text ... I suppose it has to do something with writing options in database, perhaps ... ?
Anyway, if it can't be done, it can't ...
Maybe you could ( to have all the form translatable ) change this:
input type=”submit” name=”submit” value=”‘ .__(’Submit’, ‘tcf-lang’). ‘” id=”contactsubmit”Ok, thanks for your effort and time ...
( maybe)
I won't bother you any more
Cheers,
Alen
1. If you want translate your messages ignore the options and place static strings like in your comment. But you have to change ALL messages in all function.
2. The submit button get its value of the browser language. So i think every visitor can can read it.
3. "bother" if you want. You have my email adress.
Hi Tom.
Just wanted to let you know that I made YOUR script do what I wanted to do ( you know that language issue .. ). I hope you don't mind ...
You can see it in action on that adress. If you want to see what I've done, what clumsy "coding" i did I will send you the file .
Just to thank you again for this usefull script ! Thanks !!
Bye Alen
Certainly you can change all the code. It's free. The main thing is the plugin works.
is there no way to change the title
The Widget title ist hardcoded in line 208.
"the widget title is hardcoded in line 208"
that's only for the widget page though if i'm right. i'd like to change the title on my published page, like yours below says "kommentar schreiben" i'd like the top of my form to say "please contact us" or something original like that
“kommentar schreiben” is the title of the wordpress comment function. My plugin is here: http://www.tomsdimension.de/kontakt . It is a normal page.
If you want to place the contact form below an post simply insert the shortcode
[TINY-CONTACT-FORM]. With title eg.hello, and thanks for such an awesome form!!, very handy, simple and, tiny!! I've been trying to use it and so far I've suceeded, however I have a couple issues, sorry if the question is too basic, but my knowledge in this is basic as well
The first thing is that I would like to change the title, in my website (under construction) it says tiny contact form, I would like to write "contact me" or something like that, and the second one, I'm looking for a way to change the submit button, I was able to change the fields but I can't find a way to change the background and the name of the submit button, I mean, instead of it saying "submit query", can I write something like "send" or something like that? and, how can I change the background, so it fits the rest of the theme?
Thanks a lot for your help!!, you can check my website at http://www.lebloe.com, but my new website underconstruction is http://www.lebloe.com/wordpress, I'm still working on it, I'm new on wordpress and I still have a lot to learn
Hello gustavo,
for the widget title see the comments above (by Dany and robin).
The submit button you find in line 48
<input type="submit" name="submit" id="contactsubmit" />Change it to
<input type="submit" value="send" name="submit" id="contactsubmit" />update: try new version 0.4
IS there any chance of adding spam protection to the plugin.
I get a lot of spam from it.
Sure? From TCF? It has hidden fields. So the spammer have to use your site. I dont have problems in my blog.
Ditto to Ian's comment above. Spam has been a real problem. Any fix? Thanks for a exceedingly simple contact form!
I have hidden fields that must have the correct value. It works a little like the "Yawasp" plugin for comments which works fine on my blog. I think i add a little captcha.
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
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
If i have understand you correctly you can try:
.contactform input { display:block; margin-bottom:20px; }Yeah, now i have a better contact page with your amazing plugin
Thanks a lot Tom! (sorry for my bad english)
Hey tom, can you look at http://andymalhan.com/?page_id=83 and suggest why the form is not aligning properly?
Your message box is display:inline (standard).
Try
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?
Hello Alan,
why you don't uses the widget?
I want to give a little contribution, translate to Indonesian. But how Tom?
Hello Oki,
you can use "poedit" to change an *.po file of the Plugin. Or install the great Codestyling Localization plugin to add an new language in WordPress backend directly.
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
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
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
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.
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 usedif (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
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.
Servus Tom,
eine kurze Frage: gibt es eine php-Funktion um Dein Kontaktformular direkt in ein Template einzubinden? Vielen Dank uns schönes Wochenende!
Versuch mal
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 ?
Hi, you can use it in your theme. But if you change some i can't give support. It's your part.
Once the visitor sends a message, what if they want to send another one? The form just thanks them, but how do they make it open up again? I hope this is not a dumb question.
Cyndi
Click the Title to reload the page.
Is there a way to modify the width of only the submit button?
try
#contactsubmit { width: 200px }Works great, thank you
Hi Tom,
Seems to be a great plugin you have here.
1/ I have an old theme with deactivated sidebar widget. So I can't use the WordPress widget menu to set up your contact form. But I can copy / paste the php code directly in my sidebar.php file. So could you give me the code I have to paste in this file to have your plugin set up please ?
2/ Is there anyway to prefill a text in the text area ? I would like to put an introduction sentence in the text area that would disapear (or not) when people click on this text area to write their own comment.
Thank you in advance for any advice.
Hello PA,
1. try
to add the form to a template or the sidebar.
2. look for in the source. and type your message before this tag.
to empty the field you can use javascript. but its not easy. you have to check the text so the field is not emptyeverytime you click it.
Hi!
A stupid but necessary question. I really like the TC Form, but I want it in spanish and as I can see, the translation has been made, thanks for that. But, how do I change to spanish? Not in style.css I guess. I was looking after locale/tcf_lang and to put in es_ES.po, but where do I do that, or have I missunderstood?
Schüss
Robert
Hello Robert,
you need the file
locale/tcf-lang-es_ES.moto translate the backend/options and the labels in the form. The choice is made by WP_LANG inwp_config.phpwhich have to be "es_ES" in your case.Hello Tom,
Sorry for the delay in giving news. Thanks for your quick answer. It worked great.
I have another small problem. The TCF answers "OK mail sent" when I click on the send button. Fine... But I don't receive anything on my mailbox...
To fix it, I downloaded the Allen SMTP plugin : http://wordpress.org/extend/plugins/wp-mail-smtp/. I receive the test mail sent by this plugin but once I come back on the TCF and try again, I still don't receive any mail.
Did I miss something ? Is there any "link" to build between those two plugins ? I don't fill the TO and FROM parts of your TCF but it fills the TO one automatically with the previously entered adress (correct). But filling those fields or not don't change anything.
Thanks again for your precious help.
PA
Hello PA,
wp-mail-smtp change the method wp sending it's mails like notifications and also TCF. If you have problems with standard php-mail function on your server. TCF is using the same wp-mail function. So i don't know where is the problem.
Without FROM TCF use the wp-email like wordpress@yourdomain. If you see the message "OK" the mail was sent successfully throw the wp-function. More i can't proof. Perhaps an junk/spam filter?
Hi Tom,
Thank You for this great form plugin. However recently I've been getting spam althoug my site has very low traffic.
Do you have any solution to prevent spam on your form plugin. I read above about your hidden field etc. but obviously it's not working for me.
Any help would be appreciated.
Thank You
Hello Michael,
i don't get Spam of the form. So i can't check it correctly.
But i think about a new/other type to define the hidden fields.
Hi Tom,
I tested your spam protection by making your hidden field "visible". There after I added a value into this field. According to your setup this was supposed to trigger the spam alert. But it did not.
I then changed the code on line 279 (php file)
From This:
To This:
After testing it it seemed to work just fine.
Any comments Tom.
Thank YouMichael
Oh noooo!
I haven't test it yet but i think the middle && is wrong. Must be a || with additional ().
Your code works. But only with one field.
Hi Tom,
Yip I think it should be fine now,
.
however I'll stick to my hack as I'm going to make the hidden field "visibile" then hide it with CSS just for some added protection, to give the Clever bots a run for there money
Thank You Michael
I had the same idea. The CSS comes with next update.
i don't know why, but "display: none" for .tcf_input doesn't work any more combined with "display: block" for #tcf-form input
i worked around this issue with "visibilty: hidden"
can you try
.tcf_input {display:none !important; }? i think the#tcf_formcss overwrites the other css.yes, this works. i just wonder why it worked the other way before (and when it changed)
Auf deutsch, ich weiß, du kannst das.
Ich werds gleich mal ein Update hochladen.
Ich hatte im letzten Update das Inline-CSS durch eine Klasse ersetzt, damit die klügeren Bots die versteckten Felder nicht einfach ignorieren. Leider wird das dann aber durch evtl. eigene Stylesheets überschrieben. "!important" verhindert das. Das sind immer diese Kleinigkeiten an die man denken muss.
Wo hier alle englisch schreiben, wollt ich halt nicht auffallen
Dann war's also das letzte Update des Plugins - hat mich aber auch gewundert, warum da auf einmal zwei Felder mehr auftauchen...
Manchmal ist eben mehr da als man auf den ersten Blick sieht.
I just love the simplicity of your 'Tiny Contact Form', really great! However, mine has all bunched up, is there any code I can add to make it look more usable like your?
an example of what mine looks like can be seen at: http://www.udevelopment.co.uk/members/contacting-us/
Hello Kevin,
all your fields and labels are "inline". Add in you style.css or in code box on TCF options:
See comment 479 for more infos.
It does looks like simple but awesome plugin. I'll give it a try. Thanks for sharing. Btw, you still do the support if have bug with this plugin right?
Right!
I use the widget and it is displayed
but no message arrives and error messages too
Is there anything that must be different in a widget than in a normal page...
do you get an error message or not? the widget has includes the same code as the shortcode. its the same function.
I dont get any message..
but 1 day later it works but it opens the widget above the mail form in the main "frame" but the rest was ok.. Now i put the form on the first palce and nothing works when i send a mail again.. maybe i must wait a day ?
Super Plugin! Ich vermisse allerdings noch eine wichtige Funktion: Der Kontaktierende sollte die Möglichkeit haben sich eine Kopie seiner Nachricht zuschicken zu lassen. ("Ich möchte eine Kopie der Nachricht erhalten.")
Siehste, deshalb "Tiny".
Ne, es gab da mal Abmahnungen wegen einer derartigen Funktion. Sowas mit Rückfragen abzusichern war mir zu kompliziert für das kleine Plugin. Deshalb habe ich es gleich rausgelassen.
Vielen Dank für deine schnelle Antwort.
Abmahnungen deswegen? Hast du nähere Informationen zur Hand?
Das mit den Abmahnungen würde mich aber wirklich interessieren!? Wie kann man denn für eine derartige Funktion jemanden abmahnen?
Ich habs vom caschy. Gib zwar bereits ne bessere Version aber das war mir zu viel. TCF ist eben "tiny".
Danke sehr! Mich würde es trotzdem freuen, wenn du die "bessere Version" implementieren würdest.
Ach so, noch etwas: Damit ein Dokument, in dem das Formular enthalten ist, fehlerfrei als "XHTML 1.0 Strict" anerkannt wird, muss hinter
noch eingefügt werden.
Danke für den Hinweis. Ich arbeite nur mit "Transitional".
Nun, ich verwende das Plugin mit K2 und erhielt beim Validieren elf Fehlermeldungen. Eine für jede der folgenden Zeilen:
(gelöscht)
Ich habs mal gelöscht, denn das ist der Quelltext. Der hat nichts mit XHTML zu tun. Muss ja erst noch verarbeitet werden. Außerdem sollen doch die Spammer nicht gleich sehen, wie es funktioniert.
Ich schau mir das ganze mal an. Ist ja nicht lebensnotwendig.
Ja, das war gut, dass du's gelöscht hast. Entschuldige bitte!
Und danke sehr!
ich hab keine xhtml-validierungsfehler, dafür aber einen css-fehler: in zeile 335 des plugins steht "visibilty:hidden" - da fehlt ein 'i' -> visibility
Bei mir kommt weder "visibilty" noch "visibility" vor. Welche Version benutzt du?
na die aktuelle (0.4.3) - mhh... visibility braucht man eigentlich auch gar nicht, die sache ist ja schon mit
display:none;erledigtDas "i" ist ein Fehler, aber ich hab absichtlich beide Varianten drin, da einige Benutzer im eigenen Inline-Style
display:block;benutzen und damit wären dann auch die versteckten Felder sichtbar weil jadisplay:none;überschrieben wird. Solange ihr das richtige seht, ist alles OK.Ups, ich benutze noch Version 0.4. Da gibt's das noch nicht.
Stimmt, aber wir entwickeln uns ja weiter.
Ich habe das Inline-CSS durch eine Klasse ersetzt, da manche Suchmaschinen wohl
display:none;so gar nicht mögen. Da könnten ja viele Wörter drin stehen, die zwar Besucher locken, aber nichts mit dem Inhalt zu tun haben.Also bei mir geht das auch ohne das "visibilty:hidden", obwohl ich für #tcform input "display: block" drinne hab - sonst hätte ich den Fehler ja auch früher bemerkt
(visibility:hidden hatte ich als workaround weil ich nicht auf den trick mit "!important" gekommen war)
Ah, das !important gibs ja auch noch. Dann ist es nun wohl 4-fach abgesichert.
4-fach? 3-fach, oder? In welcher Datei steht denn das?
Direkt im Code, wird per wp_head eingefügt damit es nicht mit dem eigenen Styles überschrieben/ersetzt werden kann.
Ich benutze noch Version 0.4. Da steht das noch nicht drin.
Hi!
I have translated this plugin to Brazilian Portuguese (pt_BR) and I want to share it with all.
You can download it directly from:
http://www2.dc.ufscar.br/~altieres_lopes/tcf_pt_BR.zip
and share in the next release!
thanks!
Thanks, i will include it in next update.
hello,
For me (and for you!)
I do the french translation :
if you want the .po et .mo files they are at :
http://jefblog.free.fr/tele/
you can copy it !
Thanks for this very usefull plug in
PS And a captcha? ... if it's possible ?
Thanks for translation!
Do you get spam of this form? I don't but other user too. So i think a little captcha will be added in next update.
Aber bitte nur optional.
Keine Sorge, ich brauch ja eigentliche auch kein Captcha, also gibt's dann nen Haken in den Optionen.
Greetings! Great plugin, relatively simple to understand and sort through - however, whenever I submit (and it works flawlessly) it forwards me to my most recent blog posting!
Where can I change that? I'm pretty good with php and fairly comfortable with wordpress. It's a problem that I need to fix and really want to fix because I put decent work into having it work/look right.
Hello Joe,
the form calls its own page, no forward. Do you see any ok or error message? See the action parameter in form tag. It have to be the url of the current page. Any other plugins with redirects?
I'll check all of those options out - I had to manipulate your code, but I'm pretty sure I didn't touch your form action, and I can't imagine any of my widgets/plugins would have redirects to that particular thread (latest one posted).
But like I said, I'll check it out some more and let you know what's the issue!
Thanks for the reply, i'll be back again soon! And hopefully sooner than more spammers
oh geez, i forgot to mention that I'm not getting any errors, the form works flawlessly (and was mighty easy to customize with css and some php/html knowledge). just the redirect is driving me bonkers. i'll maybe check out some other form actions or somethign on the sidebar.
but i'll let you know my progress, just wanted to let you know the form works awesome other than that silly issue.
Alright, dont mind me spamming your comment board - but it would look like I have my get_permalink() set to the latest thread. So I either have to find somewhere in settings where that is and change it, or search through my database (ewww).
But that would seem to be the issue! I can't believe I didn't see that anytime before.
Thanks for the help!
Your failure? That's OK.
Great plugin! An additional field to enter a phone number would great.
Thank you!
Tom,
Eventually I got it going the way I wanted - in a side bar fitting withing the design:
structuredinsurancesettlements.com/new/ (just to show how)
I had to play with the settings to get the right size form. Can i suggest that a more descriptive readme be put with the plugin so it makes it easy to change to fit with layout?
Hello Paul,
A first step can be html.net. But i will include a sample style for a post form and a widget form in next update.
you should know a bit CSS to create a website or change the layout.
Great plugin.
But the form displayed like this http://i43.tinypic.com/30mwupl.jpg
I added .contactform input { display:block; }
But now its like this http://i41.tinypic.com/blxlu.jpg
How do I get the Name/Email/Subject boxes and the submit query button centered?
You use anything like
text-align: center;as default style for this area. Try.contactform label {text-align:left;}to overwrite it.Thank you for the quick reply.
I could not get it to work.
Is it easier to move the text left?
I tried
.contactform label {text-align:left;}to achieve that but it did not work.This all I have:
Change the second line and save the settings. What is the problem? You can also try
{text-align:left !important;}to be sure, all other style will be overwritten.Hi- Thanks for a great plug-in! I'm using the widget and was wondering: Is there a line or two of code I could add to let me (the recipient of the form) know which URL the inquiry came from?
Thanks again!
Hi, I work on an update an will add the URL to mail content. I think
get_permalink()would do this.Error in 0.5.:
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR in /[...]/www/wp-content/plugins/tiny-contact-form/tiny-contact-form.php on line 552
I don't see the error in my 3 blogs.
But if you deactivate the captcha it should work.
I'm getting this same error after installing 0.5.
And the plugin doesn't load, so I can't activate it, and can't access the settings to deactivate the captcha.
I love the plugin, and it was working perfectly until I upgraded.
Any ideas?
Thank you so much!
When you get the error? After install? The captcha is default off. So that's no problem. Sorry, I can't see this error anywhere.
Can anyone give me a link or access to a test blog with error?
A last question: Which PHP version you uses. 4.x? I think that's the problem with the static function. I testet 5.x only.
Not testet:
Change line 552 to
<strong>public</strong> static function isCaptchaOk()or deletestatic.Vielen Dank! (And that's all I think I can write in German!) I deleted "static" in line 552, and was able to activate the plugin and it is working perfectly again. Thanks so much for getting back to me quickly, and for being such a responsive developer--an asset to the WordPress community!
Fine!
I don't have testet only googled. I looks like a difference between PHP4 and PHP5.
And many thanks for your lovely words!
i have the same problem like dondado ...
See the comments above or download the plugin once more. It works now with PHP4 and PHP5.
Hi!
I have translated this plugin to Dansh (da_DK)
and thought i would share it.
You can find it here:
http://jonasthomsen.com/temp/da_DK.zip
and include it in the next release!
Jonas
I got it. Thanks Jonas!
Great plugin!
This might be a repeat, but just in case it's not....
In case you need the referring URL, I added:
'URL: '.$_SERVER['HTTP_REFERER']."\r\n\r\n".in the '$fullmsg =' between the email and subject.
especially helpful if you're using the widget.
Thanks again!
Hi Forrest,
in 0.5 i used
get_permalink()to add the referer to the mail. But your code works on index pages too. I have change it in 0.5.1.Hi, ich habe nur eine kurze Frage. Was muss ich ändern, damit im Header der E-Mail nicht die vom Blog auftaucht, sondern die des Senders? Ich meine die: tcf_email. Denn so wäre es viel einfacher dem Absender zu antworten.
Klick in deinem Mailer halt auf antworten.
Ich trag die Sendermail nur als Antwortadresse ein, da einige Server Emails nur von bekannten Absendern weiterleiten.
Ich persönlich habe kein Problem damit, aber dieses Kontaktform soll nicht mit der email-addy des Administrators versehen werden, sondern mit der des Managements des Künstlers für den die Seite ist. Deshalb würde ich gerne die tcf_email im Header haben.
Ich glaub, das musste mir mal aufmalen.
Du kannst doch Absender- und Empfängeremail in den Einstellungen angeben. Wenn die Email des Benutzers als Absender drin stehen soll, müsstest du den Code ändern.
Zeile 116:
$from = $this->o['from_email'];zu
$from = $_POST['tcf_email'];When I submit the form it gives me an error.
OK, but WHAT error?
Hello Tom,
I didn't give news for a while and I just come back to study your widget... And I still have the same trouble : the TCF doesn't send any mail
1/ When I create a new user, I receive a mail. It works well.
When I use the TCF, I have an OK message, not an error message... But I don't receive anything.
I changed the WP-mail by SMTP mail and I repeated creating a new user successfully... But the TCF still doesn't send any mail even though it tells me the mail was sent.
I changed the FROM by different "mails" admin mail, other mail, wordpress@mydomain... Nothing solved the trouble.
I asked my server provider to know if this trouble could come from their side. Of course, he said no... and as I receive the "create new user" mail, obviously, the WP-mail is OK...
If you have any idea, it would be cool.
2/ You gave me a code line to insert in my sidebar (as mine is widget deactivated) :
it worked well with the 0.43 version but not with the 0.51.
I pasted instead your new code (top of your page) :
showForm(); ?>But it doesnt work. The TCF doesn't appear in my sidebar. Isn't there a -> in this code before the ShowForm that pertubates its functionning ?
Sorry for the troubles and thanks for your answers.
Hello PA,
the first problem: If you get an OK message, the mail function sent the mail. Otherwise you get the error message. The mail funcation say yes or no an i show the message. Perhaps the receiver is not correct or the mail was recognized as spam?
second problem: Since 0.5 you have to use the class like sample in readme - installation.
If the sidebar created by an function use
<?php global $tiny_contact_form; ?>above the code.Hello. As seen in my URL my contact form is a bit down in the page. It seems there are line breaks on the page. Is there anyway I can fix this, or is it possible for you to direct me to where I should go to fix the issue?
Great form. I went through a few before I found this one, and I love it.
I just don't like the line breaks. I've tried making a new page too, and the same things occurs.
Thanks a lot
Justin
Hello Justin,
delete the
pretags before and after the form. It's just for mark up on this page.Thanks for the response.
Another question. I've made the stylesheet like the one above. Is there anyway to put the submit button lower having a space between the textarea and button, and make it rounded?
Thanks a lot.
Great plugin, but is there an easy way to change the HTML submit button so I can submit the form with javascript and an image instead? Many Thanks
I think
type="image" src="your img"instead oftype="submit"should work.Hi Tom
Ich habe eine blöde Anfängerfrage:
Bei mir funktioniert die Mehrsprachigkeit nicht.
In wp-config ist richtig gesetzt: define ('WPLANG', 'de_DE');
Woran kann das sonst noch liegen (ich fand im Blog keine Antwort)?
Besten Dank für deine Hilfe
Hallo Achilles,
der Eintrag ist richtig. Ist nur das Plugin englisch oder das ganze Blog/Backend?
Hallo Tom
Nur das Plugin ist englisch
Das ist natürlich schlecht für mich.
Lade das Plugin bitte mal per FTP in dein Blog hoch. Ich hatte schon mal den Fall, dass beim automatischen update die Sprachdateien nicht erkannt wurden. Warum auch immer.
Danke für die promte Antwort.
Ich habe das Plugin gelöscht und neu geladen. --> Funktioniert leider immer noch nicht
Zur Info: Ich habe das deutsche WP 2.5.1 installiert (weil mein Hosting - Provider diese Version installiert).
Danke - however- für deine Bemühungen!
Achilles
OK, 2.5 könnte nun natürlich auch ein Problem darstellen. Ich befürchte, dass die Art, wie ich die Sprachdateien einbinde erst am 2.7 funktioniert. Sprich mal mit deinem Anbieter. 2.5 ist ja doch sehr veraltet.
ähm ich glaub ich hab mich falsch ausgedrückt oder versteh etwas nicht.
Ich glaube was ich meine betrifft den Header von der Email.
Im Header der Email wird folgendes angezeigt:
aber ich möchte, dass der Header so ausschaut
also der Name desjenigen steht, der eine Mail über das Kontaktform geschickt hat.
Zeile 116 habe ich abgeändert
$from = $this->o['tcf_email'];Hat das Eine mit dem Anderen nichts zu tun?
Verstanden haste wohl alles richtig, nur falsch gelesen.
Man achte auf das
$_POST.$from = $_POST['tcf_email'];Manchmal sieht man den Wald vor lauter Bäume nicht!
Ich bin schon fast verzweifelt gewesen, denn ich hatte alle Änderungen so gemacht, wie oben geschrieben wurde, hab sogar das
$from = $_POST['tcf_email'];geändert und trotzdem wurde mir noch immer das Head in der Email, wie oben beschrieben, angezeigt. Es war ein Gedankenblitz und das deaktivieren von dem Plugin "Mail From" hat das Problem gelöst!
Nun läuft es wie es soll, VIELEN VIELEN DANK für die Hilfe!!
Hello,
Great Plugin, thanks! I have just a small problem: I changed the labels in tfc-lang-de_DE.po to polite german form.. but the modified labels do not show up in my contact form. I then deleted to plugin, downloaded the zip and installed it manually (with modified .po file) but still not the good labels.. I believe it has something to do with the .mo file. Can anybody please help me?
Thanks in advance, Oliver
Hallo Oliver,
spricht man in deinem Teil der Schweiz auch deutsch? Wäre einfacher.
Also die po Dateien müssen zu mo Dateien "kompiliert" werden. Diese werden eigentlich benötigt. Das kannst du entweder mit dem Programm poedit machen oder mit dem Plugin Codestyling Localization direkt im Backend.
Aber was ich denn ein "polite german form"?
Hallo Tom,
natürlich spricht man hier in Bern auch Deutsch.. sorry, war wohl geistig umnachtet! Mit german polite form meinte ich die Sie-Form!
Also, ganz herzlichen Dank für Deine rasche Hilfe und auch für das super plugin!
Gruss, Oliver
Also so richtig deutsch ist das aber auch nicht.
Und in der Schweiz gibts ja auch andere Gegenden, daher habe ich es nicht gleich vorausgesetzt. Freut mich, wenns klappt.
Great plugin.
How do I shorten the captcha answer input field?
To have the captcha question and answer input field on the same line.
Thanks,
David
Hi David,
use
#tcf_captcha{ width: 100px; }in your style.css or the style sheet field on options page.Thanks, that shortens the input field but the captcha question and answer input field are not on the same lime!
I think all label tags are
display: block;in you stylesheet. To change only the catcha label you have to change line 575 in the plugin file<label for="tcf_captcha">to
<label for="tcf_captcha" style="display: inline;">Also you can try
#tcf_captcha{ width: 100px; display: inline; }in the stylesheet.
Hey...I love this plug-in so far. Easy to set up...working great with 2.81!! One question though. The form is set up to go to my gmail and when it shows up in my inbox, gmail says its from "Wordpress". Is there anyway to change this? I've tried altering the php line 116 to: $from = $this->o['tcf_email'];
Any ideas? or am I changing the wrong part of the code? I've also changed the subject string and that change shows up in my inbox...so I'm lost here. Any help is appreciated. Thanks!!
Hello Brett,
this is not soooo easy because wordpress set up most of the mail data. Perhaps in next version i will include a new option.
You can make an workaround. Create a
functions.phpin your theme directory if it's not exists. Add the following code.But than all emails (like comment notification) of the blog will have this FROM too.
Thanks Tom, I'll try that out. The wordpress site I'm setting up is more for CMS purposes than blogging, so I'm not worried about blog comments. But I'm kinda new to PHP so is there a way I can call the $name variable from the tiny-contact-form.php? If not I can just set up a generic FromName in that function just so the client doesn't see "Wordpress" when they get contact from their website.
Thanks again! Its great to see a developer actively helping out the users of their plugin!
For use the TCF name wait for the next update. I will include this function. Otherwise use the method above to change the from nam on every mail wordpress will send. I think the blog name is a good choice.
Oh, thanks for your thank.
Hey, super Plugin. Habe etwas herum probiert, aber dank Deines Stylesheet-Beispiels konnte ich (als Anfänger) auch das gut ändern! Danke!
[...] Tiny Contact Form - indir Alıntı: [...]
[...] Tiny Contact Form – indir WordPress contact form plugin [...]
Sehr cooles Plugin, hat gerade Contact Form 7 abgelöst. Und danke für die Style-Vorlage, sehr hilfreich
(Ich sehe gerade: Im Prinzip sage ich das gleiche wie mein Vordermann, dem ich mich nur anschließen kann
-> bitte weiterhin so simpel lassen und nicht so ein Mist wie Contact Form 7 V2.0 veranstalten, danke
)
Ich versuch mich zurückzuhalten.
Hi there, where should I copy and paste the code for contact me if I want it to display in my "contact us" page?
Thanks alot!
NooriChronicles.com
Create a page with title "contact us" and content
[TINY-CONTACT-FORM]. That's all.@Tom, I did do that but it is not working for me :( I pasted the rest of the code into my style.css and [TINY-CONTACT-FORM] into the contact us page but I dont see anything on my contact us page......any thoughts? I appreciate your help. thanks.
The shortcode is replaced on your page. It works. The response DIV but no input field is shown. Do you have change the code? Test complications with other plugins.
nope I havent changed anything. all I did is activated the plugin and then copied and pased the code into the style.css and then copied [TINY-CONTACT-FORM] into the contact us page, that is all...not sure how come it is not working for me. thanks.
Deactivate all other plugins and test TCF. OK? Same error? If OK activate the plugins step by step and test TCF.
Wow! Just dropped your great plugin Tiny Contact Form into the Hybrid template and it worked perfectly the first time. Thanks for providing it to the WP crowd.
Hi, is it possible to send the information to several mails ?
Hi trustin,
type several comma separated emails in the "To" option field.
Great plugin! Thanks for making it available. I am testing the above site and would like to do two things with the TCF:
1. remove or hide the 'Subject' field from view and program a default subject line to show up in the recipient email.
2. have the word "OPTIONAL" appear pre-typed in the From Email field.
Is this possible? Thanks again!
Mike
Hi Mike,
1. you can delete the lines 84, 85, 344, 352 and 353. but i don't test it!
2. in the options? no, because its no email. i dont check this.
but with a little php knowledge...
Hi Tom
Great plugin, does what it says on the tin!
Just one query if your blog title has an ampersand (&) in it when you do a reply to a message, that email reply doesn't show the ampersand but instead it is displayed as &.
For example, if your blog title was Apples & Pears it would be diplayed as Apples & Pears on the reply email.
Is there anyway to retify this because it obviously doesn't look or read right?
Hi Mark,
i simple use the WP function
get_bloginfo('name')to insert the name in subject. This function creates HTML entities if needed.You can try to set fixed name in lines 120 and 128.
Hi,
I love the form but after I submit my message it disappears and won't re-appear on refresh. I'd like it to stay there.
Amanda
p.s. All the times I refreshed the page to get the form to appear again it just sent another form to my email.
Hi Amanda,
Click the link (eg. headline) of the TCF page an the form will be show again.
that's all correct. If you send the form only the message will be show. A normal user send one message and ready.
If you reload the page with F5 or reload button, the form data will be send to the server again - and the email too.
How do I use this in a normal template? Can't get it to work.
showForm(); ?>Nothing happens with this. I don't want the form in a sidebar, just be able to put it in any template file. Thanks.
Oh it stripped the code. Well the code I'm using is the one in the readme...
Hi Jay,
readme is a good idea. See point "Installation".
Thanks for answering. I'm using that code but nothing shows up. Using the shortcode inside the content works fine, but I need to be able to manually place it in the template file.
Is there anything more I have to do for the $tiny_contact_form to be accessed/found by the template? I saw a post above about making it global, maybe this is the problem for me. Where do I have to set it to global? From where can wordpress reach it without it being a global variable?
If your template part called by a function you have "to global" the variable. Otherwise it is empty in the function.
Type
global $tiny_contact_form;just before theifbut in php tag.Hallo Tom,
dank des Beispielcodes habe ich das Formular integriert. Es funktioniert auch alles, bis auf die Tatsache, dass keine Mail nach dem Absenden des Formulars ankommt. Bestätigt wird der Versand allerdings.
Benutze WordPress MU 2.8.3. mit Buddpress Plugin
Gruß
Mark
Hallo Mark,
habs nicht mit MU getestet. Aber wenn die Erfolgsmeldung kommt, hat WP die Mail eigentlich auch verschickt. Vielleicht im Spam gelandet?
Ne, kann absolut nicht im Spam gelandet sein.
Habe mehrfach nachgeschaut.
Das Tiny-Contact-Form sendet die Mail ja an die Adresse, welche unter "Einstellungen › Allgemein" hinterlegt ist!?
Gruß
Mark
Ähm. Sorry,
Klar! Ich hab jetzt erst wieder gesehen ,dass es im Plugin einen Eintrag für die E-Mail-Adresse gibt, an die die Mails versand werden sollen, welche aus Tiny-Contact erzeugt werden.
Aber da ist die Mail-Adresse richtig eingetragen.
Wenn du da nichts einträgst, wird die Admin-Email benutzt. Probier mal ne andere Email. Kommst du an die Sendmail-Logs ran?
Hi,
ist ganz komisch, mit manch anderen E-Mail-Adressen funktioniert es, aber nicht mit allen!? Kann es jetzt nicht in Ruhe testen, da ich mich entschlossen hatte, mit meinem DSL-Anschluss dem rosa Riesen den Rücken zu kehren und dessen Tochergesellschaft zu gehen, aber das war keine weise Entscheidung, da ich nun seit über einer Woche ohne DSL-Anschluss bin und mich mobil durch's Inet schlagen muss.
Dachte zuerst, dass es evtl. an E-Mail-Adressen von Domains liegt, die auf dem desselben Server wie die WPMU-Installation liegen, kann ich aber nicht bestätigen!
Ich teste weiter. Wichtig ist auf jeden Fall einmal, dass es mit bestimmen E-Mail-Adressen funktioniert. Wenn ich dann mal wieder Zeit und einen funktionierenden DSL-Anschluss habe, dann schaue ich mir das Sendmail-Log an!
Gruß
Mark
Also wenn es manchmal funktioniert, dann ist die Seite ansich OK. Ich würde wirklich in Richtung Spam oder sonstige Filter suchen. Manche Server senden nur von bestimmten Absendern die auch auf dem gleichen Server/Domain eingerichtet sind. Das Log sollte da schon helfen. Sag Bescheid, wenn du wieder ein richtiger Onliner bist.
Hi,
also qmail meldet "cannot reinject message to blabla@blabla.com "
Wobei "blabla..." hier nur ein Fake für diese Message sein soll. Die echte Adresse möchte ich selbstverständlicherweise nicht posten.
Ich habe herausgefunden, dass es wohl daran liegt, dass die E-Mails auf einem anderen Server gehostet werden (Mx-Records für Domains verweisen auf anderen Server) , als auf dem, auf dem WP läuft!
Wie ich das in den Configs wieder geregelt bekomme, weiß ich noch nicht.
Gruß
Mark
Ich hab's nun!
Nachdem ich durch Google-Suche auf den Ordner /var/qmail/control gelangt bin, allerdings auf die Datei "virtualdomain gelinkt", welches nicht den Erfolg brachte, habe ich selbst mal testweise die WP-Domain der Datei "me" geadded und es funktioniert nun!
Danke nochmal für den QMail-Hinweis!
Nice WE 2u
Mark
Nur nochmal um doch nichts falsch gesagt zu haben:
Also es lag doch nicht an der "me"-Datei sondern wohl an dem Virtual-Domains Ordner:
http://groups.google.com/group/hosted-the-basics/browse_thread/thread/0f1886922be85332
hi,
i put
showForm(); ?>(without spaces)at my theme sidebar.php, but the form did not show up.
i also put
global $tiny_contact_form;right before if, the form still do not show up at my site.any idea?
thanks
Amy
Hi Amy,
should work but you also can use the widget.
Hi Tom,
i already tried this (with global) and also simple code (without global).
they both did not work for me.
The contact form just simply does not show up.
Finally, i used widget to put contact form in my theme's sidebar.
The widget option asks to fill title, that i do not want to fill.
Do i change smth in plugin to take out title?
Thanks
Hi Amy,
ahh, i failed.
I have to update the readme.txt!
To hide the widget title you can
1. you can use
.widgetTcf h2 { display: none; }in your style.css.2. with
&nbsp;as title an empty widget head will be shown.Thanks, Tom,
now it worked!
Excellent script worked first time
Silverboots Line Dancing Norwich
Thanks
Dolly
Hallo leute,
ich habe das Kontakt Form. über wordpress Installiert. Ich kann es in meiner Sitebar schieben und dann geht es auch. Ich würde aber gern das Formular in einer Seite haben nicht im Menue. nun habe ich mir die readme angeschaut und werde leider net schlau. Was für ein Code muss in die seite eingetragen werden damit es geht?
Danke
Hallo Gordon,
na steht doch GANZ GROß da
[TINY-CONTACT-FORM]ist ein Shortcode. Du legst dir eine Seite "Kontakt" oder so an und schreibst nur den Shortcode rein. WP zeigt dann an dieser Stell das Formular an.i m using WPML plugin to multilingual my site
unfortunately, tiny contact form does not include multilingual support (like, Contact Form 7)
can you, please, include this support at your plugin?
or any other solution?
Thanks
Amy
Sorry Amy, but TCF is "tiny". The form uses the blog language if a translation is available.
Hey mate, great plugin.
But is there anyway of having the page NOT have to refresh to check the fields? Maybe some ajax would do the trick? Any support of this in the near future?
I don't think it would be that much bigger plugin
Thanks
André
Hello André,
Maybe sometimes.
not much bigger but more complicated.
Five stars = fantastic!
I tried transpose email first and unless you are an expert the level of installation information is pitiful.
This makes a cute simple widget. Thank you!
Moinsen,
sexy plugin!!!! Dankeschön!
Gibt es eine Möglichkeit die lang-file zu bearbeiten, ich bräuchte Deutsch- SIE!
Dankeschön!
English:
Thanks for this great plugin.
Is it possible to alter the lang -file I would need a polite german "Sie" instead of "Du"
Cheers,
Stefan
Hallo Stefan, du kannst die *.po Dateien bearbeiten und sie dann neu zu einer *.mo Datei "kompilieren". Entweder offline mit "poedit" oder direkt im Blog mit dem Plugin Codestyling Localization. Damit kannst du auch ganz einfach neue Sprachen hinzufügen.
Hi,
Very great plugin! It works on a French hosting server (FREE) which is famous for its limitations in sending emails with PHP function. Great!
Now I would like to say something about a problem of spam. When you click backward in the browser the form is displayed again with all the fields filled and you have just to click again to send the same message. So, a silly spammer (they are all) can make a programme which makes backward+click submit button repetitively and send thousand of emails automatically.
I tried to include this code:
after
$result = $this->o['msg_ok'];but this has NO effect when one clicks on the backward button of the browser. Is it possible to empty all the fields surely just after the sending-submission of the form? (you understand that the captcha field is unusefull if you can send and re-send and re-send with only two clicks). Thank you.
Hello dorjee,
the $_POST variable will unset after successfully send the mail. Perhaps i can check the mail content and not send it twice.
Thanks for the clue.
Hi Tom,
thanks for the quick answer.
I believed too that "the $_POST variable will unset after successfully send the mail" but it seems that this is does not works when the user makes a backward in his browser.
If the second part of your answer is a method you suggest, maybe this could work, but is it not a little heavy-coding? Is it not possible to have a PHP action on the browser to delete the last history and oblige a refreshing of the page? Or at least changing the captcha formula... (of course i am not a PHP specialist)
Actually the idea is that when a test gives a history-1 all the fields are deleted.
The history is stored in your browser. There is no way to change this per php. Maybe i can blur the fields per javascript on every page load of the page with contactform. I will think about.
I add this:
<form action="" method="post" autocomplete="off">"autocomplete" on "off" is an interesting parameter which disallows the browser function to keep in cache the content of form fields (I found it in my bank website). So the user has to retype all text fields. Which is a first step. But unfortunately this is not a fix to the history-1 issue...
Well, I made some trying and error:
It works in firefox and chrome, but not in ie where teh fields are always filled after backward!
Hi,
other problem, in Firefox the hidden fields are displayed as more or less thin lines (not in IE or Chrome).
The solution is to add an ID for hidden type fields in the tiny-contact-form.php file (end of the file). For example: id="hfield1" and id="hfield2".
Then add this above in the CSS setting:
I tried a .contactform hidden..., but it does not works.
The "Hide CSS" already added in my plugin version! And it works in Firefox which is my favorite browser.
.tcf_input {display:none !important; visibility:hidden !important;}Also the fields have IDs tcf_name and tcf_sendit!
[...] Tiny Contact Form : Toms Dimension Comments0 Leave a Reply Click here to cancel [...]
[...] Tiny Contact Form [...]
Is there a simple way to add another field, say for phone #? That would be very useful to me. In fact I would send an immediate contribution if you could provide me with code to plug in. Thanks, Sean
A way? Yes. Simply?
You have to add the field to the form and to the send function.
For form see lines 84/85. Copy, paste and rename this subject field.
To show it in the email, see line 133. Same procedure.
I like the Plugin.
But I am having a problem with trying to have the - Name tab moved below the main tab Contact.
Check out our website to see the issue - http://www.GotJesus.tv
Thanks,
Richard
Your plugin is not TCF.
[...] Tiny Contact Form [...]
[...] Tiny Contact Form – Skapa ett litet smidigt kontaktformulär till er blogg för att låta era besökare kontakta dig. Kan infogas i varje artikel eller sida. [...]
[...] 3. Tiny Contact Form [...]
[...] 3. Tiny Contact Form [...]
[...] Questo plugin vi fornisce un semplice e sicuro form di contatti Ajax based da inserire nelle pagine del vostro blog. Facile da configurare, direi che è la modalità più utilizzata nei blog WordPress. Tiny Contact Form [...]
[...] Tiny Contact Form – indir WordPress contact form plugin [...]
[...] Tiny Contact Form [...]
[...] die PluginsWordpress.com Stats (Ersatz: Piwik)Akismet (Ersatz: Antispam Bee)Contact Form 7 (Ersatz: Tiny Contact Form)Vermutlich gibts da noch viel mehr Optimierungsmöglichkeiten, aber man will ja in Zukunft auch [...]
Hi Tom,
Firstly I'd like to thank you for creating what seems to be an excellent little WordPress plugin. I have installed TCF and styled it, however I am unable to receive any emails sent by the form.
I have added my email address in the Plugin Setting page, and when I press submit after filling in the form it tells me that the submission was successful, however I never receive an email.
Any ideas?
Maybe your problem is the same as Alen. See this comment and prior.
Hi how can I insert some predefined text like "Paste your interview link here..." into the text box in sidebar? I want it to disappear when I click on the text box. I know this is ussually done with adding value="Paste your interview link here..." and onfocus="this.value=" ' ' " but this breaks the php.
To insert a default text try to change the code. Insert in line 77 before
$form = ...To blur the field you can use
onfocus="this.blur()".Ich bin relativ Neu mit WP und habe folgendes Problem: habe das Plugin zwar installiert, aber wenn ich auf "bearbeiten" klicke dann sehe ich eine leere Seite. Habe die neueste WP-Version 2.9.2 - help! bitte!
... und noch was: sobald das plugin installiert ist, funktioniert das editieren meiner Seiten nicht mehr: ist alles leer! Seltsam. Danke im Voraus, ich hoffe meine Kommentare kommen an. Gruß K
Wenn du das Plugin deaktivierst ist alles OK? Welche Plugins hast du noch? Evtl. mal nur Tiny Contact Form aktivieren.
Du kannst auch in der Datei wp-config.php (im WordPress-Hauptverzeichnis) mal die Zeile
define ('WP_DEBUG', true);eintragen. Dann werden Fehlermeldungen angezeigt. Die schick mir bitte mal per Kontaktformular.Danke für Deine Antwort! Habe inzwischen mit dem Service Provider gesprochen, im Endeffekt lag es am Server. Musste eine htaccess Datei herstellen, damit der Server meine Plugins versteht, das Problem hatte ich nämlich auch mit anderen. Danke nochmal! Super Plug-in.
[...] Tiny Contact Form [...]
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
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.
Thanks a lot for that Tom
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
for displaying the post..
you can see it here
http://www.circusloco.com/#contact
thanks for any help
mili
Hi mili,
why you don't use the wordpress loop? So you have to include the shortcode function manually. I think this code should work.
wwwoow. you are fast & good!

thanks!!
Hello again Tom
i have 2 more questions regarding the form:
1. after submiting the form (with or without success) i would like the page to stay in the same anchor point - http://www.circusloco.com/#contact-
and not to scroll to top, how can i do it?
2. after sending the mail the form disapear, can i get an empty form again + the success message?
(i was looking in the comments but couldnt find the answer)
thanks in advance
mili
Hi milli,
1. your anchor have been
#contactnot#contact-2. why? if the mail was sent you don't need the form. a reload of the page will show the form.
thanks
but still after i click on submit button the url changes from
http://www.circusloco.com/#contact
to
http://www.circusloco.com
where can i control that it will remain in
http://www.circusloco.com/#contact
?
Try to change the form tag
action=""toaction="http://www.circusloco.com/#contact". But then all contact forms on your site will have this "landing page".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
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
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
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.
But you can change line 544
$operation = rand(1, 4);to
$operation = rand(1, 2);to only use + and -.
Hello,
How do you change the text color?
Insert in style sheet field:
#tcform label { color: white; }Otherwise the form uses the default color which is black in your blog.
hi.. i need to make your contact form a little narrow for my sidebar. mainly the content box. can you tell me how? kristina
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.
I would like to be able to send the completed form to more then just one email...Is it possible?
Just type all emails in the first field (To) on the options page separated by comma.
thanks Tom
Bitte in der deutschen Sprachdatei "Email" zu "E-Mail" ändern. Danke!
Bitte eine gültige Email eingeben. Danke!
[...] Tiny contact form : handig omdat het beschikbaar is als widget [...]
Hi,
I'm expecting a problem. When I submit the form I got no confirmation message but I receive the e-mail correctly.
But the error message displays good.
Any help?
Hi titi,
i have check your form, but no mind. Do you have set the OK and ERROR messages on options page. To show the OK message it have to be not empty.
First I tried to put a sentence containing simple quote that in french we are using. (l'e-mail) I realized It added me backslash each time I updated the options.
And the message confirmation wasn't working.
Then I tried with just "message sent", but it doesn't work either.
Escape the ' like ′ or ’ but "message sent" have to work.
Well it doesn't... I can assure you.
I'll try to delete and re install.
Oh i believe it, but i don't know why.
Try this version which works here at the moment. Its only the php file. So upload it per FTP in the plugin directory.
Nope... Doesn't work either.
And I got a JS popup when fields are blank. And It's in german.
Yes, but German and English. It's a try to check field without reload the page.
OK, my last hint. Deactivate all other plugins. Maybe one of them would not work with TCF.
Thank you I should thought about that before.
I found the plugin in conflict. It's "SFC - Like Button" from "Simple Facebook Connect". But I have no clue to find the problem... :s :s
Then you have to use another Facebook plugin. Or another contact form. I don't know if it work.
Maybe it works: delete the line
unset($_POST);in function sendMail() in the tiny-contact-form.php.But that's realy my last idea.
Your last idea was the good one
It works !! ahah
It's been weeks I try to find THE contact plugin... others plugins are in conflict with my JS, and some others are sh***.
Thanks. But I think maybe you should take a look at the SFC Like Button plugin,and try to save your "unset" function in another way.
Because many people are using it.
OK, was a hard job

I unset the all POST data. I will change it to delete only the form fields. That should work.
And a translation for the JS popup could be great
Thanks for your help and for this simple plugin.
Hi,
I'm expecting another problem. After submitting and I click just one time. I receive the e-mail 3 times. Why that?
Thank you,
Do you reload the page after sent the mail?
It's a known "bug".
No I don't. It's a known bug if we reload the page?
If you sent the mail and reload the page with confirmation message the mail will sent again because the reload sents the POST data new.
Yeah I know that because we removed the unset function. But the page is not reloaded after submitting. That's the problem!
Don't know. I use the WordPress mail function. And call it only ones.
If you remove the "unset POST". Did you try?
That is not the issue.
Ok so the plroblem is due to a conflict with 2 plugins (Simple Facebook Connect) :
SFC - Like Button : when active I receive 2 mails
and when SFC - Share Button is also active with the previous one I receive a total of 3 mails.
So there is no temporary solution ? :s
hallo,
ich wollte das "abschicken" Button ein grauer hinterground einlegen. Wie geht das? Ich habe das Script von tiny-contact-form.php versucht, geht nicht weiter. Es wäre cool, Sie mir hilfen könnten. Dank!
Google Translator?
OK, the submit button has the ID "contactsubmit". So type e.g.
#contactsubmit { background: #ccc; }in the style field or in your style.css.
dank! Es funktioniert!
Ich muss auf jeden fall mein Deutsch verbessern.
Nicht wegen mir. Wenn ich etwas nicht verstehe, frage ich nach. Dich habe ich ja verstanden. Deutsch = OK
Hallo Tom!
Ich habe noch eine Frag, zwar ich möchte dieser Formular noch auf chinesische umsetzen. Ich glaube muss ich auch dafür mo. und po.Datei erstellen, oder? Wo soll ich noch ändern?
lg Lijing
Installiere dir dieses Plugin und erstelle die neuen Dateien direkt im Backend. Ist meine Methode.
Ein sehr praktische plugins! Schönes Wochenende!
Also the subject of the email contain the title of the blog and mine contains accent and quote. So I receive like this: "...... l & #39 ; air"
Maybe you should fix this while I will remove the title in the subject
Change the name of your blog!
I can add a free prefix to the options.
Accepting the accents and quotes is a better solution
Hi Tom,
i upload and add your plugin in my contact page,
but i have to ask u a question?
In your options page the second voice it would mean to insert the e-mail of sender for receiving a copy of its own message?
That is?
PS
Italian translation is not properly done in a correct/ right way, i hope to find some free time to sent u the right italian translation for IT version.
POST PS
in message error label i write a " ' " charater but when i save the options a " " character appeas before the " '".
I could not verify that but how the ERROR message will be displayed?
another question:
1)How to customize submit button in TCF option?
i.e. using class
2)Why in my contact form there isn’t any space beetwen captcha and the submit buttom?
A suggestion:
Did you ever thinking about changing "/" with ":" or "÷" in captcha code?
Cheers
Hi ilBI,
1. With the second (optional) email on options page you can set the FROM Email. Default is the blog admin email. A CC to the sender i will add in the next update.
2. It's difficult to keep the translations up to date. You can always sent me an new version.
3. ' is wrong escaped. It's on my check list.
4. The submit button has id="contactsubmit".
5. Space captcha-submit: try
#contactsubmit {margin-top: 10px;}6. I think "/" is ok, on all keyboards.
That's all?
Hi Tom,
thanks for your (...many) answers.
i will sent u the italian translation a.s.a.p.
Bye
Hi Tom,
did u eve listeng about follwing trouble:
i can save the option both with your plugin that with another contact form plugin
Contact Form 7.
Usually i don't find such kind of problem during my duty with my wp blog.
Bye
sorry, i don't understand.
just use only one plugin.
Ok i forget a " 't" so:
i can' t save the option both with your plugin that with another contact form plugin Contact Form 7.
I've tried before with your plug in, than disabled your plug in and clered your code in contact page and installing the other plug in mentioned.
Did you ever seen about save option problem?
maybe caused by incompatibility with other plugins?
Cheers
and thanks for your support
you have installed tcf and cf7. and now you can't save my options? ok, that's strange. i will take a look to cf7 and made a test. give me some days.
No...the problem is: already yesterday in the afternonn o could not save your page option ( infinitive loop) so later i triey more.
See that no saving was possible i disinstalled your and i tryied with another contact form plug in: same problems with saving process.
So i think to contact you about if you ever listening about saving options problems of such kind of pligin:-)
Cheers
ok, both plugins - same issue? then your blog have a problem, not the plugins. make a clear new wordpress install. best way.
Least but not the last:
maybe some incompatibility with Simplemodal contact form?
Bye bye and sorry for the quantity of comments:-)
no, don't know this plugin.
hi..
i like your tiny contact form widget, i have had no problems with its use.. i do have one issue.. its too wide for my sidebar.. please take a look, http://www.broadwayweststudio.com . its on the lower right, how do i adjust the box width? thanks for your time.
kristina
Hi Kristina,
you have to change the Style like this:
Maybe only the last line, because only your textarea is to big.
I am a complete beginner in WordPress. I have the Headway theme installed.
I've placed your form on a page, but the submit button is next to the field where the captcha is.
How can I put a line break in so that the button moves onto its own line? I tried using Firebug and inserting the html code for line break into the html, but it won't let me save it.
Am I doing something wrong?
Many thanks
James
Hello James,
see the style sheet sample above.
.contactform input { display:block;is your friend.Hi Tom,
Love the contact form, just trying to implement it, but I want to be able to put multiple "TO" addresses. Is there any way of making this work or is it not possible with Tiny Contact Form?
Chris
Hi Chris,
just type all emails in the To-field like email1;email2;email3
Doesn't seem to allow me to do that... Is there a way of changing it directly in the PHP instead, as I will be the one setting the emails? If i can just force the PHP to go to specific addresses instead that would be possibly a way around the issue.
worked it out.. its more email1,email2,email3 not with the ; but with just a comma.
Thanks for your help Tom :D
Oh, ofcourse. My bad hand pressed the wrong key.
Hey,
Loading the css only on the contact form page would be cool
Cleaner & lighter code for our website
Well I forgot, a condition : if we don't use the widget thing
I know, i know, is on my todo list.
[...] Tiny Contact Form [...]
[...] + Tiny Contact Form [...]
[...] + Tiny Contact Form [...]
Are you creating one for WordPress 3.0?
Version 0.6 works in WP 3.0 too.
I need the contact form on different pages, but I can only use one instance of the widget.
Using [TINY-CONTACT-FORM] in a text widget doesn't work and I'd rather not hard code on the theme.
Is there a method, so I can duplicate the widget button?
Thanks,
Lars
Shortcodes dosn't work in widgest per default. But adding
add_filter('widget_text', 'do_shortcode');to your functions.php can help. Not tested.More then one form wigets will possible in next version. I hope.
add_filter('widget_text', 'do_shortcode'); works nicely in WP 3.01.
Problem solved, thanks!
Hallo Tom,
ich habe lange Kontaktformular installiert und finde sehr gut.
Aber ab und zu bekommen ich auch Spammail durch Kontaktformular. Wie kann ich dieses Problem lösen.
Vielen Dank!
Lijing
Das Captcha kann Spam erschweren, aber um ihn ganz los zu werden, müsstest du das Kontaktformular abschalten.
Ich arbeite aber auch gerade an einem Update. Das wird ein zusätzliches Feld enthalten, in dem du den Inhalt vorgeben kannst, der eingetragen werden muss. Also Captcha-Alternative.
Dank für die Antwort.
zusatzlich feld(z.B.Captcha) wurd ich nicht so gerne nehmen. Weil das kann sein ein paar Kunden verloren werden durch kompliziertes Kontaktformular. Gibt es andere Möglichkeit den Spamm ausfiltert?
lg Lijing
Du benutzt das Captcha gar nicht? Dann ist Spam ja normal, auch wenn ich eine andere Funktion mit versteckten Feldern eingebaut habe. Ist eben nicht vollkommen.
Und das Mathe-Captcha sollten alle ohne Probleme lösen können.
ok. Alles klar!
Wenn Update fertig ist, ich werde gerne probieren. Vielen Dank!
Das Mathe-Captcha ist bereits in der aktuellen Version. Muss in den Einstellungen nur aktiviert werden.
Hello Tom, I administrate one sites and use on them your tiny contact form, but the sites are in two languages, so I need change text in label for="tcf-msg" and in input type="submit". How I can change it? Is it possible? Thank You.
If you empty the Submit button in settings, the visitor will see it in his browser language.
The input field labels are in the translation. You can change the code to use hard codes labels like "your words".
This is a great plugin which I am using on many sites.
For the first time i am using the widget.
How can I change the background color and font color of widget title ?
In your theme style.css. Look for sidebar and h2 or likewise. The layout normally is the same for all widget.
[...] Tiny Contact Form [...]