Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,251 through 13,275 (of 14,219 total)
  • @robin-w

    Moderator

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

    @robin-w

    Moderator

    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

    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

    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

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

    seems to work – try it and come back if not

    @robin-w

    Moderator

    @robin-w

    Moderator

    @jbdizzle

    great, so you’re fixed ?

    @robin-w

    Moderator

    maybe a theme or plugin conflict

    try

    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

    Have you tried

    Step by step guide to setting up a bbPress forum – Part 1

    In essence you need a .php from your theme that has a sidebar, and rename this bbpress.php within the root of your theme.

    @robin-w

    Moderator

    bit tied up at the moment, but have you referred it to suffusion, they should be able to give you removal instructions.

    @robin-w

    Moderator

    do you mean dashboard>appearance>edit css ?

    If so, then this is a feature of your particular theme and not common.

    If you mean elsewhere, come back.

    In reply to: Compose message

    @robin-w

    Moderator

    glad to hear !

    @robin-w

    Moderator

    hmmm… presume you’re not running any caching plugins?

    @robin-w

    Moderator

    I suspect that your plugin is trying to restrict who can see what.

    The function that replies uses to do this, if not correctly filtered, only shows the replies not the original topic.

    In essence the plugin needs to do a sub wp-query within the replies function to include both topicss and replies.

    I can’t help further as I don’t know what functions the plugin uses.

    @robin-w

    Moderator

    ok I would suspect that it’s related to this plugin, you could prove this by deactivating the plugin on your test site (or live site briefly if you don’t have a test site)

    As this is a paid plugin, you should then contact them for support.

    come back and let us know what they say.

    @robin-w

    Moderator

    ‘I am using bbpress forum for Members Only’

    do you mean

    Add bbPress Members Only Forums to Your WordPress Membership Site

    or another plugin?

    In reply to: Theme problem

    @robin-w

    Moderator

    ‘did you actually do the functions 1 & 2? means ???’ sorry I meant had you done the checks, but on a re-read yes you have !

    @robin-w

    Moderator

    presume you mean the topic form?

    If so, then

    wp-content/plugins/bbpress/templates/default/bbpress

    and look for the templates that deal with forms, starting with form-topic.php

    Basically in the root of your theme/child-theme, create a directory called bbpress ie

    wp-content/themes/your-theme-name/bbpress

    and copy across any templates you wish to alter. bbPress will then use them instead.

    you’ll also find some js scripts in the default folders.

    In reply to: Compose message

    @robin-w

    Moderator

    this looks like more of a buddypress issue, as bbPress doesn’t have messages, or do you have a plugin, in which case it’s that 🙂

    In reply to: Theme problem

    @robin-w

    Moderator

    sorry, but did you actually do the functions 1 & 2?

    Since reinstalling (which would add those files back if missing) has not fixed, we have to presume that those files are there (have you looked?), and that something is preventing access, hense try the pugins and themes.

    If you have trued, but with no success, come back

    In reply to: Theme problem

    @robin-w

    Moderator

    ok, lets work out where the problem lies.

    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.

    then come back

    @robin-w

    Moderator

    additionally or alternately you might see a bbpress.php file in there ie

    /home4/kingdox1/public_html/demigodlegion/wp-content/themes/arcade-basic/bbpress.php

    If so, again copy this to your pc, and then delete it on the server.

    @robin-w

    Moderator

    Ok, so suffusion has added some specific files in your theme, which bbPress is now using NOT changed your forum entries.

    So I think all you need to do is go into

    to /home4/kingdox1/public_html/demigodlegion/wp-content/themes/arcade-basic and you should see a bbpress folder

    ie
    /home4/kingdox1/public_html/demigodlegion/wp-content/themes/arcade-basic/bbpress

    copy these files to your pc as a backup, and then just delete this folder. bbPress will revert to using the default ones, and you should be working.

    @robin-w

    Moderator

    For individual users, they can subscribe to individual posts or to individual forums.

    For admin, I use bbpress notify plugin, although you can use this for everyone as well, but lots of email messages can annoy some users, so I only use for moderators and above.

    @robin-w

    Moderator

    The problem here is that you want automatic registration, but a private forum, ie only people who are authorised can automatically join. Yes?

    On-going, I presume that you’ll only have a few course participants joining at any time time, so a manual process would be quite easy. I do all mine manually, and it takes me less than one minute to add a user to my forum.

    I can only suggest you look at some membership plugins to see if these can help.

Viewing 25 replies - 13,251 through 13,275 (of 14,219 total)