Search Results for 'code'
-
Search Results
-
Topic: CSS bug?
Re: http://powershell.org/wp/forums/users/dlwyatt/replies/
You’ll notice that the container for the page content is getting a 0px width and massive height calculated. The CSS style #bbp-forums has an “overflow: hidden;” style. Removing that style element fixes the display – but I’d like some confirmation that this is indeed a bug? The content in this specific case has a lot of PRE/CODE styling, so I’m not sure if there’s some weird interaction going on that I just can’t figure out.
The container in question is a ul#topic-0-replies, classed with .forums and .bbp-replies. The overflow attribute I’m referring to is coming right from the top of bbpress.css.
Note that I’m using the default styling/theming for BBP.
Topic: tags allowed in bbpress
I use a plugin to display pictures in lightbox (plugin name litebox).
I have modified bbpress post tool bar, to include the class tag to the url.
I also find the way to allow class tag for images and link in bbpress but i have to modify core files : \bbpress\includes\common\formatting.phpi already googled a way to override this function in my theme function.php
and what i did is :
function my_filter_bbpress_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => array(), 'title' => array(), 'rel' => array() ), // Quotes 'blockquote' => array( 'cite' => array() ), // Code 'code' => array(), 'pre' => array(), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ) ); } add_filter( 'bbp_kses_allowed_tags', 'my_filter_bbpress_allowed_tags' );But today i updated to bbpress 2.5 and i saw that it didin’t work :/
What is the correct function to allow this without hacking the bbpress core ?
Could you in the future add a class tag allowed for link and images ?I have a bbPress forum running that has been successfully running for a little over a month now on a WP blog. Average usage is about 20 posts a day.
In the last few days I noticed that the Visual tab is not available for replies, only the text tab. I have tried to switch to the visual tab, but it is not available. This would not be so annoying except all posts are emailed to all admins and the replies are full of HTML code. I understand what it is, but the other moderators do not understand it.
So the emails look like this:
“worked closely with one of the researchers on this paper <span style=”line-height: 1.428571429;”>(both did their Internal medicine specials together at vet university)</span><span style=”line-height: 1.428571429;”> &”I hope someone is able to help. We are a busy forum helping very sick dogs and there probably have been 50 replies in the last few hours.
Thank you, Matoca