Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 5,476 through 5,500 (of 64,310 total)
  • Author
    Search Results
  • #204985
    Chuckie
    Participant

    :)Side question – do the bbPress authors actively view these forums etc.? It all seems rather quiet. Apart from your grateful efforts. I raised one of those trac tickets:

    https://bbpress.trac.wordpress.org/ticket/3266#ticket

    #204974
    Robin W
    Moderator

    This code will change the WordPress profile to bbpress profile

    add_action('wp_before_admin_bar_render', 'rew_admin_bar_remove_wp_profile', 0);
    
    function rew_admin_bar_remove_wp_profile() {
            global $wp_admin_bar;
    
            /* **edit-profile is the ID** */
            $wp_admin_bar->remove_menu('edit-profile');
     }
    
    add_action('admin_bar_menu', 'rew_add_bbp_profile', 999);
    
    function rew_add_bbp_profile($wp_admin_bar) {
    	
    			$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 . '/' ;
    			}
    			
    			$profilelink = '/' .$slug. $user . '/edit' ;
    			
    			$wp_admin_bar->add_node( array(
    				'parent' => 'user-actions',
    				'id'		=> 'bbp-edit-profile',
    				'title' => 'Edit Profile',
    				'href' => $profilelink,
    			) );
    
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    #204955
    Robin W
    Moderator

    yes – that’s all correct. default bbpress role assigned on first login

    #204944
    Chuckie
    Participant

    Understood. I know some php and know c++ and this tool looked not too much code. But then I don’t know the mechanics of BBPress and don’t really know how to debug properly except by trial and error for php.

    I might just try the tool on my staging site.

    #204941
    madflute
    Participant

    I installed it on another WP site and it didn’t crash so it seems my sandbox is broken. Sorry about that.

    I was not able to find the way to what I am looking for, that is, to have Subscriber’s toolbar links of Edit Profile and Dashboard to the same page, /forums/users/{username} that the bbPress login widget gives. Can this plugin do it?

    #204939
    madflute
    Participant

    Hmmm, something might be wrong with my bbPress. I need to investigate.

    #204937
    Robin W
    Moderator

    do you have bbpress activated ?

    #204935
    Chuckie
    Participant

    Yeah, that is understandable.

    In bbp style pack it lists a few other plugins. I wonder if we could indicate any that won’t work with the latest bbp build.

    Also, if it is not maintained I guess there is no where to ask for help.

    I understand people getting overwhelmed.

    But I tend not to install plugins that say they are not supported.

    Was thinking of:

    bbPress Advanced Statistics

    Andrew

    #204931
    Robin W
    Moderator

    I’d suggest you talk to your host provider, but also

    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.

    Then come back

    #204925
    molokini
    Participant

    Hello,

    We can’t access the replies section in bbPress in the WP Admin. We get a HTTP 500 error.

    I can see these errors in the debug.log:

    [25-Oct-2019 15:41:03 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/amps/public_html/wp-includes/plugin.php on line 201
    [25-Oct-2019 15:41:03 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 671744 bytes) in /home/amps/public_html/wp-includes/functions.php on line 4344

    The site memory is set to 512MB.

    A few other posts said this was due to bbPress Private Groups but we have disabled that and still cant’ view Replies in WP Admin.

    We can see the replies perfectly on the front end.

    Any ideas?

    There are no other messages in debug.log

    Thanks,
    Vicky

    #204924

    Topic: Newbie

    in forum Themes
    zenken2017
    Participant

    Hello, anybody here who is a newbie? How you optimize the use of bbpress?

    #204888

    In reply to: Fetch different avatar

    jbrandsma
    Participant

    For anyone who stumbles upon this, I found the solution and placed it here

    #204875

    In reply to: Locked topics

    Chuckie
    Participant

    Yeah, but in forums like phpBB, if you close a topic you are locking the topic. This is indicated to the user by a icon. I added some styling which I had gleaned from the internet:

    #bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:before {
    	content: "[Locked]";
    	text-shadow: 1px 1px 0 #ffffff;
    	color: #ff0000;
    	margin-right: 5px;
    	font-size: 16pt !important;
    }

    This gives me a lock symbol but the look and feel of this symbol is not as nice as the paper clip which is visible for topics with attachments (using the GD Attachments plugin).

    #204869
    Chuckie
    Participant

    I don’t know if this is a bug. I was just playing around with bbPress and created a new topic. In the option list is “Pending” so I selected it. I hit submit. The topic has vanished. No where to be seen.

    What happened?

    #204867
    stoffer_dev
    Participant

    I found a way to put it in a plugin 🙂

    I Thought I would have to hook into ‘plugins_loaded’ like so:

     add_action( 'plugins_loaded', 'bbpress_overwrite' );
    
     function bbpress_overwrite() {
         add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ;
     }
    
    function rew_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }

    But for some reason this was enough: ?

    add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ;
    
    function rew_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }
    #204859
    stoffer_dev
    Participant

    Can I also override files in the “includes” folder (bbpress/includes/search/template.ph) in a child theme?

    #204858
    Robin W
    Moderator

    no, you just put the templates in your child theme

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    #204856
    stoffer_dev
    Participant

    The problem is, using the template solution will get overwritten when I update the the bbPress plugin…:(

    #204854
    stoffer_dev
    Participant

    I put this:

    add_filter ('bbp_before_get_search_terms_parse_args', 'pluus_amend_search') ;
    
    function pluus_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }

    in my wp-content/themes/<ThemeName>/functions.php

    But Forum names (“bbp_get_forum_post_type()”) are still included in the search results on the frontend.

    Only editing “plugins/bbpress/includes/search/template.php” works 🙂

    nothere
    Participant

    That worked! Thanks Robin, do you happen to know if there is any tutorials out there on setting up your website similar to the bbpress support forum?

    #204826
    madflute
    Participant

    Hi, thank you for your response. I do have bbPress Toolkit but I don’t think it can do what bbP Manage Subscriptions did. What it does is to force a user to subscribe/unsubscribe to a specific forum(s). For example, you can pick up active contributors and force them to subscribe to the contributors’ forum. This is all done in a convenient table.

    #204819
    nothere
    Participant

    Is it possible to download or install the same or similar code as this bbpress support form layout has? I like the layout, and would like to incorporate it on my site. Not sure if this is a possibility? Thanks.

    #204807
    Chuckie
    Participant

    Sorted it. I added this second style:

    #bbpress-forums li.bbp-header div {
    	background: #7A7A78 !important;
    	border:  none;
    }
    #204806
    Chuckie
    Participant

    I have this styling:

    #bbpress-forums div.bbp-reply-content {
    	border-left: solid 1px black;
    	background: whitesmoke !important;
    	padding-left: 5px;
    }
    
    #bbpress-forums div.bbp-reply-author {
    	background: whitesmoke !important;
    }
    
    #bbpress-forums div.bbp-reply-content li {
    	color: #000 !important;
    }
    
    #bbpress-forums div.bbp-reply-content a {
    	color: blue !important;
    }
    
    #bbpress-forums div.bbp-reply-content a:hover {
    	text-decoration: underline;
    }
    

    The problem is that it applies it to the very first row with the headings and I don’t want it to. Ideally I want to set the background of just the replies themselves to whitesmoke.

    #204790
    brunov99
    Participant

    Thanks Robin,

    I tried the method you mentioned first (as a hack) but the files located in plugins/bbpress were not taken into account at all. So I decided to change the main po/mo files.

    Nervermind as I know now how it works I will keep my “precious” translated files in a safe place.
    bV

Viewing 25 results - 5,476 through 5,500 (of 64,310 total)
Skip to toolbar