some buttons not working for front end users
-
Hi – Some of my buttons are not “working” for my front end users (non-admin users).
This is in BBPress.
The following buttons display “raw code” for the formatting when a user makes a post in the forums:
align left
align center
align right
font family
font size
underline
text color
background color (for text)Bold, italic, strikethrough, bullet list, numbered list, link, smiley faces, preview, toggle, special characters, undo, redo clear formatting & print are working ok.
Also – all buttons are working fine in my other areas (like Sabai directory) for front end users – just BBPress?
I tried inserting some code provided to me by an admin BBPress Forums, but it caused my site to go all white. I had to remove it. I have not received a response from BBpress about that. I was hoping you might have run across this before & possibly provide insight to a remedy.
Thank you for any assistance you can provide.
Code BBPress provided following:
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
function ntwb_bbpress_custom_kses_allowed_tags() {
return array(
// Links
'a' => array(
'class' => true,
'href' => true,
'title' => true,
'rel' => true,
'class' => true,
'target' => true,
),
// Quotes
'blockquote' => array(
'cite' => true,
),// Div
'div' => array(
'class' => true,
),// Span
'span' => array(
'class' => true,
'style' => true,
),// Paragraph
'p' => array(
'class' => true,
'style' => true,
),// Code
'code' => array(),
'pre' => array(
'class' => true,
),
// 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,
),
// Tables
'table' => array(
'align' => true,
'bgcolor' => true,
'border' => true,
),
'tbody' => array(
'align' => true,
'valign' => true,
),
'td' => array(
'align' => true,
'valign' => true,
),
'tfoot' => array(
'align' => true,
'valign' => true,
),
'th' => array(
'align' => true,
'valign' => true,
),
'thead' => array(
'align' => true,
'valign' => true,
),
'tr' => array(
'align' => true,
'valign' => true,
)
);
- The topic ‘some buttons not working for front end users’ is closed to new replies.