Fee (@wdfee)

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

  • Fee
    Participant

    @wdfee

    I did it like this now:

    if( bbp_has_topics('nopaging=true') ):
    $terms = array();
    while ( bbp_topics() ) : bbp_the_topic();
    $obj_terms = wp_get_object_terms( bbp_get_topic_id(), bbp_get_topic_tag_tax_id(), array( 'fields' => 'ids' ) );
    $terms = array_merge($terms,$obj_terms);
    endwhile;
    $tags_array = array_unique($terms);
    $tags = implode(",", $tags_array);
    wp_tag_cloud( array( 'smallest' => 8, 'largest' => 20, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id(), 'include' => $tags ) );
    endif;

    Fee
    Participant

    @wdfee

    Thanks, Daniel, sure you could do it with an own function instead.

    I saw that there is already a ticket related to the title: https://bbpress.trac.wordpress.org/ticket/1764
    Didn’t test the patch yet.


    Fee
    Participant

    @wdfee

    I posted a solution adding a filter to `’private_title_format’ here: https://bbpress.org/forums/topic/created-private-forum-but-title-is-private-private-own-your-mission-forum/#post-131731
    `

    The ‘Private Forum’ appendix could then be replaced by using a language file, e.g.


    Fee
    Participant

    @wdfee

    The ‘Private: …’ is added by WP in wp-includes/post-template.php inside of the function get_the_title(). bbpress uses this function in it’s own function bbp_get_forum_title() to generate the title -> ‘Private:’ is appended first time. When the theme now calls the_title() ‘Private:’ is appended again.

    I adjusted bbp_get_forum_title() now: Add two filters, the first removes the ‘Private:’ from all Breadcrumbs and so on, the second appends ‘Private Forum:’ to the forum title.

    function bbp_get_forum_title( $forum_id = 0 ) {
    $forum_id = bbp_get_forum_id( $forum_id );
    add_filter( 'private_title_format', function(){ return '%s'; } );
    $title    = get_the_title( $forum_id );
    add_filter( 'private_title_format', function(){ return __( 'Private Forum: %s', 'bbpress' ); } );
    return apply_filters( 'bbp_get_forum_title', $title, $forum_id );
    }

    Could one of the devs please take a look if this would be an option for you? I hardcoded it for now…


    Fee
    Participant

    @wdfee

    I’ve the same problem. Solved it by replacing the_title() with bbp_forum_title() on my theme’s page template – but that’s not a real solution, because the problem is in all tested themes (bp-default, twentytwelve) and needs some conditions to use it only with bbpress forums.

    In reply to: 404's for non-admins

    Fee
    Participant

    @wdfee

    Hi,

    I experienced the same with Better WP Security 3.4.8 like @twcvols (and @banica ?) with bbpress-rc1-4831 and figured out that it conflicts especially with these functions of Better WP Security (problem stops if you disable them):

    Systemtweaks -> Dashboard Tweaks -> all three functions:

    • Hide Theme Update Notifications
    • Hide Plugin Update Notifications
    • Hide Core Update Notifications

    Fee
    Participant

    @wdfee

    ok. bbPress has to be network activated for this to work in buddypress themes.
    Or bbPress and BuddyPress have both to be NOT network activated.In my case I want BuddyPress to be network activated, to stream activities from all sites. But I want only the mainsite to have a forum.


    Fee
    Participant

    @wdfee

    It seems that it’s only working in themes that are not buddypress compatible.


    Fee
    Participant

    @wdfee

    I deactivated and reactivated BuddyPress now. bd-default was deactivated so I tried it with TwentyTwelve – and it works! Switched back to bp-default – doesn’t work. So it’s a BuddyPress theme issue.

Viewing 9 replies - 1 through 9 (of 9 total)