Search Results for 'bbpress'
-
Search Results
-
Topic: bbpress language resets
Hello.
I am have successfully setup bbpress using the “second” method.
My site is multi-language (en/he/ru) so I have a different page for each “forum” page so it has a different language. For example
site.com/en/forum <- English version.
site.com/he/forum <- Hebrew version.
Each of this pages has the “[bbp-forum-index]” tag, bbpress appears on the correct page language and I can see the translation is working.The problem is that as soon as I click any link inside the bbpress, the language immediately switches to English.
How can I configure bbpress to maintain the language ?
I am using Polylang as the translation plugin. (WPML compatible)
Thank you.
Hello,
I have problem. I have on website bbPress with demo data but when i chose some forum or some subpage it’s blank. https://gamenice.sk/forum/
functions.php
<?php show_admin_bar(false); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); function theme_enqueue_scripts() { $template_directory_uri = get_template_directory_uri(); wp_enqueue_style( 'reset', $template_directory_uri . '/assets/css/reset.min.css', false, '1.0' ); wp_enqueue_style( 'app', $template_directory_uri . '/assets/css/app.min.css?v=' . time(), array( 'reset' ), '1.0' ); wp_enqueue_style( 'forum', $template_directory_uri . '/assets/css/forum.min.css?v=' . time(), array( 'app' ), '1.0' ); wp_enqueue_script( 'html5shiv', $template_directory_uri . '/assets/js/html5shiv.min.js' ); wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' ); wp_enqueue_script( 'selectivizr', $template_directory_uri . '/assets/js/selectivizr.min.js' ); wp_script_add_data( 'selectivizr', 'conditional', 'lt IE 9' ); wp_enqueue_script( 'jquery', $template_directory_uri . '/assets/js/jquery.min.js', false, '3.3.1' ); wp_enqueue_script( 'app', $template_directory_uri . '/assets/js/app.js', array( 'jquery' ), '1.0' ); wp_localize_script( 'app', 'carouselSettings', array( 'timeout' => get_option('carousel_timeout').'000' ) ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' ); function get_excerpt($where = ''){ $excerpt = get_the_content(); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); switch ($where) { case 'carousel': if ( wp_is_mobile() ) $excerpt = substr($excerpt, 0, 120); else $excerpt = substr($excerpt, 0, 250); break; case 'head': $excerpt = substr($excerpt, 0, 200); break; default: if ( wp_is_mobile() ) $excerpt = substr($excerpt, 0, 300); else $excerpt = substr($excerpt, 0, 725); break; } $excerpt = substr($excerpt, 0, strripos($excerpt, " ")); $excerpt = $excerpt.'...'; return $excerpt; } function get_thumbnail_url() { $thumbnail = get_the_post_thumbnail_url() != '' ? get_the_post_thumbnail_url() : get_template_directory_uri() . '/assets/img/og-image.png'; return $thumbnail; } function themename_custom_logo_setup() { $defaults = array( 'height' => 111, 'width' => 220, 'flex-height' => true, 'flex-width' => true, ); add_theme_support( 'custom-logo', $defaults ); } add_action( 'after_setup_theme', 'themename_custom_logo_setup' ); add_theme_support( 'post-thumbnails' ); function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), 'footer-menu' => __( 'Footer Menu' ) ) ); } add_action( 'init', 'register_my_menus' ); function show_menu($menu_name) { $defaults = array( 'theme_location' => '', 'menu' => $menu_name, 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => $menu_name, 'menu_id' => '', 'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul class="inline-list %2$s">%3$s</ul>', 'depth' => 0, 'walker' => '' ); wp_nav_menu($defaults); } include 'inc/theme-settings.php';forum.php
<?php include 'header.php'; ?> <section class="forum-wrapper"> <div class="container"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </div> </section> <?php include 'footer.php'; ?>Topic: Forum Description Not Saving
Wordpress version -5.0.2
bbpress – 2.5.14I have been trying to add a description to my forum but it doesn’t save.
WP : 5.0.2
bbPress : 2.5.14
Theme : Custom (built with _S)Hi everyone,
Im trying to simply display the number of “points” earned by the current user (points = replies + topics), but outside the profile page (in my header actually, so basically on my whole website).
Here is what I tried :
<?php
$topics = bbp_get_user_topic_count_raw();
$replies = bbp_get_user_reply_count_raw();$totalTopics = $topics * 5;
$totalsReplies = $replies * 2;$points = $totalTopics + $totalsReplies;
echo ” points = $points.”;
?>
When Im on the user’s profile page, this code worked lovely, but when Im outside of this page, anywhere on my website, it displays nothing.
Any idea of what is exactly my issue ?Cheers,
Chaaampy.
Hello there
I love bbpress. But schema doesn’t support it. Is there a study on this topic?Topic: Kunena 5 to bbpress
Hi All just wondering if there are any tools out there to migrate from Kunena 5 to bbpress, want to get away from joomla and move to wp. I see the tool supports Kunena3 but don’t seem to have any success with v5
Many Thanks
ChrisHello,
I am using the Ronneby theme by dfd on my site. It has a footer section that lets me put a page (like my contact form page) in the footer of my site but on my forum pages, it shows up as strings rather than what it should actually look like… is anyone else having this problem? How can I fix it?
Topic: Handling of links
Hi
Handling of links behaves a little bit annoying
- When transforming link as blockquote, bbPress strip off anchor.
- Linking to external bbPress page, bbPress does not add target=”_blank” to the link, which is annoying.
- bbPress doesn’t always convert link to another bbPress-page as iframe (see. https://www.sanaristikkofoorumi.net/wordpress/forums/topic/ongelmia-visuaalisen-editorin-kanssa/#post-9373 – there first the link to this site was first inside a blockquote, but next time inside iframe.
I am using the “bbPress Custom Reply Notifications” plugin to send bbPress emails. I’m able to use “author” placeholder/token successfully, so the author’s name appears in the sent email when a new topic or reply is posted.
Is there a placeholder for “username” to indicate the username of the person the email is being to?
I thought this would be great, as some people forget they signed up the forum and get an email weeks months later. Having “hi username…” would help them remember it’s something they signed for and not a spam, and it more personable.
Thanks for any suggestions.
Is there a function to specify replyID and get the number of replies to it?
For example, if you have the following HTML, I would like to know about functions that can write “
<?php xxx(100) ?>” and get “2”.<div id="bbpress-forums"> <ul id="topic-1-replies" class="forums bbp-replies"> <li> <div id="post-100"> <p>Hello!</p> </div> <li> <ul class="bbp-threaded-replies"> <li> <div id="post-101"> <p>Hi!</p> </div> <li> <li> <div id="post-102"> <p>Cheers!</p> </div> <li> </ul> </ul> </div>Topic: Buddypress, bbpress
Hi,
I am trying to create forums for groups in buddypress using bbpress.
I am really struggling to understand how they integrate. I have read lots of documentation and been through numerous support.
My users can create a group and a a forum for that group.
That forum then goes onto the forum page under a parent forum of group forums.Bit on the group’s page I can’t get the forums to show which is frustrating as when the user completes the group the forum isn’t viaible.
Can someone talk me through the set up or point me in the way of comprehensive instructions?
Thanks