The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Kat
    Posted 3 years 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:

    	echo stripslashes(nl2br(plus_textarea_info()));}

    Also on line 102, replace:
    echo plus_textarea_info2()

    with this:

    	echo stripslashes(nl2br(plus_textarea_info2()));}

    Hope that helps someone else!!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Group Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic