Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 9,901 through 9,925 (of 14,333 total)
  • @robin-w

    Moderator

    no problem !

    @robin-w

    Moderator

    Great – thanks for posting back !

    @robin-w

    Moderator

    ok, without having time to do all the work, I’ve quickly edited this bit of code – it may need debugging, but should get you there with some playing

    add_filter( 'wp_nav_menu_items', 'rew_edit_profile', 10,2 );
    
    function rew_edit_profile ($menu, $args) { 
    global $bsp_login ;		
    if (!is_user_logged_in())
    		return $menu;
    	//if primary set and not primary then return
    	if ($args->theme_location !== 'primary' )   {
    		return $menu ;
    	}
    	
    	else
    		$current_user = wp_get_current_user();
    		$user=$current_user->user_nicename  ;
    		$user_slug =  get_option( '_bbp_user_slug' ) ;
    			if (get_option( '_bbp_include_root' ) == true  ) {	
    			$forum_slug = get_option( '_bbp_root_slug' ) ;
    			$slug = $forum_slug.'/'.$user_slug.'/' ;
    			}
    			else {
    			$slug=$user_slug . '/' ;
    			}
    			//set link to welcome xxx
    			$edit_profile= 'Welcome!'. esc_html( $current_user->user_firstname ) ;
    						
    			//get url
    			$url = get_site_url(); 
    			$profilelink = '<li> <a href="'. $url .'/' .$slug. $user . '/edit">'.$edit_profile.'</a></li>';
    			
    
    			
    		$menu = $menu . $profilelink;
    		return apply_filters( 'rew_edit_profile', $menu );
    }

    @robin-w

    Moderator

    So are you trying to get it to say logout, or are you trying to get it to say ‘welcome’…

    @robin-w

    Moderator

    seems to be too hard a question !

    For whatever reasons 2.6 doesn’t seem to be progressing, and no-one seems able to tell us why. JJJ seems to have disappeared from the authors of bbpress.

    I think you can have two attitudes to this.

    1. That bbpress id dead, and going no-where
    2. that bbpress is mature, and that there are lots of plugins out there which add the functionality that you need, built on a stable solid base.

    Given FB, Twitter, Instagram, pinterest etc. it is easy to see forums as yesterday’s technology, but the content in the list above seems to be transient, with no sorting, logic or permanence. Read and forget.

    With forums you get logic, easy to read threads, and search capability – so I think forums still have their place.

    So if you are like me, you have bbpress, but also have several other plugins (including my own published ones) that give my forums the functionality they need.

    so go into wordpress plugins and search for both bbp and bbpress to see what is available.

    @robin-w

    Moderator

    without knowing what that looks like – I suspect you won’t get a response

    Can you post a link to a screenshot of what the issue is?

    @robin-w

    Moderator

    this depends on what you mean by ‘change color’ – can you post a link to your site and say what part you would like to be what color

    @robin-w

    Moderator

    you can use the sidebar that your forum page is displaying – if it is showing one then read the rest of this, if not then come back !

    If you want specific items for bbpress and maybe others on other pages, then add https://en-gb.wordpress.org/plugins/widget-logic/

    and then use

    is_bbpress() as a condition for widgets to be shown and !is_bbpress() for widgets that you don’t want on forum pages, but do on others.

    @robin-w

    Moderator

    @omarsammour Unfortunately @jslom didn’t post the solution, maybe he will see this and come to our help.

    Whilst my knowledge has improved, and given enough time I could probably work out an answer – I am fully tied up in other work at the moment – sorry 🙁

    @robin-w

    Moderator

    @robin-w

    Moderator

    That’s fine – just wanted to clarify that this is just one person’s opinion.

    Also we are probably going to split this into a new topic

    Not sure who the ‘we’ is in this sentence?

    @robin-w

    Moderator

    @Robkk

    Its not recommended during a setup of bbPress.

    BY whom???????????????????????????????

    @robin-w

    Moderator

    @Robkk

    I usually do not say use a “forums page” as it is not recommended during setup

    1. Can’t see where it is not recommended -Indeed in dashboard>settings>forums it says “Customise your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.”

    2. There’s a massive difference between recommending something and saying ‘it is not recommended’ As far as I know bbPress is just neutral – either works fine.

    @robin-w

    Moderator

    ok, style pack version 3.2.7 should fix this

    Let me know either way !

    @robin-w

    Moderator

    I still can’t seem to mod the caps of Participant role.

    ok, I’ll bite once more – can you post EXACTLY what you have as code to fix that, and tell me where you have put it.

    and set the forums I wish to be private, to PUBLIC (ironic and backwards that is)

    Private groups is my plugin, and yes agree gthat public seems wrong, but I can only work with what bbpress gives me, and use code to improve !

    @robin-w

    Moderator

    Great – I can see the issue – I’ll fix it shortly !

    @robin-w

    Moderator

    if topics are set as published then my ‘fix’ won’t help.

    @robin-w

    Moderator

    sorry at this point I am backing out.

    Just spending too much time on this and sorry I’ve run out of options – clearly something is wrong.

    In reply to: text visibility

    @robin-w

    Moderator

    That’s IE for you !

    For some reason that I can’t immediately see, IE is ignoring the background setting, so is just saying it has no background so showing white

    I’d suggest you try changing line 999 on dark.css from

    /*media all*/
    media screen #bbpress-forums fieldset.bbp-form p, #bbpress-forums fieldset.bbp-form textarea, #bbpress-forums fieldset.bbp-form select, #bbpress-forums fieldset.bbp-form input {
        background: rgba(18, 21, 24, 1);
        color: #fff !important;
        border: 0px !important;
    }

    to

    /*media all*/
    media screen #bbpress-forums fieldset.bbp-form p, #bbpress-forums fieldset.bbp-form textarea, #bbpress-forums fieldset.bbp-form select, #bbpress-forums fieldset.bbp-form input {
        background: rgba(18, 21, 24, 1) !important;
        color: #fff !important;
        border: 0px !important;
    }

    It may or may not work !

    @robin-w

    Moderator

    ok, can you confirm that you are using the alternate template in style-pack>forum templates?

    @robin-w

    Moderator

    If you are still using my style pack, then I suspect you haven’t got item 3 in forums index styling set.

    3 should set the heading, and 5 the links to subjects

    @robin-w

    Moderator

    ok, I just did the following test.

    Forum private, topic public
    participant can read

    Forum private, topic private
    participant cannot read

    The following code then added :

    add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
     
    function custom_capabilities( $role )  {
        switch ( $role )
        { 
            /* Capabilities for 'participant' role */
            case bbp_get_participant_role() :
                return array(
                    // Primary caps
    				// 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;
        }
    }
    

    Forum private, topic private
    participant can read !

    So the code works on my test site.

    Can you duplicate this and come back with results?

    @robin-w

    Moderator

    so can you confirm that your topics are set to private?

    dashboard>topics>any topic>edit and see its published status

    and that you suspect (know?) that this is because of ‘repair forums’?

    @robin-w

    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin 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, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    ok, so you need to determine if it is the is_bbpress that is the issue. If you just have the other code does it work – ie is the issue with the other code or the conditional?

Viewing 25 replies - 9,901 through 9,925 (of 14,333 total)