Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 1,351 through 1,375 (of 6,788 total)
  • Author
    Search Results
  • pandraka
    Participant

    WordPress 4.8
    PHP 7
    bbpress 2.5.12
    buddypress 2.8.2

    I’m using group types on my bbpress/buddypress site. I’ve had to get creative when it comes to breadcrumbs. There was one minor changes to the bbp_get_breadcrumb function that I had to make to make the breadcrumbs work. I copied the function into my functions.php and added a filter. I’m getting an error/notice:
    Notice: Use of undefined constant mod_bbp_get_breadcrumb – assumed ‘mod_bbp_get_breadcrumb’

    The function is doing exactly what I want it to do. but this error is showing up. The functions is originally located in bbpress/includes/common/template.php file

    here’s the code:

    <?php
    function mod_bbp_get_breadcrumb( $args = array() ) {

    // Turn off breadcrumbs
    if ( apply_filters( ‘bbp_no_breadcrumb’, is_front_page() ) )
    return;

    // Define variables
    $front_id = $root_id = 0;
    $ancestors = $crumbs = $tag_data = array();
    $pre_root_text = $pre_front_text = $pre_current_text = ”;
    $pre_include_root = $pre_include_home = $pre_include_current = true;

    /** Home Text *********************************************************/

    // No custom home text
    if ( empty( $args[‘home_text’] ) ) {

    $front_id = get_option( ‘page_on_front’ );

    // Set home text to page title
    if ( !empty( $front_id ) ) {
    $pre_front_text = get_the_title( $front_id );

    // Default to ‘Home’
    } else {
    $pre_front_text = __( ‘Home’, ‘bbpress’ );
    }
    }

    /** Root Text *********************************************************/

    // No custom root text
    if ( empty( $args[‘root_text’] ) ) {
    $page = bbp_get_page_by_path( bbp_get_root_slug() );
    if ( !empty( $page ) ) {
    $root_id = $page->ID;
    }
    $pre_root_text = bbp_get_forum_archive_title();
    }

    /** Includes **********************************************************/

    // Root slug is also the front page
    if ( !empty( $front_id ) && ( $front_id === $root_id ) ) {
    $pre_include_root = false;
    }

    // Don’t show root if viewing forum archive
    if ( bbp_is_forum_archive() ) {
    $pre_include_root = false;
    }

    // Don’t show root if viewing page in place of forum archive
    if ( !empty( $root_id ) && ( ( is_single() || is_page() ) && ( $root_id === get_the_ID() ) ) ) {
    $pre_include_root = false;
    }

    /** Current Text ******************************************************/

    // Search page
    if ( bbp_is_search() ) {
    $pre_current_text = bbp_get_search_title();

    // Forum archive
    } elseif ( bbp_is_forum_archive() ) {
    $pre_current_text = bbp_get_forum_archive_title();

    // Topic archive
    } elseif ( bbp_is_topic_archive() ) {
    $pre_current_text = bbp_get_topic_archive_title();

    // View
    } elseif ( bbp_is_single_view() ) {
    $pre_current_text = bbp_get_view_title();

    // Single Forum
    } elseif ( bbp_is_single_forum() ) {
    $pre_current_text = bbp_get_forum_title();

    // Single Topic
    } elseif ( bbp_is_single_topic() ) {
    $pre_current_text = bbp_get_topic_title();

    // Single Topic
    } elseif ( bbp_is_single_reply() ) {
    $pre_current_text = bbp_get_reply_title();

    // Topic Tag (or theme compat topic tag)
    } elseif ( bbp_is_topic_tag() || ( get_query_var( ‘bbp_topic_tag’ ) && !bbp_is_topic_tag_edit() ) ) {

    // Always include the tag name
    $tag_data[] = bbp_get_topic_tag_name();

    // If capable, include a link to edit the tag
    if ( current_user_can( ‘manage_topic_tags’ ) ) {
    $tag_data[] = ‘‘ . esc_html__( ‘(Edit)’, ‘bbpress’ ) . ‘‘;
    }

    // Implode the results of the tag data
    $pre_current_text = sprintf( __( ‘Topic Tag: %s’, ‘bbpress’ ), implode( ‘ ‘, $tag_data ) );

    // Edit Topic Tag
    } elseif ( bbp_is_topic_tag_edit() ) {
    $pre_current_text = __( ‘Edit’, ‘bbpress’ );

    // Single
    } else {
    $pre_current_text = get_the_title();
    }

    /** Parse Args ********************************************************/

    // Parse args
    $r = bbp_parse_args( $args, array(

    // HTML
    ‘before’ => ‘<div class=”bbp-breadcrumb”><p>’,
    ‘after’ => ‘</p></div>’,

    // Separator
    ‘sep’ => is_rtl() ? __( ‘‹’, ‘bbpress’ ) : __( ‘›’, ‘bbpress’ ),
    ‘pad_sep’ => 1,
    ‘sep_before’ => ‘<span class=”bbp-breadcrumb-sep”>’,
    ‘sep_after’ => ‘</span>’,

    // Crumbs
    ‘crumb_before’ => ”,
    ‘crumb_after’ => ”,

    // Home
    ‘include_home’ => $pre_include_home,
    ‘home_text’ => $pre_front_text,

    // Forum root
    ‘include_root’ => $pre_include_root,
    ‘root_text’ => $pre_root_text,

    // Current
    ‘include_current’ => $pre_include_current,
    ‘current_text’ => $pre_current_text,
    ‘current_before’ => ‘<span class=”bbp-breadcrumb-current”>’,
    ‘current_after’ => ‘</span>’,
    ), ‘get_breadcrumb’ );

    /** Ancestors *********************************************************/

    // Get post ancestors
    if ( is_singular() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    $ancestors = array_reverse( (array) get_post_ancestors( get_the_ID() ) );
    }

    // Do we want to include a link to home?
    if ( !empty( $r[‘include_home’] ) || empty( $r[‘home_text’] ) ) {
    $crumbs[] = ‘‘ . $r[‘home_text’] . ‘‘;
    }

    // Do we want to include a link to the forum root?
    if ( !empty( $r[‘include_root’] ) || empty( $r[‘root_text’] ) ) {

    // Page exists at root slug path, so use its permalink
    $page = bbp_get_page_by_path( bbp_get_root_slug() );
    if ( !empty( $page ) ) {
    $root_url = get_permalink( $page->ID );

    // Use the root slug
    } else {
    $root_url = get_post_type_archive_link( bbp_get_forum_post_type() );
    }

    // Add the breadcrumb
    $crumbs[] = ‘‘ . $r[‘root_text’] . ‘‘;
    }

    // Ancestors exist
    if ( !empty( $ancestors ) ) {

    // Loop through parents
    foreach ( (array) $ancestors as $parent_id ) {

    // Parents
    $parent = get_post( $parent_id );

    // Skip parent if empty or error
    if ( empty( $parent ) || is_wp_error( $parent ) )
    continue;

    // Switch through post_type to ensure correct filters are applied
    switch ( $parent->post_type ) {

    // Forum
    case bbp_get_forum_post_type() :
    // PAA – modified
    //echo ‘forum title’. bbp_get_forum_title( $parent->ID) ;
    $test_title = bbp_get_forum_title( $parent->ID) ;
    if ($test_title == ‘Group Forums’){
    $base_url = bp_get_root_domain();
    $crumbs[] = ‘Groups‘;}
    else
    {$crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-forum”>’ . bbp_get_forum_title( $parent->ID ) . ‘‘; };

    break;

    // Topic
    case bbp_get_topic_post_type() :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-topic”>’ . bbp_get_topic_title( $parent->ID ) . ‘‘;
    break;

    // Reply (Note: not in most themes)
    case bbp_get_reply_post_type() :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-reply”>’ . bbp_get_reply_title( $parent->ID ) . ‘‘;
    break;

    // WordPress Post/Page/Other
    default :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-item”>’ . get_the_title( $parent->ID ) . ‘‘;
    break;
    }
    }

    // Edit topic tag
    } elseif ( bbp_is_topic_tag_edit() ) {
    $crumbs[] = ‘‘ . sprintf( __( ‘Topic Tag: %s’, ‘bbpress’ ), bbp_get_topic_tag_name() ) . ‘‘;

    // Search
    } elseif ( bbp_is_search() && bbp_get_search_terms() ) {
    $crumbs[] = ‘‘ . esc_html__( ‘Search’, ‘bbpress’ ) . ‘‘;
    }

    /** Current ***********************************************************/

    // Add current page to breadcrumb
    if ( !empty( $r[‘include_current’] ) || empty( $r[‘current_text’] ) ) {
    $crumbs[] = $r[‘current_before’] . $r[‘current_text’] . $r[‘current_after’];
    }

    /** Separator *********************************************************/

    // Wrap the separator in before/after before padding and filter
    if ( ! empty( $r[‘sep’] ) ) {
    $sep = $r[‘sep_before’] . $r[‘sep’] . $r[‘sep_after’];
    }

    // Pad the separator
    if ( !empty( $r[‘pad_sep’] ) ) {
    if ( function_exists( ‘mb_strlen’ ) ) {
    $sep = str_pad( $sep, mb_strlen( $sep ) + ( (int) $r[‘pad_sep’] * 2 ), ‘ ‘, STR_PAD_BOTH );
    } else {
    $sep = str_pad( $sep, strlen( $sep ) + ( (int) $r[‘pad_sep’] * 2 ), ‘ ‘, STR_PAD_BOTH );
    }
    }

    /** Finish Up *********************************************************/

    // Filter the separator and breadcrumb
    $sep = apply_filters( ‘bbp_breadcrumb_separator’, $sep );
    $crumbs = apply_filters( ‘bbp_breadcrumbs’, $crumbs );

    // Build the trail
    $trail = !empty( $crumbs ) ? ( $r[‘before’] . $r[‘crumb_before’] . implode( $sep . $r[‘crumb_after’] . $r[‘crumb_before’] , $crumbs ) . $r[‘crumb_after’] . $r[‘after’] ) : ”;

    return apply_filters( ‘mod_bbp_get_breadcrumb’, $trail, $crumbs, $r );
    }

    add_filter( ‘bbp_get_breadcrumb’,mod_bbp_get_breadcrumb, 98, 2);
    ?>

    At this point I’m not sure what else to do or if it’s ok to ignore the warning

    #185623
    Robin W
    Moderator

    interesting question

    I think bbpress just uses the wordpress pretty permalinks, so might be worth trying this plugin to see if you can change the default

    Edit Author Slug

    I’ve only read the page above, not tried it !

    Please do report back if it works (or if it doesn’t)

    #185618
    Robin W
    Moderator

    ok, a new page in a default theme has this

    <div class="entry-content">
    <div id="bbpress-forums">
    

    your page has this

    <div class="entry-content">
    <div style="clear: both"></div>
    <div class="the_champ_sharing_container the_champ_horizontal_sharing" super-socializer-data-href="https://www.lifeleap.org/community/">
    <div class="the_champ_sharing_title" style="font-weight:bold">Share:</div>
    <ul class="the_champ_sharing_ul">
    <li class="theChampSharingRound">
    <li class="theChampSharingRound">
    <li class="theChampSharingRound">
    <li class="theChampSharingRound">
    <li class="theChampSharingRound">
    </ul>
    <div style="clear:both"></div>
    </div>
    <div style="clear: both"></div>
    <p>
    <br>
    </p>
    <div id="bbpress-forums">

    Don’t think it’s bbpress

    #185565
    Robin W
    Moderator

    bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums

    and to clarify from the WSL documentation

    WSL will take the user in a short journey to the selected social network to ask for his permission to access his profile. If he does, and if everything goes as expected, WSL will create a new account for the user if he doesn’t have one already, authenticate him within WordPress, then redirect him back to where he come from.

    so it should work.

    The user should be allocated the participant role on first login

    Just yelling back at me like I am some dumbass that you don’t want something doesn’t get us any further forward.

    Now if this isn’t working and you have checked my original suggestion then do please come back with a polite response and I will be delighted to help further.

    #185522

    In reply to: Avatar freshness

    Robin W
    Moderator

    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

    #185521

    In reply to: Iimprovements

    Robin W
    Moderator

    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

    whimsymoon
    Participant

    Hello,

    I have BuddyPress and bbPress on my site.

    My site has been moved to a new hosting company. Since the move when you click on Forums in the dashboard or in the front end menu you get a white screen. When you click on topics you see them all listed back end and can “view” them on the front end too.

    All my widgets don’t show either.

    I have deactivated all plugins and re-activated them one by one and put the site onto a default WP theme with no luck of seeing the forums (or widgets).

    When I deactivate bbpress the site only shows the header on the front end.

    I have changed the permalinks to the default and back again also.

    One thing I should mention is that when I am logged in, I can see all the widgets, so the site looks normal on the front end. But I still cannot see the forums.

    Networking in the dog industry

    Any ideas would be very much appreciated -thank you. I’ll pop this onto the BuddyPress support also.

    Robin W
    Moderator

    ok, not quite sure what is happening

    1. are you using caching software? If so purge
    2. try dashboard>settings>permalinks and just click save – this will reset the links

    if both those fail, then 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

    #185391
    Robin W
    Moderator

    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

    #185342
    Robin W
    Moderator

    Could be theme or plugin affecting this

    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

    #185330
    ScottyChoc
    Participant

    WordPress version 4.8
    Genesis Theme version 2.5.2
    bbPress version: 2.5.12
    Site URL: http://staging.c-rad.org/

    My site has a members section for which all of the pages in it have a template applied to it with this simple logic:

    	if ( ! is_user_logged_in()) {
    		wp_login_form();
    		return;
    	} else {
    		// add the members only sidebar and show the content
    	}
    

    Is it possible to install bbPress such that I can apply this template logic to all forum pages?

    I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.

    I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).

    I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.

    #185273

    In reply to: Multisite

    benjaminsaarde
    Participant

    Hi again,
    I have been searching the web for a solution:
    My idea is to delete the default links, and get the link to peoples primary blog. When they fill out the bbpress form-reply.php, I want to get their user ID. From that user ID I can get the link to their primary blog.
    Right now I got this:

    //In my functions.php(the 2 is an example of a user id):
    $GLOBALS[‘mytheme_thisismyvar’] =2;

    //In my Loop-single-reply.php:´
    <?php
    $yeps=$GLOBALS[‘mytheme_thisismyvar’];
    ?>

    <?php
    $user_info = get_userdata($yeps);
    $blog_details = get_blog_details($user_info->primary_blog);
    echo ‘siteurl.’>’.$blog_details->siteurl.’‘;
    ?>

    I want to get the user id from the bbpress form-reply.php to be $yeps? I thought about using get_the_author_meta?
    Thank you

    #185211
    balloonsc
    Participant

    @christianbritto It works fine for me. http://prntscr.com/fozim0
    I also checked other themes and works fine.
    I see you have activated a few plugins. You should deactivate them and switch to WP default theme.

    Thank you,

    PinkishHue
    Participant

    Using latest BBpress, Buddypress and WP, and tested on a fresh install with WP default theme.

    When viewing a member profile at http://localhost/mysitename/members/testuser/forums/replies/ there is no ‘in reply to:’ and link to the topic in the header of each reply. Just the date.

    I thought perhaps it was theme related (I was using a child theme of the ‘Make’ theme) so have tested on fresh everthing, and it’s still happening.

    I’ve created a new topic from the front end and the back end to see if that was related. I’ve used the forum tools to recalculate everything, I’ve ‘reset’ all forums and started again, still not there.

    Can anyone else recreate this? Any suggestions? Am I misunderstanding something? Thanks

    #185123
    Chad R. Schulz
    Participant

    They are php templates inside bbPress. The default location in bbPress is /plugins/bbpress/templates/default/bbpress/ look for the ones labelled feedback-no-*****.php and alter/edit the ones you want changed and place them into your theme’s bbpress folder.

    Easy peasy.

    Chad

    #185092

    Something in your theme must be forcing the width of those fields. They are naturally responsive by using percentage based widths by default.

    #185055

    In reply to: Change email sender

    Brandon Allen
    Participant

    @karilistermanyahoocom

    The default from email address for bbPress emails is noreply@(url).com. If you’re seeing wordpress@(url).com, it’s either not an email sent by bbPress, or you’re using a plugin that is changing the from address for all emails sent.

    To change the bbPress email, you would use the filter bbp_get_do_not_reply_address. For most (if not all) emails sent by your WordPress install, you’d use the wp_mail_from filter.

    #185021
    Daethian
    Participant

    I’ve been successfully running BP and the forum plugin for several years now.
    I did not add any new plugins but of course have been installing updates as they come up.
    Sometime in the past month I lost the ability to create a new topic on my forum. The forums are not super busy but I post a monthly contest thread so I know it worked fine a month ago.

    No error is generated, the page just reloads. I’ve tried clearing my browser cache in Chrome. I tried using Edge. I went to an entirely different computer from which I’ve never access the site and tried from there using IE. Same result.

    I’ve switched to default theme 2015 and I am able to post but I can’t go back and edit or update the post. I also can not reply to the post using the 2015 theme. I am attempting to contact the theme creator for support but there is still some issue with the default theme so I’m asking here too.

    Another user was able to post a reply finally but I can’t edit my original post. This seems to affect users at random off and on and then resolves itself but I have no idea what is happening.

    Is there some place I can see what plugins were last updated so I can try disabling them?

    I’m on my own domain, multi site install.
    Apache Version 2.2.31
    PHP Version 5.4.45
    MySQL Version 10.1.22-MariaDB-cll-lve
    bbPress 2.5.12-6148
    Wordpress 4.8

    Mushi
    Participant

    @robin-w W Thanks for the reply.
    I have deactivated all the plugins except bbpress and also switch to twentytwelve default theme but still the same issue.

    I also tried to changining “Topics per page” by setting different values but interestingly pagination links after page no 12 don’t work and give 404 error.

    Robin W
    Moderator

    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

    #184918

    In reply to: bbpress custom fields

    Robin W
    Moderator

    the actual hook is quite easy, there are numerous do-action calls within

    templates/default/bbpress/form-topic.php and form-reply.php

    The real issue is getting someone to code the fields, store them in the database, consider the ability for mods etc. to alter them or delete them, and then decide what you want to do with those fields – eg where to display them etc. etc.

    #184857

    Topic: Forums

    in forum Installation
    kariellen35
    Participant

    I would really like to create forums for my website, however, I don’t have this option:

    A. Set Up Sitewide Forums only

    Install and activate bbPress.
    Proceed to bbPress.org Codex to get started in creating your Sitewide Forums.
    If you kept the default “forums” slug in Settings > Forums, you can create a new Page via Pages > Add New. Add Title “Forums” and insert the forums index shortcode and/or other bbPress shortcode you’ll find in the bbPress Codex then publish the new page.
    Add new “Forums” Page in your custom menu via Appearances > Menu

    Can someone please tell me what I am missing?

    Thank you so much for your time!!

    Take care,
    Kari

    #184813
    Robin W
    Moderator

    suspect your membership software is the issue

    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

    crooy3
    Participant

    hi

    Today I installed the bbpress plugin and converted all WordPress comments to bbpress topics.

    It works for default post type, but what about custom post types? I trying show comments on that post types as bbpress topics, but unsuccessful.

    Is that even possible?

    #184687
    vicky
    Participant

    HI

    I have Install bbPress and like to setup custom page for forums

    Im getting two URL .. which I dont need and it will be creating duplicate post

    Im getting this link as default https://bestcomputersforgaming.com/forums

    Im trying to design custom page for forums at https://bestcomputersforgaming.com/forum/

    any solution to just to get one forum link

Viewing 25 results - 1,351 through 1,375 (of 6,788 total)
Skip to toolbar