WordPress.org

Ready to get started?Download WordPress

Forums

sweet Captcha
[resolved] Allow new line and multiple spaces for SweetCaptcha Contact Form (3 posts)

  1. Muhammad Muhaimin
    Member
    Posted 10 months ago #

    When someone uses SweetCaptcha Contact Form, the message is sent with single spaces between each words and no new line.

    So I edit sweetcaptcha-contact-form.php at line 245:

    before:
    $_REQUEST['swtcptcf_contact_message']
    after:
    str_replace( " ", "&nbsp;&nbsp;", str_replace( "\n", "<br />", $_REQUEST['swtcptcf_contact_message'] ) )

    Now sent messages are easier to read, especially about the new line character, people usually input it, like in this forum.

    http://wordpress.org/extend/plugins/sweetcaptcha-revolutionary-free-captcha-service/

  2. Sweet Captcha
    Member
    Plugin Contributor

    Posted 10 months ago #

    Hi Muhammad Muhaimin,

    Wow!!!
    Very cool!

    We are going to share it on our Facebook FAN page(with a credit to you ;-) )

    [ Ad copy deleted ]

    Ryan.

  3. Muhammad Muhaimin
    Member
    Posted 10 months ago #

    Oh no, apparently this forum does not support multiple spaces.
    What I want to type is:
    str_replace( "<double space>", "&nbsp;&nbsp;", ...

Reply

You must log in to post.

About this Plugin

About this Topic