Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,801 through 4,825 (of 14,335 total)
  • In reply to: Private forum

    @robin-w

    Moderator

    When you say create a membership form, what do you mean specifically? For example do I create a basic contact form for those who want to join, and then offer to send them their username and password?

    yes.

    When they first log on, they will get the role set up in

    dashboard>settings>forums>roles so tick that and set it up for participant.

    In reply to: Private forum

    @robin-w

    Moderator

    depends on what parameters you want to use.

    typically either automatic or totally manual – ie disable membership in dashboard>settings>general and create a membership form

    @robin-w

    Moderator
    In reply to: Know all the features

    @robin-w

    Moderator

    lots of add-on plugins that will achieve these features

    groups can be achieved with buddypress or bbp-private-groups
    bbp-style-pack will do various styling and features
    online chat – buddypress or bbPress Messages
    moderation – bbPress – Moderation Tools
    attachments – GD bbPress Attachments
    images – Inline Image Upload for BBPress
    voting – bbp-valoration

    In reply to: Forum description

    @robin-w

    Moderator

    can only suggest 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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    In reply to: Forum description

    @robin-w

    Moderator

    is your site public ?

    In reply to: Forum description

    @robin-w

    Moderator

    possibly

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Display item 6

    @robin-w

    Moderator

    just tried that code on my test site and it works fine.

    where are you putting it ?

    @robin-w

    Moderator

    ok, try this

    add_filter( 'bbp_before_has_search_results_parse_args' , 'my_bbp_filter_search_results' );
    
    function my_bbp_filter_search_results( $args ){
        $forum_id = 1715;
    
        if( $forum_id && is_numeric( $forum_id ) ){
     
           $args['post_parent'] = $forum_id ;
        }
    
        error_log('Dedicated forum = ' . $forum_id);
     
        return $args;
    }
    

    @robin-w

    Moderator

    ok, one I think for woocommerce to respond.

    @robin-w

    Moderator

    from a very quick look, that code looks like it should work, and not seen anything else that does this, so try it, and if it doesn’t work, come back

    @robin-w

    Moderator

    your theme or elementor is doing this

    it has a css entry

    .has-sidebar:not(.error404) #primary {
    	float: left;
    	width: 58%;
    }

    you could change this to 100% in your custom css ie put this in your custom css

    .has-sidebar:not(.error404) #primary {
    	width: 100% !important;
    }

    but it might affect other parts of your site, so try it and see

    @robin-w

    Moderator

    @robin-w

    Moderator

    sorry, this one slipped by

    add this code, changing ‘shortcode here’ to the actual shortcode you wish to execeute

    add_action( 'bbp_theme_before_reply_form' , 'rew_add_shortcode'); 
    
    function rew_add_shortcode () {
    	echo do_shortcode( '[shortcode here]' );
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    In reply to: Customization

    @robin-w

    Moderator

    If it is sidebars, then sidebars are controlled by

    wordpress – dashbaord>apperaance>widgets
    Your theme/elementor
    plugins that affect your theme

    bbpress does nothing except provide widgets for the elements above

    In reply to: Customization

    @robin-w

    Moderator

    sorry – suspect elementor is the issue

    In reply to: Customization

    @robin-w

    Moderator

    this still works as far as I know

    How to Add WordPress Conditional Content to Sidebar Widgets

    so you would use

    !is_bbpress()

    against the my posts – so that will only show on non bbpress pages

    @robin-w

    Moderator

    ok, can only suggest you try this, and then discuss with your theme author

    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.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    @robin-w

    Moderator

    so what is the setting in

    dashboard>settings>forums>anonymous?

    @robin-w

    Moderator

    so are you using a page to display forums ie you have a page in your site called ‘foums’ with

    [bbp-forum-index]

    in it?

    If not try setting this up as then you theme might see this as a page

    @robin-w

    Moderator

    there are several plugins that do this eg

    CB Change Mail Sender

    or you can google for code

    @robin-w

    Moderator

    @robin-w

    Moderator

    looks like your theme is displaying the page title. You might need to amend some theme stuff

    @robin-w

    Moderator

    ok, a couple of thoughts just looking at that code

    The first would be to break it into a function, nested stuff can sometimes fail so

    add_action('init', 'rew_check_bbpress_moderator') ;
    
    function rew_check_bbpress_moderator(){
    	if(class_exists('WooCommerce') && function_exists('bbp_get_user_role') && is_user_logged_in()){
    		$current_user = wp_get_current_user();	
    		$user_id = $current_user->ID;	
    		$bbp_get_user_role = bbp_get_user_role($user_id);
    
    		if($bbp_get_user_role == 'bbp_keymaster' || $bbp_get_user_role == 'bbp_moderator'){	
    			add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
    			add_filter( 'woocommerce_disable_admin_bar', '__return_false' );
    		}
    	}
    }

    Secondly I think woocommerce is all lower case so

    if(class_exists('WooCommerce')

    might need to read

    if(class_exists('woocommerce')

    Let us know if either of these help

    @robin-w

    Moderator

    great – glad you are fixed !

Viewing 25 replies - 4,801 through 4,825 (of 14,335 total)