modifying send e-mail plugin (4 posts)

  • Profile picture of Jake Jake said 1 year, 10 months ago:

    i’m using the Send E-mail plugin in the sidebar widget on this site.

    I’d like to edit it so that the “Name (required)” and “E-mail (required)” appears within the actual editable boxes that they correspond to, just like http:// shows in the “Website” field.

    Here’s the code for this plugin.

    please advise how I would go about doing this. php is not my strong suite. thanks!

    or if there’s another Free widget contact form plugin you know of that does this automatically, i’d love to know about it. thanks!

  • Profile picture of Darin Roman Darin Roman said 1 year, 10 months ago:

    Jake,

    I’m not sure why you’d do this unless you also wish to remove the labels underneath the fields. This leaves it to your visitors to fully delete or highlight and replace the ‘Name (required)’ and ‘Email (required)’ before sending. Keep in mind, you would loose any changes made to this plugin when updating.

    You should try Contact Form 7. This plugin allows you to easily create customized forms for use throughout your website. You can specify any fields you wish to include, their default values, labels, format the email(s) you will receive, and edit the messages returned to the visitor. You can also add an optional CAPTCHA to avoid spam (Requires: Really Simple CAPTCHA). Each form generates a shortcode that you can place in a page, post or text widget in your sidebar. It also uses AJAX and does not require a page reload when the message is sent.

    It may not seem as easy as simply adding the shortcode provided with ‘Send E-mail’, but I think you’ll find the form editor easy to use and very flexible. Just ask if you need help creating a form.

    Darin

  • Profile picture of Chris Carvey Chris Carvey said 1 year, 10 months ago:

    This is pretty is easy, all you have to do is assign/hard code the default value of the field itself. Looking at the code really quickly that “http://” may be getting pulled in from a function/variable he assigning behaviors to elsewhere. But this is simple html form stuff.

    I suggest you go even further and use something like this: http://www.jason-palmer.com/2008/08/jquery-plugin-form-field-default-value/

  • Profile picture of Jake Jake said 1 year, 10 months ago:

    thanks guys. i ended up using cformsII. does everything i needed and plenty more! http://www.deliciousdays.com/cforms-plugin/