Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,926 through 4,950 (of 14,333 total)
  • @robin-w

    Moderator

    html is not allowed for security purposes, but if you want to enable all or some then

    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,
    		),
    		
    		// 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,
    		)
    	);
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @robin-w

    Moderator

    @robin-w

    Moderator

    great – thanks for posting the solution which will help others

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    ok, not sure what to suggest next

    @robin-w

    Moderator

    have you followed step 1 in the first thread on changing date format ?

    @robin-w

    Moderator
    add_filter ('bbp_before_has_search_results_parse_args' , 'rew_topics_only') ;
    
    function rew_topics_only ($args) {
    	$args['post_type'] = array (bbp_get_topic_post_type(), bbp_get_forum_post_type()) ;
    return $args ;
    }

    @robin-w

    Moderator

    this code should do that

    add_filter ('bbp_before_has_search_results_parse_args' , 'rew_topics_only') ;
    
    function rew_topics_only ($args) {
    	$args['post_type'] = bbp_get_topic_post_type() ;
    return $args ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @robin-w

    Moderator

    contact me via

    Contact me

    @robin-w

    Moderator

    hmm….let me have a think…I’ll come back

    In reply to: Freshness is way off

    @robin-w

    Moderator

    great !

    In reply to: Freshness is way off

    @robin-w

    Moderator

    try dashboard>tools>forums>repair forums

    and run as needed.

    this may get it back, and then use

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>bug fixes and use that fix.

    @robin-w

    Moderator

    nothing I know of, could be coded, but requires someone with the time to do this

    @robin-w

    Moderator

    @robin-w

    Moderator

    sorry, I don’t understand – can you come back with a series of steps (press this, click that) that lead to the problem

    In reply to: Admin cannot logout

    @robin-w

    Moderator

    hmm… I cannot replicate this and have seen no change in behavior in bbpress that would explain.

    what other bbpress or login related plugins are you using ?

    In reply to: Admin cannot logout

    @robin-w

    Moderator

    you can use

    http://mysite.com/wp-login.php?action=logout

    to logout

    In reply to: Admin cannot logout

    @robin-w

    Moderator

    Thanks – some questions please

    1. ‘the login widget has stopped working’ not sure what you mean by this – which login widget and has it completely stopped working, or what parts don’t work etc.

    2. ‘my login is permanently shown on the site ?!?’ – what is being shown where and to just you or everyone?

    and

    3. where are you trying to log out ?

    @robin-w

    Moderator

    no, the main forum page would not list the topics for a forum. If you only have one forum, then you can use shortcodes to display just that forum, and your forum will then be a list of topics.

    @robin-w

    Moderator

    although not suppprted, I suspect they will both work ok – have you tried them?

    In reply to: bbp_keymaster

    @robin-w

    Moderator

    for clarity the reasons it is left are to do with reinstalling bbpress, which since you have deleted means you can delete the role

    In reply to: bbp_keymaster

    @robin-w

    Moderator

    you can delete it with no problems, but then fact that the role exists will not slow your site downloading, as it is only when you access the backend user that this parameter is accessed in the database.

    In reply to: bbp_keymaster

    @robin-w

    Moderator

    I mean that there are reasons why the role is left, but they are too tedious for me to make the effort to explain them, and you would be bored reading them 🙂

    In reply to: permalinks

    @robin-w

    Moderator

    dashboard>settimngs>forums>forum root slug and untick the
    Prefix all forum content with the Forum Root slug

    In reply to: bbp_keymaster

    @robin-w

    Moderator

    bbpress leaves this behind for reasons I won’t bore you with.

    Without bbpress, the role has nothing it can do, so you can just leave it.

    If you want to get rid of it (and I can understand if you do) then it is just a wordpress role, so see

    How to Delete User Roles from a WordPress Site

Viewing 25 replies - 4,926 through 4,950 (of 14,333 total)