Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,351 through 5,375 (of 14,219 total)
  • @robin-w

    Moderator

    This allows any length title

    add_filter( 'bbp_is_title_too_long', 'rew_dont_bother', 10 , 4 ) ;
    
    function rew_dont_bother ($result, $title, $max, $len ){
    	return false ;
    }

    and this reduces content

    //code to limit number of characters in topic contents to 500 characters
    add_filter( 'bbp_new_topic_pre_content', 'rew_limit_topic_content' );
    add_filter( 'bbp_edit_topic_pre_content', 'rew_limit_topic_content' );
    
    function rew_limit_topic_content( $topic_content )
    {
        /* Check for number of characters in topic contents  */
        if (strlen($topic_content) > 500) {
    		$revised_content = substr($topic_content, 0, 500);
    		}	
    	else {
    		$revised_content = $topic_content ;
    	}		
     
        return $revised_content ;
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    @robin-w

    Moderator

    Just had a chance to dig further into this – bbpress will only let a keymaster set another keymaster, so if you’re not a keymaster yourself then by default you can’t do this.

    However this code should allow any admin to set a keymaster

    add_filter( 'bbp_is_user_keymaster', 'rew_allow_keymaster', 10 , 3 );
    
    function rew_allow_keymaster ($retval, $_user_id, $user_id) {
    	if (current_user_can( 'manage_options' )) $retval = true ;
    return $retval ;
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    BUT THEN TAKE IT OUT AFTER you have set up another – as it makes all admins in effect keymasters.

    @robin-w

    Moderator

    can you just tell me if this is a fresh install of 2.6.5, or whether you have upgraded from 2.6.4 recently?

    In reply to: Database broken?

    @robin-w

    Moderator

    contact me via

    Contact me

    and include a link to this thread

    @robin-w

    Moderator

    great – glad you are fixed

    In reply to: Database broken?

    @robin-w

    Moderator

    something seriously wrong !

    @robin-w

    Moderator

    yes it is buddypress

    you can change the text as per below

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.
    ' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    so just put what you want in place of ‘new text’

    Put this in your child theme’s function file – or use

    Code Snippets

    In reply to: Database broken?

    @robin-w

    Moderator

    slow down comes from a flood check function.

    The flood time is set is

    dashboard>settings>forums>flooding.

    for this specific issue, I’d try setting that to a longer period and see if it makes a difference

    Then you can disable this function using

    add_filter( 'bbp_bypass_check_for_flood', 'rew_bypass_flood' ) ;
    
    function rew_bypass_flood () {
    	return true ;
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    @robin-w

    Moderator

    nothing I know of, when testing I just hit the refresh button in my browser

    @robin-w

    Moderator

    great – it may well be buddypress or WordPress.

    If you give me a link, I’ll register and might be able to tell from the code sent to the browser

    In reply to: Database broken?

    @robin-w

    Moderator

    I’m just a bbpress user who helps out here.

    I did not respond to allow and other community members to respond if they wished.

    I appreciated that you are frustrated, but you are using free software, and with that comes volunteer support. I’m not sure why you feel entitled to get someone to fix your problems for free and at a weekend.

    There are 300,000 bbpress sites, and I have been offering support on this forum for 6 years, and have seen most issues that bbpress has had over the years.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @robin-w

    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @robin-w

    Moderator

    I’m not sure where this message is coming from.

    It is not in bbpress, and bbpress just uses WordPress registration.

    It may well be WordPress (I haven’t got auto registration on any of my test sites so can’t say)

    Or are you running and registration plugins, or does your theme do this, or is it WordPress.

    You’ll need to do a bit more digging.

    @robin-w

    Moderator

    from your last post the issue seems to be your email provider only letting you have 400 emails an hour, so changing plugin will not help unless you find one that will throttle sending.

    In reply to: Changelog v 2.6.5?!

    @robin-w

    Moderator

    I’m just a user who helps out here, so best I can offer is

    bbPress 2.6.5 is out!


    @netweb
    – can you help in updating the log?

    In reply to: Database broken?

    @robin-w

    Moderator

    sorry, not sure what support we can offer.

    It is a site specific issue, caused by something, following which you have done many things.

    Beyond free help I’m afraid.

    @robin-w

    Moderator

    that may be true, but it was probably not deleting that user that is behind the problem.

    WordPress and bbpress roles are stored in the options table in the database under wp_user_roles.

    Something (possibly a roles plugin?) has deleted or changed this role.

    If you go into the database and copy what is on there, I may be able to help.

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    hmmm… not sure what to suggest -you must have code that is stopping that role.

    what other plugins are you running?

    @robin-w

    Moderator

    thanks again for posting to help others

    In reply to: Sub Forums Or Topics

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    what notifications please?

    @robin-w

    Moderator

    are you looking at WordPress roles or bbpress roles?

    @robin-w

    Moderator

    I’m not sure why you can attribute keymaster to another admin – are you not an admin also? or what is preventing you?

    @robin-w

    Moderator

    ok, I’m not seeing this issue – can you as a test deactivate bbpress do shortcodes and then retest

Viewing 25 replies - 5,351 through 5,375 (of 14,219 total)