WordPress.org

Support

Support » Themes and Templates » Contact form?

Contact form?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Why not just use a mailto link with a twist. A bit of javascript and your email address is stealthed from bots, but fully clickable to humans. Add this snippet in the <head> section of index.php:


    <script language="javascript" type="text/javascript">
    <!--
    function WriteMailLink(thelink, user, domain, subject) {
    document.write("<a class="contact" href="mai");
    document.write("lto:"+user+"@");
    document.write(domain);
    if ( subject.length > 0 ) document.write("?subject="+subject);
    document.write("">"+thelink+"<"+"/a>");
    }
    //-->
    </script>

    In the location you wish a clickable mailto link, put in this:

    <script language="javascript" type="text/javascript">
    <!--
    WriteMailLink("Link Text","name-part","domain-part.com","optional subject");
    //-->
    </script>

    To clarify, your email address is broken into two parts: name-part@domain-part.com.

    Hopefully I put encoded everything properly so it won’t be mangled. A preview button would be nice.

    That would be great to put on top of the form, but there are users who access my site from a computer where the mail client isn’t specific to them (office environment). For those users, I still need a contact form.

    Mark (podz)
    Support Maven

    @podz

    This does the trick for me:
    http://jimsun.linxnet.com/SCForm.html

    Hey, Ryan. Interesting plugin. I’m going to give it a try.

    Very nice site too, btw. However, you might want to consider linking the graphic at the top of your page to your home page for easier navigation.

    aformmail

    I’ve been trying for the past couple weeks to get a decent contact form working properlu on my site.

    Looking forward to trying your plugin out as well.

    Thanks for creating this kind of plugin.

    fuzzylizard
    Member

    @fuzzylizard

    Cool plugin, works great. Nice work 🙂

    Ryan — This plugin sounds like it’s exactly what I’m looking for, but…I’m getting a 404 error at the ryanduff.net URI and a “This page cannot be displayed” message at WordPress support URL.

    Halp?

    Peter Westwood
    WordPress Lead Developer

    @westi

    Ryans put the wrong uri for his plugin up.

    The correct uri is: http://ryanduff.net/projects/wp-contactform/

    This alternate uri for the support forum link should work ok: http://wordpress.org/support/topic/22318

    westi

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Contact form?’ is closed to new replies.