Robin W (@robin-w)

Forum Replies Created

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

    Moderator

    sorry giving up – I get This is a private group and you must request group membership in order to join.

    Sorry I have only so long to help people

    @robin-w

    Moderator

    site still requires login

    @robin-w

    Moderator

    you can never guarantee that every plugin will work with every other plugin or combination of plugins and settings.

    suggest you :

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    In reply to: Error in forum preview

    @robin-w

    Moderator

    what do you mean by ‘forum preview from wp’ ?

    @robin-w

    Moderator

    ok, that would require some custom programming to create

    In reply to: new topic issues

    @robin-w

    Moderator

    users can create new topics in individual forums, but not in the forum index

    @robin-w

    Moderator

    The message in the .po is

    ‘This user…’

    but in your example it is

    ‘you are…’

    The code should be translated

    but you can just put this in your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'You are not currently subscribed to any forums' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    and change ‘new text’ to whatever it should say

    @robin-w

    Moderator

    sorry I don’t have time to install your theme to my test site.

    @robin-w

    Moderator

    just put

    [bbp-forum-index]

    In reply to: Users import

    @robin-w

    Moderator

    Not sure you can, and since users are allocated wordpress ID’s during import, which then link to the topics and replies, then a 2 stage import would not know which author to apply to which topic.

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    This code will limit the topic title to 80 or whatever number you set $length to

    Put it in your child theme functions.php file

    add_filter ('bbp_new_topic_pre_title' , 'rew_limit_topic_length' ) ;
    add_filter ('bbp_edit_topic_pre_title' , 'rew_limit_topic_length' ) ;
    
    function rew_limit_topic_length  ($topic_title) {
    	$length = 80 ;
    	if (strlen($topic_title) > $length) {
    		$topic_title = substr($topic_title, 0, $length);
    	}
    return $topic_title ;
    }

    @robin-w

    Moderator

    so they seem to be saying that their plugin won’t let you change it.

    not sure I can help further without access, and that’s beyond free help

    @robin-w

    Moderator

    unfortunately it isn’t enough. Normally the title is just Forum, so without being able to examine a browser to see where this is coming from, I ma not able to help.

    It may be your theme is doing this.

    @robin-w

    Moderator

    The only solution I found was 8 years old

    may well still be valid – link to this please

    @robin-w

    Moderator

    can you say which shortcode(s) you are using on that page

    @robin-w

    Moderator

    my style pack plugin has a latest activity widget that lets you display the above

    bbp style pack

    @robin-w

    Moderator

    The 2nd function assumes that you only have the default roles.

    Put this first and it should work ie

    //BBpress Rename Roles //
         /* BBPress Renaming Roles */
        add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' , 1);
        function ntwb_bbpress_custom_role_names() {
        return array(
        // Keymaster
        bbp_get_keymaster_role() => array(
        'name' => 'Administrator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
        ),
        // Moderator
        bbp_get_moderator_role() => array(
        'name' => 'Moderator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
        ),
        // Participant
        bbp_get_participant_role() => array(
        'name' => 'Member',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
        ),
        // Spectator
        bbp_get_spectator_role() => array(
        'name' => 'Spectator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
        ),
        // Blocked
        bbp_get_blocked_role() => array(
        'name' => 'Blocked',
        'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
        ));}
    //BBpress Rename Roles End //
    
    //BBpress Custom Roles // 
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called tutor */
        $bbp_roles['bbp_lead'] = array(
            'name' => 'Community Lead',
            'capabilities' => custom_capabilities( 'bbp_lead' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_lead' )
            $caps = custom_capabilities( $role );
     
        return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    function custom_capabilities( $role )
    {
        switch ( $role )
        {
     
            /* Capabilities for 'tutor' role */
            case 'bbp_lead':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => true,
                    'throttle'              => false,
                    'view_trash'            => false,
     
                    // Forum caps
                    'publish_forums'        => false,
                    'edit_forums'           => false,
                    'edit_others_forums'    => false,
                    'delete_forums'         => false,
                    'delete_others_forums'  => false,
                    'read_private_forums'   => true,
                    'read_hidden_forums'    => true,
     
                    // Topic caps
                    'publish_topics'        => true,
                    'edit_topics'           => true,
                    'edit_others_topics'    => true,
                    'delete_topics'         => true,
                    'delete_others_topics'  => true,
                    'read_private_topics'   => true,
     
                    // Reply caps
                    'publish_replies'       => true,
                    'edit_replies'          => true,
                    'edit_others_replies'   => true,
                    'delete_replies'        => true,
                    'delete_others_replies' => true,
                    'read_private_replies'  => true,
     
                    // Topic tag caps
                    'manage_topic_tags'     => true,
                    'edit_topic_tags'       => true,
                    'delete_topic_tags'     => true,
                    'assign_topic_tags'     => true,
                );
     
                break;
     
            default :
                return $role;
        }
    }
    // End BBpress Custom Roles //

    @robin-w

    Moderator

    a link to a site where your desired layout is shown would be great

    @robin-w

    Moderator

    a link to the site where it is would be great

    @robin-w

    Moderator

    yes, it makes a gravity post and a topic post.

    You could code to remove the latter as part of this function by adding further code, but in all honesty I wouldn’t worry, you’d need to be creating thousands of topics a month to make an impact on performance

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    to only have it for a specified form, you add the form id

    eg

    add_action( 'gform_after_submission_5', 'set_post_content', 10, 2 );

    will make it fire only for gravity form ID 5

    @robin-w

    Moderator

    try this in your custom css

    .container {
    	width: 100%;
    }
    
    .et_pb_widget {
    word-wrap : normal ;
    }
    
    #sidebar .bbp-login-form label {
    	width: auto;
    }

    @robin-w

    Moderator

    I need a link to your site

Viewing 25 replies - 7,926 through 7,950 (of 14,141 total)