Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
In reply to: Stealing bbPress toolbar
any hope?
In reply to: Stealing bbPress toolbarI’ve found this easaly “header-subnav.php”
<?php if ( !is_front_page() ) : ?> <div id="subnav"><div id="subnav-inner"> <ul id="nav-secondary" class="menu"> <?php if ( is_user_logged_in() && function_exists( 'bbp_forums_url' ) ) : ?> <li><a href="<?php bbp_forums_url( '/new-topic' ); ?>"><?php esc_html_e( 'Create New Topic', 'bborg' ); ?></a></li> <?php endif; ?> </ul> <ul id="nav-user" class="menu"> <?php if ( ! is_user_logged_in() ) : ?> <li><a href="<?php echo wp_login_url(); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li> <li><a href="<?php echo wp_registration_url(); ?>"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li> <?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?> <li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Favorites', 'bborg' ); ?></a></li> <li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Subscriptions', 'bborg' ); ?></a></li> <?php endif; ?> </ul> </div></div> <hr class="hidden" /> <?php endif;
In reply to: Stealing bbPress toolbarThe tweaked default WordPress toolbar.
In reply to: Stealing bbPress toolbarThanks, but I meant the toolbar at the top, below the green bar where visitors see “anonymous” and members see their account with a submenu containing information about their account.
In reply to: Allow only TinyCEM HTMLI had been using that one, now I’m switching to the latest version of tinyMCE (https://www.tiny.cloud/get-tiny/) and I’ve been trying to make it do the same (enable HTML for it only).
I’ve tried this function with no succeeds
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( 'a' => array( 'href' => true, 'target' => true, 'rel' => true, 'title' => true ), 'abbr' => array(), 'acronym' => array(), 'address' => array(), 'applet' => array(), 'area' => array( 'shape' => true, 'coords' => true, 'href' => true, 'alt' => true ), 'article' => array(), 'aside' => array(), 'audio' => array( 'src' => true, 'controls' => true ), 'b' => array(), 'base' => array( 'href' => true, 'target' => true ), 'basefont' => array(), 'bdi' => array(), 'bdo' => array(), 'big' => array(), 'blockquote' => array( 'cite' => true ), 'body' => array(), 'br' => array(), 'button' => array( 'type' => true, 'name' => true, 'value' => true ), 'canvas' => array( 'width' => true, 'height' => true ), 'caption' => array(), 'center' => array(), 'cite' => array(), 'code' => array(), 'col' => array( 'span' => true ), 'colgroup' => array( 'span' => true ), 'data' => array( 'value' => true ), 'datalist' => array(), 'dd' => array(), 'del' => array( 'cite' => true ), 'details' => array(), 'dfn' => array(), 'dialog' => array(), 'dir' => array(), 'div' => array(), 'dl' => array(), 'dt' => array(), 'em' => array(), 'embed' => array( 'src' => true, 'type' => true ), 'fieldset' => array(), 'figcaption' => array(), 'figure' => array(), 'font' => array(), 'footer' => array(), 'form' => array( 'action' => true, 'method' => true ), 'frame' => array(), 'frameset' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'head' => array(), 'header' => array(), 'hr' => array(), 'html' => array(), 'i' => array(), 'iframe' => array( 'src' => true, 'width' => true, 'height' => true ), 'img' => array( 'src' => true, 'alt' => true, 'width' => true, 'height' => true ), 'input' => array( 'type' => true, 'name' => true, 'value' => true ), 'ins' => array( 'cite' => true ), 'kbd' => array(), 'label' => array( 'for' => true ), 'legend' => array(), 'li' => array(), 'link' => array( 'href' => true, 'rel' => true, 'type' => true ), 'main' => array(), 'map' => array( 'name' => true ), 'mark' => array(), 'menu' => array(), 'menuitem' => array(), 'meta' => array( 'name' => true, 'content' => true ), 'meter' => array(), 'nav' => array(), 'noframes' => array(), 'noscript' => array(), 'object' => array( 'data' => true, 'type' => true, 'width' => true, 'height' => true ), 'ol' => array(), 'optgroup' => array( 'label' => true ), 'option' => array( 'value' => true ), 'output' => array(), 'a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'svg', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', ); }
Viewing 5 replies - 1 through 5 (of 5 total)