Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,176 through 7,200 (of 8,163 total)

  • Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    not sure if this will do what you want?

    https://wordpress.org/plugins/bbpress-post-topics/

    In reply to: New replies first

    Robin W
    Moderator

    @robin-w

    @slprof

    If you want to try just the latest reply, then try

    function change_reply_order() {
    $args['order'] = 'DESC';
    $args['posts_per_page'] = '1';
    return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    

    But I suspect it will have some weird effects on the site, and of course you’ll never see anything but the latest post, so if pupil a posts and a minute laters pupil b, then you’ll never see pupil a’s.

    or do you mean that for each topic, pupil a would be pupil a’s reply, pupil b would see pupils b’s reply etc.?

    In reply to: New replies first

    Robin W
    Moderator

    @robin-w

    @slprof

    Try putting this in your functions file

    function change_reply_order() {
    $args['order'] = 'DESC';
     return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    

    I haven’t tested, so come back if it doesn’t work, it should do topic then replies with latest at top


    Robin W
    Moderator

    @robin-w

    bbpress should have no problems with any database prefix that wordpress accepts, it just rides on this


    Robin W
    Moderator

    @robin-w

    ” I have a copy of the site running the same plugins but with WP3.8.2 and it’s OK.”

    Exactly it may be another plugin that’s having a problem with 3.9 – it may not, but you need to eliminate


    Robin W
    Moderator

    @robin-w

    could be plugin or theme related

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    In reply to: Theme Recommendation

    Robin W
    Moderator

    @robin-w

    bbpress largely picks up on your wordpress theme, use any of thevdefault ones and you’ll get a great look.

    I use twentyten very successfully.

    and look at the set up guides

    Codex


    Robin W
    Moderator

    @robin-w

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    In reply to: bbcode

    Robin W
    Moderator

    @robin-w

    if you mean the bbpress shortcodes, they’re held in

    includes/common/shortcodes.php

    at the simplest just comment out line 109

    ie change to

    //add_shortcode( $code, $function );
    

    bbpress upgrades will overwrite this, so keep a note to change again as bbpress upgrades are issued.


    Robin W
    Moderator

    @robin-w

    May well be a plugin or theme issue

    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, switch to a default theme such as twentytwelve, and see if this fixes.


    Robin W
    Moderator

    @robin-w

    Is this an existing installation that has gone wrong, or a new one that you are just uploading?


    Robin W
    Moderator

    @robin-w

    Thanks for your patience – simple case of link to file missing.

    I have now corrected the plugin.

    can you deactivate, delete and then re- download from same link as before

    bbp Private Groups


    Robin W
    Moderator

    @robin-w

    oops – sorry will take a look and be back shortly !

    In reply to: Forum reply background

    Robin W
    Moderator

    @robin-w

    Try

    #bbpress-forums  input[type='text'], textarea{ 
    background : blue !important ; 
    }
    
    In reply to: change forum sidebar

    Robin W
    Moderator

    @robin-w

    Just spotted you post on the wordpress forum :

    ‘My theme (MH Magazine) has no bbPress template by default, so I copied my full-page-width template and renamed it plugin-bbpress.php. I’ve got the forums page set to this template’

    If this is how you have it currently, then it is a sidebar template from your theme that you need, not a full width page one. With a siderbar theme, then wp-tweaks will pick this up and add the forum one to the page.


    Robin W
    Moderator

    @robin-w

    Ok, I’ve just finished a new plugin called

    bbp Private Groups

    This plugin adds private groups to the forums, allocating users to up to 8 groups, and combinations of forums to those groups, creating multiple closed forums.

    download from

    bbp Private Groups

    Let me know what you think.

    I’ll add this to the wordpress plugin repository in the next few days


    Robin W
    Moderator

    @robin-w

    Ok, I’ve just finished a new plugin called

    bbp Private Groups

    This plugin adds private groups to the forums, allocating users to up to 8 groups, and combinations of forums to those groups, creating multiple closed forums.

    download from

    bbp Private Groups

    Let me know what you think.

    I’ll add this to the wordpress plugin repository in the next few days


    Robin W
    Moderator

    @robin-w

    Ok, I’ve just finished a plugin called ‘bbp Private Groups’

    This plugin adds private groups to the forums, allocating users to up to 8 groups, and combinations of forums to those groups, creating multiple closed forums.

    download from

    bbp Private Groups

    Let me know what you think.

    I’ll add this to the wordpress plugin repository in the next few days


    Robin W
    Moderator

    @robin-w

    Great, do come back if you have any further queries !


    Robin W
    Moderator

    @robin-w

    ok,

    so create a file called bbpress-functons.php as above and in to this put

    <?php
    //code to add tutor role 
    
    function add_tutor_role( $bbp_roles )
    {
    	/* Add a role called tutor */
    	$bbp_roles['bbp_tutor'] = array(
    		'name' => 'Tutor',
    		'capabilities' => custom_capabilities( 'bbp_tutor' )
    		);
    	return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_tutor_role', 1 );
    
    function tutor_role_caps_filter( $caps, $role )
    {
    	/* Only filter for roles we are interested in! */
    	if( $role == 'bbp_tutor' )
    		$caps = custom_capabilities( $role );
     
    	return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'tutor_role_caps_filter', 10, 2 );
    
    function custom_capabilities( $role )
    {
    	switch ( $role )
    	{
    		 
    		/* Capabilities for 'tutor' role */
    		case 'bbp_tutor':
    			return array(
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    				'moderate'              => false,
    				'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'    => false,
     
    				// Topic caps
    				'publish_topics'        => true,
    				'edit_topics'           => true,
    				'edit_others_topics'    => false,
    				'delete_topics'         => false,
    				'delete_others_topics'  => false,
    				'read_private_topics'   => true,
     
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
    				'edit_others_replies'   => false,
    				'delete_replies'        => false,
    				'delete_others_replies' => false,
    				'read_private_replies'  => true,
     
    				// Topic tag caps
    				'manage_topic_tags'     => false,
    				'edit_topic_tags'       => false,
    				'delete_topic_tags'     => false,
    				'assign_topic_tags'     => true,
    			);
    			break;
     
    		default :
    			return $role;
    	}
    }
    
    

    This sets up a role called ‘tutor’ – just change this name everywhere to the one you want, and then edit the capabilities.

    the default capabilities for each role are :

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    you’ll probably want to make delete topics and delete replies true


    Robin W
    Moderator

    @robin-w

    do you know how to add some code to your functions file – if I gave you the code?

    In reply to: Sidebar formatting

    Robin W
    Moderator

    @robin-w

    oh and sorry – see

    Step by step guide to setting up a bbPress forum – part 2

    for how to add this -several options.

    In reply to: Sidebar formatting

    Robin W
    Moderator

    @robin-w

    .bbp-remember-me {
    white-space: nowrap;
    }

    seems to work – try it and come back if not


    Robin W
    Moderator

    @robin-w

Viewing 25 replies - 7,176 through 7,200 (of 8,163 total)