Search Results for 'bbpress'
-
Search Results
-
Topic: WP-CLI commands for bbPress?
Hi there,
if I run a command likewp post-type listI have ‘forum’, ‘topic’ and ‘reply’ which are listed but when I runwp post list --post_type=topicthe table remains empty , is this normal?
Thanks for your help!
LudovicHello 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?
Topic: How to shorten default URL?
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!
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.
WordPress version 5.8.1
bbPress version, 2.6.6
bbp user rankin 3.5link 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’)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 ZellerTopic: Shortcodes in Sidebar
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
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');Topic: Forum layout
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!