Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 2,626 through 2,650 (of 64,474 total)
  • Author
    Search Results
  • #224274
    Ludovic S. Clain
    Participant

    It’s odd that bbPress’s WP-CLI commands are being developed as a separate package, keenly that the authors are interested in it, thank you!

    #224273
    Robin W
    Moderator

    found this on googling ‘wp cli bbpress’

    https://github.com/bbpress/wp-cli-bbpress

    #224271
    Robin W
    Moderator

    Sorry, I am not a bbpress author, just someone who tries to help out here – I don’t always succeed.

    I’ve never tried or used CLI

    Hope you find a solution

    #224254
    Ludovic S. Clain
    Participant

    Hi there,
    if I run a command like wp post-type list I have ‘forum’, ‘topic’ and ‘reply’ which are listed but when I run wp post list --post_type=topic the table remains empty , is this normal?
    Thanks for your help!
    Ludovic

    A.
    Participant

    Hello there,

    we’re a WordPress Multisite and recently updated bbpress from 2.5.12 to 2.6.6 and figured out that on a user profile page no subscribed forum are being listed anymore but this message: “Oh bother! No forums were found here.”

    But the user indeed has at least one forum he subscribed to. Subscribed topics are working just fine.

    We also deactivated / activated the plugin, run the database upgrades but still no forum could be found.

    How can this problem being solved?

    #224225
    Milan Petrovic
    Participant

    My plugin GD bbPress Toolbox Pro has options to control the length of title (min/max and min words) and content for topics and replies, and it has option to remove HTML input limit of 80 characters: https://plugins.dev4press.com/gd-bbpress-toolbox/.

    #224187
    matildatiller
    Participant

    We’re having a similar issue in a LearnDash/bbPress site:

    If the post is on page 2 of the topic, for example, the direct link to the post redirects to the main page of the topic like this:
    https://example.com/forums/topic/ask-anything-about-week-1-lesson/#post-51504 slope game

    and not like this (where I manually added the page number). this link works correctly:
    https://example.com/forums/topic/ask-anything-about-week-1-lesson/page/2/#post-51504

    Did we miss something in the configuration?

    Thanks

    I would like to find out too – following.

    #224183
    JohnnyScience
    Participant

    So I just got bbPress installed and working on getting it setup.

    I noticed the URL being a bit long and redundant:

    .com/forums/forum/ohio-medical/

    Is it possible in setting to pull one of those “forums” out of the URL?

    Thanks!

    #224174
    Robin W
    Moderator

    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.

    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

    Then come back

    #224160
    TreeTrail
    Participant

    Although I do not see it here, I received the following email:

    “hardep457 wrote:
    Thanks for posting this, I also face same problem till now.
    Post Link: https://bbpress.org/forums/topic/subforum-function-stopped-working/#post-224077”

    hardep457, I was unable to reach the person who created the original script. If you have an even remotely possible solution, it would be super awesome if you could share it.

    Regards,
    ~April

    #224159
    Robin W
    Moderator

    spectators should not be able to create topics.
    Participants by default can.

    you will either need to

    change participant permissions -see this

    Custom Capabilities

    or add

    Private groups

    and set up topic permissions which will then let you set up a group with permission to reply only

    #224152
    Laura Slezak
    Participant

    I am having an issue where all users, even with Participant or Spectator user permissions, are able to create their own topics for discussion. The way our site is set up, we want to limit the topic creation to admins or moderators. I cannot find a setting anywhere to turn off this ability for users to create new topics. cmti.crown.edu using Learndash 3.5.1. I’m not certain the version of WordPress and bbPress we are using but both have been installed and updated in 2021. Thanks for your help.

    #224132
    corrado
    Participant

    The solution is very laborious, I preferred to change the forum plugin.

    The structure of the bbpress forum is convoluted, it does not favor a simple compilation and installation, especially if you want to use “compilers / editors / themes” as divi.

    #224130
    quilp
    Participant

    Yes.

    I got a response from Elegant themes and they referred me back to bbpress without any suggestions.

    Do you have any suggestions for what I can do the next time it happens to capture more info to help troubleshoot?

    Thank you

    #224125
    quilp
    Participant

    WordPress version 5.8.1
    bbPress version, 2.6.6
    bbp user rankin 3.5

    link to site. http://www.kingdompen.org

    Theme: Divi Version: 4.12.0

    We’ve been experiencing periodic site instability that is temporarily resolved by deactivating and reactivating bbpress plugins. Instability includes all site pages returning “No Results Found” and/or global header being stretched across half the page.

    Error log is showing errors for bbp user ranking

    error log example:

    [29-Oct-2021 14:34:43 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
    Stack trace:
    #0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)

    Robin W
    Moderator

    I am nit a bbpress author, just someine who tries to help out here.

    bbpress has never worked well with threaded replies, sorry that’s just the way it is.

    it is really hard to do pagination with nested replies and make the display work intelligibly.

    If you know js well, then you could do some hide/show in css maybe, not my strong point.

    #224121

    In reply to: Shortcodes in Sidebar

    Robin W
    Moderator

    suspect that as bbpress has custom post types, your sidebar manager is responsible

    so standard testing advice 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.

    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

    Then come back

    gerryj
    Participant

    Hello bbpress Support

    I have two separate problems but for convenience sake, I’ll just open one topic.
    I am currently in the process of building a Forum for an already existing website.
    The Owner of this website wants threaded replies to be active for this forum so that users can reply to comments more directly. The problem is that as soon as the threaded replies are active the Page pagination just disappears and everything is displayed on one page. I’ve read online that those two features don’t work together on purpose, but why would that be? Nothing in the plugin mentions or even hints to it that these two features wouldn’t work together. Is there any kind of workaround for this or a custom script maybe? I have knowledge of PHP and JS so any kind of help would be appreciated.

    The Next issue is that there seems to be no way to collapse/expand threaded replies. Since the pagination didn’t seem to work I thought collapsing threaded replies would help or else the topic pages would just get crazy long. Is there any code out there that would help me achieve this?

    Any kind of help on even one of these issues would be appreciated.
    I Would like to avoid working in the plugin itself if possible for obvious reasons.

    Thanks in advance
    Gerry Zeller

    #224107
    Robin W
    Moderator

    untested, but this should take out newlines and change the excerpt length to 150 – just change the 150 in the code to whatever length you want.

    so firstly you need to alter the default in wordpress which is 55 so

    add_filter( 'excerpt_length', 'rew_change_default_length' ) ;
    
    function rew_change_default_length () {
        return 150;
    }

    then alter it in the bbpress function, and change to take out line breaks

    add_filter ('bbp_get_topic_excerpt' , 'rew_remove_line_breaks', 10 , 3) ;
    
    function rew_remove_line_breaks ($excerpt, $topic_id, $length){
    		$topic_id = bbp_get_topic_id( $topic_id );
    		//change length here
    		$length   = 150 ;
    		$excerpt  = get_post_field( 'post_excerpt', $topic_id );
    
    		if ( empty( $excerpt ) ) {
    			$excerpt = bbp_get_topic_content( $topic_id );
    		}
    
    		$excerpt = trim( strip_tags( $excerpt ) );
    		
    		//take out line breaks
    		$excerpt = preg_replace("/\r|\n/", "", $excerpt);
    
    		// Multibyte support
    		if ( function_exists( 'mb_strlen' ) ) {
    			$excerpt_length = mb_strlen( $excerpt );
    		} else {
    			$excerpt_length = strlen( $excerpt );
    		}
    
    		if ( ! empty( $length ) && ( $excerpt_length > $length ) ) {
    			$excerpt  = mb_substr( $excerpt, 0, $length - 1 );
    			$excerpt .= '…';
    		}
    		
    		
    		// Filter & return
    		return apply_filters( 'rew_get_topic_excerpt', $excerpt, $topic_id, $length );
    }

    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

    #224097
    aaronmckeon
    Participant

    I’ve noticed that any shortcodes in my sidebar are not rendering on bbPress pages. Is there a way to make it so shortcodes are rendering properly? I’ve been searching the forums and can’t seem to find an answer to this. Thanks for any help.

    – Aaron

    #224096
    elliesatt
    Participant

    Ah OK – I’ve just found out that RankMath simply extracts the bbpress topic excerpt and uses that for the meta description, i.e. bbp_topic_excerpt()

    Is there a way to make bbp_topic_excerpt() ignore line breaks and increase character limit?

    #224093
    Robin W
    Moderator

    @joel-mohanraj
    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    transfer this to your pc and edit

    so you will want to take the link out of line 34

    <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>

    and save

    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

    Then transfer the file you saved above 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

    amending the freshness will require you to amend the bbp_get_forum_freshness_link function. if you are familiar with filters you can use the filter on line 585 of \includes\forums and a str_replace to take out the link

    #224092
    Joel mohanraj
    Participant

    Yes, for example, on this page https://bbpress.org/forums/ I want to remove all topics links. So it will just have a dummy # link

    #224044
    lumisdev
    Participant

    Hello everyone!

    I’m a new user of bbpress and I’m looking for a way for logged in users to subscribe/unsubscribe to all forums by clicking a button.

    I’ve managed to do it by myself, but I’d like to know if there is an easier way to do it.

    Here is the code in my loop-forums.php file:

    
    <?php
    
    /**
     * Forums Loop
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined('ABSPATH') || exit;
    
    do_action('bbp_template_before_forums_loop'); ?>
    
    <?php
    $current_user = get_userdata(get_current_user_id());
    
    if (isset($current_user) && $current_user->ID > 0) :
      $user_subscribed_forum_ids = bbp_get_user_subscribed_forum_ids($current_user->ID);
      $forum_ids_list = array();
    
      while (bbp_forums()) : bbp_the_forum();
        if (bbp_get_forum_type() === 'category') :
    
          foreach (bbp_forum_get_subforums() as $subforum) :
            $forum_ids_list[] = $subforum->ID;
          endforeach;
        else :
          $forum_ids_list[] = bbp_get_forum_id();
        endif;
      endwhile;
    
      $check = sizeof($forum_ids_list) === sizeof($user_subscribed_forum_ids);
      $bbp_action = $check ? "bbp_unsubscribe" : 'bbp_subscribe';
      $label = $check ? "Unsubscribe of all forums" : "Subscribe of all forums";
      $label .= bbp_get_forum_type() === 'category' ? " of this category" : "";
    
      if (isset($_POST) && $_POST['action']) :
        foreach ($forum_ids_list as $forum_id) :
          $q_args = array(
            'action'      => $bbp_action,
            'object_id'   => $forum_id,
            'object_type' => 'post'
          );
    
          $permalink = bbp_get_forum_permalink($forum_id);
          $wp_nonce_url = esc_url(wp_nonce_url(add_query_arg($q_args), 'toggle-subscription_' . $forum_id));
          $wp_nonce_url = substr($wp_nonce_url, strlen('/'));
          $url = html_entity_decode($permalink . $wp_nonce_url);
    
          $ch = curl_init($url);
          curl_setopt($ch, CURLOPT_COOKIE, LOGGED_IN_COOKIE . '=' . $_COOKIE[LOGGED_IN_COOKIE]);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
          $response = curl_exec($ch);
          curl_close($ch);
        endforeach;
    
        $user_subscribed_forum_ids = bbp_get_user_subscribed_forum_ids($current_user->ID);
        $check = sizeof($forum_ids_list) === sizeof($user_subscribed_forum_ids);
        $bbp_action = $check ? "bbp_unsubscribe" : 'bbp_subscribe';
        $label = $check ? "Unsubscribe of all forums" : "Subscribe of all forums";
        $label .= bbp_get_forum_type() === 'category' ? " of this category" : "";
      endif; // isset($_POST) && $_POST['action']
    endif; // isset($current_user) && $current_user->ID > 0
    ?>
    
    <?php if (isset($_POST) && $_POST['action']) : ?>
      <script id="prevent-form-resubmission-when-page-is-refreshed" type="text/javascript">
        // source: https://stackoverflow.com/questions/6320113/how-to-prevent-form-resubmission-when-page-is-refreshed-f5-ctrlr
        if (window.history.replaceState) {
          window.history.replaceState(null, null, window.location.href);
          document.getElementById('prevent-form-resubmission-when-page-is-refreshed').remove();
        }
      </script>
    <?php endif; ?>
    
    <?php if (isset($current_user) && $current_user->ID > 0 && !bbp_is_single_user()) : ?>
      <form action="" method="POST">
        <input type="hidden" name="action" value="<?= $bbp_action ?>">
        <button type="submit" style="color: black;"><?= __($label, 'ls') ?></button>
      </form>
    <?php endif; ?>
    
    <table id="forums-list-<?php bbp_forum_id(); ?>" class="table table-bordered forums-list">
    
      <thead>
        <tr>
    
          <th class="forum-title-column">
            <?php esc_html_e('Forum', 'ls'); ?>
          </th>
    
          <th class="posts-count-column">
            <?php bbp_show_lead_topic() ? esc_html_e('Replies', 'ls') : esc_html_e('Posts', 'ls'); ?>
          </th>
    
          <th class="last-post-column">
            <?php esc_html_e('Last Post', 'ls'); ?>
          </th>
    
        </tr>
      </thead>
    
      <tbody>
    
        <?php while (bbp_forums()) : bbp_the_forum(); ?>
          <?php bbp_get_template_part('loop', 'single-forum'); ?>
        <?php endwhile; ?>
    
      </tbody>
    
    </table>
    
    <?php do_action('bbp_template_after_forums_loop');
    
    #224026

    Topic: Forum layout

    in forum Themes
    robert-s
    Participant

    We would like to get a forum layout on our website almost exactly how the forums are laid out here on bbpress.org/forums

    Does bbpress offer this? if not, how would I go about this?

    Thanks!

Viewing 25 results - 2,626 through 2,650 (of 64,474 total)
Skip to toolbar