Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 726 through 750 (of 6,789 total)
  • Author
    Search Results
  • crebspark
    Participant

    Hi,

    Can you help me figure out how to add a Register button beside the login button? I’m not talking about a rightside bar widget.

    I’m talking about the default view when someone tries to view a forum and is not logged in.

    Thanks

    Robin W
    Moderator

    bbpress just uses WordPress accounts.

    so if you want your existing users to use bbpress, then set the default role in dashboard>forums and the next time they log in, they will get this access.

    #211798
    Pete
    Participant

    Hi,

    I’m trying to add some detail to search results associated with replies to topics. By default, it would seem that if a search finds a hit in a particular topic post, it includes the name of the topic and the relevant forum in the header for the particular search result:
    Default Topic Result Header
    In contrast, a hit on a reply to a particular topic does not include any topic or forum information: Default Reply Result Header

    I thought I might be able to solve my problem by modifying the loop-search-reply.php template to include what looked like it might be the relevant code from the loop-search-topic.php template:

    
    <div class="bbp-topic-title-meta">
    
    	<?php if ( function_exists( 'bbp_is_forum_group_forum' ) && bbp_is_forum_group_forum( bbp_get_topic_forum_id() ) ) : ?>
    
    		<?php esc_html_e( 'in group forum ', 'bbpress' ); ?>
    
    	<?php else : ?>
    
    		<?php esc_html_e( 'in forum ', 'bbpress' ); ?>
    
    	<?php endif; ?>
    
    	<a>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a>
    
    </div><!-- .bbp-topic-title-meta -->
    
    <?php do_action( 'bbp_theme_after_topic_title' ); ?>
    

    but it seems that was a little naive of me. This block of code certainly includes what could be the required information:Modified Reply Result Header but what I thought would be inserted as the forum name turns out to be the topic name.

    Looking at the above code, I can see why this might be—the relevant text, ‘bbpress’, in the code block above appears to be just some placeholder text, and is the same placeholder text used to reference the topic name. I had thought that the text replacement might be a little more context sensitive than it appears to be.

    So my question is, can anyone tell me how that text (‘bbpress’ in the above code segment, which is taken directly from the default loop-search-topic.php template) gets replaced, or more specifically I guess, can anyone tell me where to inject a function or the like to set this or some other piece of placeholder text (I appreciate that it may need to be different to the placeholder text being used for the topic name) to the relevant forum name?

    Thanks

    #211788

    Topic views are not standard in bbPress.

    By default, the problem with Views is they trigger database writes on pages that should only be performing database reads.

    We’ve considered ways of circumventing this, but have never seriously attempted to build it.

    Is there a simple fix for a non-programmer type guy?

    You could try installing: https://wordpress.org/plugins/gd-bbpress-tools/

    I forget if it offers it, but it does so much other stuff that maybe it will tide you over? 😁

    #211779
    Robin W
    Moderator

    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

    jensksa
    Participant

    I am experiencing a similar problem.

    I get the exact same error message, although the forum does render (ie. no blank page).

    As far as I understand, it appears to be because bbp_remove_adjacent_posts does not get called, and it tries to fetch adjacent posts with a default post_date of 0.

    #211727
    Robin W
    Moderator

    Just had a chance to dig further into this – bbpress will only let a keymaster set another keymaster, so if you’re not a keymaster yourself then by default you can’t do this.

    However this code should allow any admin to set a keymaster

    add_filter( 'bbp_is_user_keymaster', 'rew_allow_keymaster', 10 , 3 );
    
    function rew_allow_keymaster ($retval, $_user_id, $user_id) {
    	if (current_user_can( 'manage_options' )) $retval = true ;
    return $retval ;
    }

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

    Code Snippets

    BUT THEN TAKE IT OUT AFTER you have set up another – as it makes all admins in effect keymasters.

    #211688

    In reply to: Database broken?

    Robin W
    Moderator

    I’m just a bbpress user who helps out here.

    I did not respond to allow and other community members to respond if they wished.

    I appreciated that you are frustrated, but you are using free software, and with that comes volunteer support. I’m not sure why you feel entitled to get someone to fix your problems for free and at a weekend.

    There are 300,000 bbpress sites, and I have been offering support on this forum for 6 years, and have seen most issues that bbpress has had over the years.

    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

    #211687
    Robin W
    Moderator

    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

    #211608
    Alpo
    Participant

    Thank you for super quick replty. I am not sure, I think this is not default editor.
    Here is the link which shows the editor: https://imgur.com/a/djB0UD1

    Best regards, Alpo

    #211567
    Pete
    Participant

    I have a problem with the way breadcrumbs are being displayed on my search results screen.

    First of all, I have the following (amongst other things) in my functions.php file:

    
    /**
    Just a simple breadcrumb trail, but, importantly, don't double up when we're at the root
    **/
    function mycustom_breadcrumb_options() {
    	// Home - default = true
    	$args['include_home']    = false;
    	// Don't need breadcrumbs if we're at the root
    	if ( apply_filters( 'bbp_no_breadcrumb', is_front_page() ) ) {
    	// Forum root - default = true
    		$args['include_root']    = false;
    	// Current - default = true
    		$args['include_current'] = false;
    	}
    	return $args;
    }
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );
    
    /**
    Search only the specified forum
    **/
    function my_bbp_filter_search_results( $r ){ 
        //Get the submitted forum ID
        $forum_id = sanitize_title_for_query( $_GET['bbp_search_forum_id'] );
        //If the forum ID exits, filter the query
        if( $forum_id && is_numeric( $forum_id ) ){
            $r['meta_query'] = array(
                array(
                    'key' => '_bbp_forum_id',
                    'value' => $forum_id,
                    'compare' => '=',
                )
            );  
        }
        return $r;
    }
    add_filter( 'bbp_after_has_search_results_parse_args' , 'my_bbp_filter_search_results' );
    

    I have a search box on the forum home page and on the index page for each individual forum. For general navigation around my forum the breadcrumbs are presented as one might expect and search results are confined to those relevant to the current forum (or all forums from the home page).

    The breadcrumbs on the Forum ‘home page’ show simply as Forums and on individual forum index pages as Forums > ForumName, where ‘ForumName’ is the name of the current forum, etc. A search request from the Forum home page returns results as expected, with the breadcrumbs displayed as Forums > Search > Search Results for 'search string'. However, while a search from one of the individual forum index pages returns the refined search results as expected, the breadcrumbs are always displayed as Forums > Search > Search Results for 'search string', they don’t include the name of the forum that has been searched (i.e. Forums > ForumName > Search > Search Results for 'search string'.

    I think I can see that the search is actually being applied to all forums, then refined by the relevant function in the functions.php file, so I think I can see why I might have to do a little extra work to get the relevant forum name displayed in the breadcrumb, but can anyone suggest how I might do this? It would seem that I should be able to add a little more code to my mycustom_breadcrumb_options() function, but what exactly…?

    Thanks for any assistance anyone can offer.
    (WordPress 5.4.1, bbPress 2.6.5, website: digitalconcepts.net.au/forum – Please note, this part of the website is ‘hidden’ from the home page, you need to navigate there via the above direct URL)

    #211488
    davelowe1977
    Participant

    Apart from the root forum which shows all the sub forums and nothing else, all my sub forums have a reply / new topic form tacked on at the bottom. I would like to remove this and replace it with two buttons: “New” and “Reply” which lead to a separate form/page with all the removed functionality. If I inspect the page code as it is, it is everything in this element tag:

    <div id=”new-topic-0″ class=”bbp-topic-form”>

    Is this possible? Thanks.

    WordPress 5.4.1
    BBPress Version 2.6.4 & default theme.

    #211464

    Topic: first reply sticky

    in forum Themes
    sadakhanal
    Participant

    what is the code to make the first reply of the topic as a sticky reply by default ?

    i am trying to arrange the replies in descending order and the topic content is not showing on the top of the replies.

    Question 2: Is it possible to show topic content under topic title, not on the replies? This will give me more options to arrange replies according to my requirement. [while i am using <?php bbp_topic_content(); ?> under topic title, the topic content is displaying in replies also]

    #211455
    jayapramod
    Participant

    For field name change I made changes in these files (in the wp-content >> plugins >> bbpres):

    includes/admin/metaboxes.php
    templates/default/bbpress/form-anonymous.php
    includes/admin/metaboxes.php
    templates/default/bbpress/form-user-edit.php
    templates/default/bbpress/user-profile.php

    Now it’s showing ‘Whatsapp number:’ instead of ‘Website:’. Still, there is a problem remaining, as I didn’t change the php code (not familiar in PHP coding) for website url, after entering the phone number it’s showing like this ‘http://9669856568&#8217;.

    Also made changes in all css files in this directory wp-content/plugins/bbpress/templates/default/css/, for font size change. From font-size: 12px; to font-size: 18px;.

    #211448
    Ryan Hellyer
    Participant

    BUMP!

    (yes I know this is an almost nine year old thread ;))

    Years ago (before this thread was created) I asked Sam Bauers about how bbPress 0.9 compared to phpBB and he said that bbPress was slower by default, but as soon as you hooked up an object caching backend, that bbPress wooped phpBB quite easily.

    But does anyone have an idea of how the “new” bbPress plugin compares to say phpBB performance wise? Logged out users are easily handled by caching, but what about the logged in folk? With some aggressive object caching, we can tank the number of queries to a minimum and it will run a ton faster, but I have no idea how this compares to the more “standard” forum tools.

    And are there any tricks to making bbPress handle huge forums?

    davkim
    Participant

    All,
    I’m new to wordpress/bbpress, I’ve set my forum page to full-width… topics (list) are being shown as full-width. When I go into a specific topic, it’s not full-width. I have to manually change the topic attribute to full-width for each topic. It seems like when a topic is created, topic attribute is being defaulted to (default template) which is not full-width. Is there a way when a topic gets created, full-width template is used as default.

    Any help would be greatly appreciated.

    #211412
    scabbrox
    Participant

    Just as a query as it might be faster than manually fixing all the flags of old roles from each member but if I use the remap all users to default roles will this clear the database of all the flags in one go?

    I guess, it it safe is what I am asking, don’t want to inadvertently lose keymaster rights and be stuck.

    #211407
    scabbrox
    Participant

    Have sorted it for now by using default roles to give people access but would like the custom roles to be working again if possible.

    #211406
    scabbrox
    Participant

    The following is still in my functions.php file but whilst the custom roles show up under the “forum role” pull-down menu in the user profile, they cannot be saved and do not show under the Member roles list as ‘bbp_specialrolename’ versions, just as simple use roles (we have always had some duplicates for forum and non forum roles).

    function add_new_roles( $bbp_roles )
    {
    $bbp_roles[‘bbp_trial’] = array(
    ‘name’ => ‘Trial’,
    ‘capabilities’ => custom_capabilities( ‘bbp_trial’ )
    );

    $bbp_roles[‘bbp_warlord’] = array(
    ‘name’ => ‘Warlord’,
    ‘capabilities’ => custom_capabilities( ‘bbp_warlord’ )
    );

    $bbp_roles[‘bbp_general’] = array(
    ‘name’ => ‘General’,
    ‘capabilities’ => custom_capabilities( ‘bbp_general’ )
    );

    $bbp_roles[‘bbp_member’] = array(
    ‘name’ => ‘Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_member’ )
    );

    $bbp_roles[‘bbp_council_member’] = array(
    ‘name’ => ‘Council Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_council_member’ )
    );

    return $bbp_roles;
    }

    add_filter( ‘bbp_get_dynamic_roles’, ‘add_new_roles’, 1 );

    function add_role_caps_filter( $caps, $role )
    {
    if( $role == ‘bbp_trial’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_warlord’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_general’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_member’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_council_member’ )
    $caps = custom_capabilities( $role );

    return $caps;
    }

    add_filter( ‘bbp_get_caps_for_role’, ‘add_role_caps_filter’, 10, 2 );

    function custom_capabilities( $role )
    {
    switch ( $role )
    {

    /* Capabilities for ‘councilmember’ role */
    case ‘bbp_council_member’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘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’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘member’ role */
    case ‘bbp_member’:
    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’ => true,
    ‘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,
    );

    /* Capabilities for ‘warlord’ role */
    case ‘bbp_warlord’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘general’ role */
    case ‘bbp_general’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘trial’ role */
    case ‘bbp_trial’:
    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’ => true,
    ‘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;
    }
    }
    // ==============================================================
    // Switch off bbPress Forum moderation
    add_filter( ‘bbp_bypass_check_for_moderation’, ‘__return_true’ );

    shonty
    Participant

    Hi there,

    When we receive notifications of topic replies. The Date Received field usually shows the time that has passed since the reply was posted. However, the text “Sometime Ago” is showing instead. This is happening for all bbPress notifications.

    It still occurs when we deactivate all plugins other than Buddypress and bbPress and use the default themes.

    Can anyone give any advice to fix this?

    redevelop
    Participant

    Yes – viewing the default pages & post was possible before creating the child theme…

    Robin W
    Moderator

    hmmm…ok bbpress can have issues on local sites, which is what I hoped then above would clear.

    so ‘Viewing the default pages and ‘Hello World’ post is OK though, if any help. ‘ is that same as before, or is helped by the above and was wrong before?

    redevelop
    Participant

    Thanks for the reply – sorry for the delay, had to remind myself of child themes setup 🙂
    Still the same error sadly…

    Viewing the default pages and ‘Hello World’ post is OK though, if any help.

    #211326
    hrithik951
    Participant

    When using this shortcode- [bbp-topic-form]

    It’s working.

    There are total 3 files named form-topic.php you would have to remove it from all three to remove (default forum). One is in the Bbpress plugin, other in the theme and one somewhere else (use Search function). It’s on line 128 in all three files if memory serves right.

    #211231
    Robin W
    Moderator

    ok, it is a site specific issue, and might (or might not) be related to the members plugin -I have no idea how that plugin works or how you view roles using it.

    so all I can say is it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, 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

Viewing 25 results - 726 through 750 (of 6,789 total)
Skip to toolbar