Fix to correctly display break and paragraph in textarea.
-
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!!
https://www.ads-software.com/extend/plugins/buddypress-group-plus/
- The topic ‘Fix to correctly display break and paragraph in textarea.’ is closed to new replies.