HWParticipant
Hi There,
My client had reported a strange issue that started recently. If I navigate to the forum page, then login to WP, the WP admin bar displays at the top as normal. When I navigate back to the forum page after logging in, the admin bar does not show up on this page only until I refresh the page. At first I thought it was a caching issue with a Autoptimize cache plugin but it still occurs after I deactivate.
There is an error logging for bbPress repeatedly:
[04-Apr-2017 17:56:26 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘))) AND hn09m16p3_posts.post_type IN (‘topic’, ‘reply’) AND (hn09m16p3_posts.po’ at line 1 for query SELECT hn09m16p3_posts.* FROM hn09m16p3_posts FORCE INDEX (PRIMARY, post_parent) WHERE 1=1 AND (hn09m16p3_posts.ID = 8481 OR hn09m16p3_posts.post_parent = 8481) AND ((())) AND hn09m16p3_posts.post_type IN (‘topic’, ‘reply’) AND (hn09m16p3_posts.post_status = ‘publish’ OR hn09m16p3_posts.post_status = ‘closed’ OR hn09m16p3_posts.post_status = ‘reported’ OR hn09m16p3_posts.post_status = ‘acf-disabled’ OR hn09m16p3_posts.post_author = 217 AND hn09m16p3_posts.post_status = ‘private’ OR hn09m16p3_posts.post_author = 217 AND hn09m16p3_posts.post_status = ‘hidden’) ORDER BY hn09m16p3_posts.post_date ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
I used the repair forums tools one by one and now all the forums/topic/replies content is not displaying but the count is correct for each forum/topic, when I go into any of the forums/topics it says “Oh bother! No topics found here”.
I’m currently setting up a test site to strip it down and see if I can find the cause but I wanted to post this to make sure it isn’t a general bbPress issue with the SQL statement. Any help would be appreciated.
Wordpress version: 4.7.3
bbPress version: 2.5.12
Thanks!
Hi,
I tried to add a custom css style to roles label, and it looks cool, but It doesn’t look right in mobile devices. I tested several codes without success.
May anybody help about it?
1.- Right now looks like this:
2.- I would like to have something like this:
Code:
{text-align: center;
margin: 0 0 5px 0;
padding: 1px;
font-style: normal;
border: 3px double #050505;
background-color: #fff;
color: #070707;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;}
Thanks,
Hey Guys,
maybe you can help me. I registrate now a new subdomain on my Homepage. I installed there a new version of Wp. After them i download the bbpress Plugin and everything works fine in the installation. Now when i go to “Forum” it jumps zu a empty page that says “The site http://www.gamingtournamentleague.com does not work”. Wenn i go the “New Forum” i can add a Forum but wenn i go than to preview it shows me again “The site http://www.gamingtournamentleague.com does not work”.
I changed the theme, i also deleted the plugin and i use shortcodes but nothing works…
Theme: Twenty Eleven
WP: 4.7.3
bbpress: 2.5.12
My Subdomain: http://www.gamingtournamentleague.com/register
It happens because you are creating two pages with the same url… I mean, bbpress has a root and also shortcodes, so you can create an index forum or main page forum using shortcodes but they always going to the root (/forums) and you also have a page called (/forums). You can see what I said if you try breadcrumbs from the topic to the root…
Hi Robin, and thanks a lot for your answer. I spent thours trying to achieve this but without success. The search just always returns results from all forums. I must confess I’m a beginner with PHP… But, is there any chance that this feature could be added in your “bbp additional shortcodes” plugin. Something like [bbp-search forums='10,12,15']. I just discovered your plugins on your website and you did an amazing work. Of course I’m ready to give some donation for that but I like to know if this is possible or not first 🙂 But maybe it’s not as simple… Thanks
Yes,
If your remember, I have a page dedicated to Members and protected by a password (with or without it doesn’t make any difference either, of course), and the 3 following pages on the which I simply pasted the relevant short codes:
– “Forum” which is the default bbpress root page, I simply added a shortcode for the connection widget thanks to a plugin otherwise I couldn’t have done it on this specific page (but my VM doesn’t have it and again it makes no difference)
– “Registration”
– “Reset password”
Regards,
Philippe
Hey oyegigi,
Thanks for this, it works like a charm. I used the plugin “Shortcodes in Menus” as a quick solution to output to a menu.
Would be great if you could amend the code to show, only if user is logged in?
Thanks again!
lots of shortcodes available for putting into pages and posts
Shortcodes
and I have additional shortcodes in my style pack plugin
https://wordpress.org/plugins/bbp-style-pack/
bbp additional shortcodes plugin solved the problem 🙂
Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.
What does this mean??
I’ve set the forums root to “forums”. Then I’ve created a WP-page with slug “forums” and included some shortcodes.
The WP-page is ignored, so content displayed on /forums is the bbpress default index page.
What does this mean: “Partner with a WordPress Page and use Shortcodes for more flexibility.”??
How do I replace the default index with a WP-page?
you may need to add this to your functions file to get it for particpants
add_filter (‘pw_bbp_parse_shortcodes_cap’ , ‘publish_topics’ ) ;
This used to work, see no reason why it should not still be fully functional!
https://wordpress.org/plugins/bbpress-do-short-codes/
Hi,
Is it possible to use WordPress shortcodes in bbPress posts? (I mean either native WordPress shortcodes such as [caption][/caption]
, [gallery ...]
, or shortcodes defined by third-party plugins).
To be more precise, I’m the author of a WordPress plugin that allows to insert chess diagrams and/or chess games in WordPress posts/pages (see https://wordpress.org/plugins/rpb-chessboard/). I would like to extend to have chess games/diagrams in bbPress posts.
Thank you beforehand.
if you are happy with css codes then
bbPress Styling Crib
Otherwise the bbp style pack will let you change it, and much else besides
https://wordpress.org/support/plugin/bbp-style-pack
I use polylang plugin to create a two language site: English and Arabic. I installed bbPress and created two index pages using short codes: one that is linked to the Arabic home page and the other is linked to the English home page (in the main menu). But I used the same short code. Now all new forums appear on each of the pages regardless of the language. I do not have a language selector for new forums (or any forums for that matter). I am not sure how to get the new forum to appear in its specific page. Please note that this is my first site, I am practically a novice… So feel free to guide me to the right approach. May
Hi and thanks for your quick answer.
I have child theme and I can copy bbpress theme inside it.
I’d be thankful if you tell me how can I use these codes.
Please consider that I want to let Keymaster and topic owner to edit topic tags.
Shortcodes
[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.
I have the same problem as you – the shortcodes don’t work.
I did what you said here – reset the forums – but no change – the same problem.
Still not working …
I have used Stephen’s code above and it works perfectly.
However, I have 8 forums on my site so if I wanted to add a random button for each separate forum that only selects topics from that forum would I have to create 8 different function ntwb_bbpress_random_single_topic() in my .php and include only a single forum ID every time or is there a better way to implement this? Also, how and where would I add the shortcodes so that they only show on the relevant forum?
Am using:
Twentythirteen wordpress theme
bbPress – Version 2.5.12
With bbPress I have created a number of forums
But – when I put the following short code into a page:
[bbp-forum-index]
it shows nothing …
Please – what am I doing wrong?
the topic index shortcode in my style pack plugin might be what you need
https://wordpress.org/plugins/bbp-style-pack/
go to
dashboard>settings>bbp style pack>shortcodes to see what is available and how it works
Two to be precise.
#1. Registration: I take it you need to set up a page and to add a shortcode.
#2. Lost Password. Again I understand you need to set up a page and add a shortcode.
You need to tell people, instead of acting as though they automatically knew this. And in these instructions to the page on installation. In addition, make sure to include the softcodes needed.
Don’t make setting up the plugin any more frustrating than it has to be.
Does the free model offer shortcodes ?
Could I make a simple form or Send pm button which i could add to the sidebar ?