WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Group Plus
Fix to correctly display break and paragraph in textarea. (1 post)

  1. Kat
    Member
    Posted 1 year ago #

    I had a few problems when I would insert text into the textarea box.

    First, when I added a new line (when making breaks and paragraphs), it would not show up after the group was created. It just looked like one continuous line. Example:
    I would insert:
    I like Dogs.
    I like Cats.
    Also, Bunnies are cute.

    and the output:
    I like Dogs. I like Cats. Also, Bunnies are cute.

    Second, there was this backslash that appeared before every apostrophe. Example:
    I would insert: Hey that's mine!
    and the output: Hey that/s mine!

    Here is my solution to solve both:
    In the plugin folder I went to "includes/plus-group-textarea.php"

    On line 47, replace:
    echo plus_textarea_info()

    with this:

    if(get_magic_quotes_gpc()){
    	echo stripslashes(nl2br(plus_textarea_info()));}

    Also on line 102, replace:
    echo plus_textarea_info2()

    with this:

    if(get_magic_quotes_gpc()){
    	echo stripslashes(nl2br(plus_textarea_info2()));}

    Hope that helps someone else!!

    http://wordpress.org/extend/plugins/buddypress-group-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic