I've tried it all, a few times over. Will take another look again in a bit, but if I can't get it working, we'll just forget it. It's probably for the best to control the vertical breaks that users can post anyways. Thanks for all the help _ck_ , you run a quality site.
bbPress ShowcasebbPress Showcase
bbPress Showcase » bbPress Chat
-
Posted 5 months ago #
-
Try doing a view source on the new posting with modified code.
See if it's actually inserting
<p></p><p></p><p></p><p></p>Part of the conflict is that the wordpress api bbpress uses tries to convert
<br />to<p>I might have more time to look at this over the weekend.
Posted 5 months ago # -
Nope, it's inserting it like:
<p>5 more breaks to test</p>
<p>3 some breakage here</p>
<p>1 break</p>
It's surely something deeper within our beat-up coding, we appreciate the help. After tweaking our design a bit more, we've provided more spacing/etc, so fixing our original issue isn't needed now. I'm sure your original solution would probably work otherwise.
Posted 5 months ago # -
hmm, I missed this one in bbpress 1.x
function bb_encodeit( $matches ) { $text = trim($matches[2]); $text = htmlspecialchars($text, ENT_QUOTES); $text = str_replace(array("\r\n", "\r"), "\n", $text); $text = preg_replace("|\n\n\n+|", "\n\n", $text);See that last line? Same problem, so comment it out too.
function.bb-formating.phparound line 55// $text = preg_replace("|\n\n\n+|", "\n\n", $text);Posted 5 months ago # -
Tried it all, several times over. Who knows what the issue is, but I've got an idea that would solve 2 of our issues. Would it be possible to modify your plugin (http://bbpress.org/plugins/topic/admin-can-post-anything/) to allow everyone with a forum account to "by default" (no checkbox), to post youtube videos, soundcloud audio, etc? Not only would this address our spacing issue (it lets people space how they like), but it would allow our audience to share music. Any thoughts?
Posted 5 months ago # -
You cannot allow post-anything for regular users, they could destroy the site with javascript and XSS and other exploits.
Posted 5 months ago #
RSS feed for this topic
Post a reply to “Post Spacing - "Enter" doesn't provide <br>”
You must log in to post.