Search Results for 'bbpress'
-
Search Results
-
Hi everybody,
I would like to creat a home for my forum who loop some forum in blocs. And in this bloc I would like to list sub forum with topic count, post count and freshness.
I make a mockup to be more precise ^^ You can the here: https://ibb.co/zFD60d1
I already try to make these loop but I can’t retrieve the freshness & counts for each sub forum.
And also I need to design differently each row but bbpress retrieve data in columns…
Do you already make something like this ?
I found this function:
//This function adds descriptions to the sub forums function custom_list_forums( $args = '' ) { // Define used variables $output = $sub_forums = $topic_count = $reply_count = $counts = ''; $i = 0; $count = array(); // Parse arguments against default values $r = bbp_parse_args( $args, array( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '<li class="bbp-forum">', 'link_after' => '</li>', 'count_before' => ' <span class="counts">[ ', 'count_after' => ' réponse(s) ]</span>', 'count_sep' => ' sujet(s), ', 'separator' => ', ', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, ), 'list_forums' ); // Loop through forums and create a list $sub_forums = bbp_forum_get_subforums( $r['forum_id'] ); if ( !empty( $sub_forums ) ) { // Total count (for separator) $total_subs = count( $sub_forums ); foreach ( $sub_forums as $sub_forum ) { $i++; // Separator count // Get forum details $count = array(); $show_sep = $total_subs > $i ? $r['separator'] : ''; $permalink = bbp_get_forum_permalink( $sub_forum->ID ); $title = bbp_get_forum_title( $sub_forum->ID ); $content = bbp_get_forum_content($sub_forum->ID) ; // Show topic count if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) { $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID ); } // Show reply count $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID ); // Counts to show if ( !empty( $count ) ) { $counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after']; } // Build this sub forums link $output .= $r['before'].$r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'].'<div class="bbp-forum-content">'.$content.'</div>'.$r['after']; } // Output the list return $output ; } } add_filter('bbp_list_forums', 'custom_list_forums' );I got the description of subforum, it’s a good start..
Hi,
I’m using bbPress and was wondering how I could remove the freshness column.
Thank you!
HI,
Ussing WP 5.1
BBpress 2.5.14Recently sometime, user are coming on the forum and whitout longin they are automaticly logged to an random user account…
Any idea ?
My intranet site is not sending bbPress notifications to subscribers. I’m able to get emails/notifications from other plugins, but unable to from bbPress.
I went into the /includes/common/functions.php file to change the “from” address, thinking it was detecting the wrong URL on the intranet, and I forced it to use to the same address that is successful with the other plugins. But that didn’t work.
Topic: downloadable files
Hello,
Is it possible to create an archive with downloadable files within the bbPress community?
Please let me know.Thanks.
Hello everyone,,
I admit I am a “newbie” and am having a bundle of problems. I am in the process of building a website which is still offline, and am very stuck. I am using ocean wp and I don’t know how to find out the version, but everything is new in the last 2 weeks.. sorry I really am a newbie…
I am making “TheAmericanQuarterHorse.com” and wanted to make a small forum page alongside of information pages, I had to do a whole pile of deleting and rebuilding on the forum site, but now I have the basic structure!! So that is a plus, but am stuck on the login–register-lost password widget. The first time I made it, it put the menu all over the place and the login was on every page. Iwas using bbpress tweaks, so uninstalled the bbpress tweaks, and ended up re-installing. I watched a whole pile of youtube on how to do it, and went back at it. I did all the “making the page” and putting the permalinks in the widget slot in the bbpress side bar. This time I had logins on every page BUT THE FORUM PAGE!!! This is the 3rd time I have deleted everything and started over.. I am about to forget the whole thing or use a different forum widget. I am STUCK. Any ideas??
The other thing is the text is sooo thin and tiny on the forum page it is hard to see. I have heard something about css, but have no clue about what that is or how to use it..
Would really appreciate any ideas..
thanksTopic: Forums Display Custom Menu
I want to display my “Forums” beneath a custom menu.
In image #1 I have a custom menu, with a tab for my forum.

When I click on a Forum, I’m taken to another URL, where I can no longer see the custom menu (see image #2)

Is there a way to have the custom menu appear on every Forum, or another solution would be to have the forum open in a new tab?
Topic: check if on forums directory
Is there a call to see if the user is on the all forums directory page?
The one that lists all the forums?
Something likebbpress_is_forums_directory()In one of our site, bbPress is used to display forum.
But bbpress.css is loading on the home page, where there is no widget or no forum.Screenshot – taken on incognito mode (logged out):
http://prntscr.com/mxmh1nHi everybody,
I’m actually developing a Forum for a WordPress site.
My Home is composed by 3 sections. Each section is a Forum who list child forum (I’m ok with that it’s already ok). But the last section need to be a Forum who list topics of this Forum.
But when I try to use <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> it’s a mess.
my content-archive-forum.php looks like:
<div id="bbpress-forums"> <div class="bbpress-header"> <div class="bbpress-header__image"> <img src="image.png" alt="Illustration sabre - Forum"> </div> <div class="bbpress-header__headline"><h1>Welcome</h1></div> <div class="bbpress-header__lead-paragraphe"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. <span>Donec vel auctor diam.</span> Nulla odio diam, maximus ut libero ut, <span>pharetra ullamcorper</span> orci. Sed magna nisl, pellentesque at ligula nec, condimentum viverra. Petit texte d’intro sur le forum (juste une idée)? </p> </div> </div> <?php bbp_get_template_part('user', 'bar'); ?> <?php bbp_breadcrumb(); ?> <?php bbp_forum_subscription_link(); ?> <?php do_action( 'bbp_template_before_forums_index' ); ?> <?php if ( bbp_has_forums() ) : ?> <?php bbp_get_template_part( 'loop','forums'); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div>How I can just add a section who display juste the list of the topic for a specific forum ?
Best regards ! 🙂