@cassel – also is this just starting – when I looked at 2.6 code that does this bit, it has not changed much from 2.5 so couldn’t see anything that should affect on the change to 2.6?
I’ve just taken a look at the code, and yes in 2.6 it is reversed
includes/common/widgets.php
in 2.5 it says
'orderby' => 'menu_order title',
'order' => 'ASC'
in 2.6 it says
// Order
'orderby' => 'menu_order title',
'order' => 'DESC',
There is no available filter to change this
@johnjamesjacoby was this change deliberate ?
I tried 2.6.2 as well. As reported in the Child CSS post, I am facing this issue as well. Sub-forums are not displayed. I did purge the cache and tried saving forums too. The following things are not working.
- Subforums wont display
- Replies to topic wont display
- Custom CSS won’t load
@johnjamesjacoby, if it’s any help, I found these info after testing other versions of BBPress.
The subforums and replies were still working in 2.6-beta-1 and 2.6-beta-2.
Additional information:
- CSS stopped working since
2.6-beta-1.
- Replies to topics stopped working since
2.6-rc-1.
- Subforum display stopped working in
2.6-rc-7.
This is a nightmare from what i can see unless you use the TEXT editor and the CODE tag ONLY.
If I insert some sample XSL script into CODE blocks. Example:
<xsl:choose>
<xsl:when test="@ItemPosition='1' and Assistant!=''">
<xsl:text><span style="background-color: #ffff00;">1st:</span> </xsl:text>
</xsl:when>
<xsl:when test="@ItemPosition='2'">
<xsl:text><span style="background-color: #ffff00;">2nd:</span> </xsl:text>
</xsl:when>
<xsl:when test="@ItemPosition='3'">
<xsl:text><span style="background-color: #ffff00;">3rd:</span> </xsl:text>
</xsl:when>
</xsl:choose>
I can edit it to my hearts content. But if I use the TinyMCE edit to edit this post (with the TinYMCE editor being the default at the moment I edit) it strips all the XSL syntax.
Now, I realise that I can add a load of XSL tags into my custom functions.php class to permit these syntax words but that will be a nightmare. XSL has a lot of syntax. Is there really no standard (TinyMCE compatible) where we can insert code snippets and they look correct to the user and still be editable afterwards in either editor?
I created a new topic today:
https://www.publictalksoftware.co.uk/support-forums/topic/is-it-possibly-to-modify-1st-2nd-3rd-translations-on-the-new-s-89-template/
It is a private forum post. I used TinyMCE editor and it has:
– Paragraphs
– Table
– Background colour
– Code snippets
– Heading 3
I hit “Submit” and the topic looks good.
I click “EDIT” and alot of all the underlaying HTML is stripped.
So I hit BACK in my browser. I set the default editor as TEXT and then I clicked EDIT and this time the whole text showed in the TEXT editor.
Why did the TinyMCE editor strip the content?
I am using:
– WordPress 5.3 (it uses TinyMCE 4.9.6 internally)
– bbp Style Pack
– TinyMCE ADvanced
– Advanced TinyMCE Configuration
I seem to recall I used to have the same problem in general in Wordress when editing posts that had code in them would show funny. I really don’t know enough about the mechanics of the whole system to know where to look or who to direct the issue towards.
If anyone can replicate this problem or can direct me to a resolution I would be grateful. Thank you.
ok, change your code to
@media only screen and (max-width: 600px) {
#new-topic-0.bbp-topic-form, .bbp-reply-form {
width: 50%;
}
}
Hi @robin-w
1/ Yes, moderation is switched off. Since the “links” might potentially include any type of item that has a URL in it I did not see it practical to just increase the number of links. So moderation has been switched off for several days now:
// ==============================================================
// Switch off bbPress Forum moderation
add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
// ==============================================================
2/ It is never random. It is on the demand. Every reply to a topic I made yesterday needed me to run the tool to fix everything.
I am assuming that there is breakage in rolling freshness results back up the hierarchy.
I still have a bug with the inserting of videos. If I am creating the topic / reply as an ADMIn then the code is correct:
<video controls="controls" width="300" height="150">
<source src="https://www.publictalksoftware.co.uk/videos/forum/pts-test-video.mp4" type="video/mp4" /></video>
When you hit SUBMIT the video can be played etc.
But when you are NON-ADMIN and hit SUBMIT the outer chevrons of the inner SOURCE tag get escaped. I don’t know where this issue lies:
– WordPress 5.3?
– TinyMCE Insert Media Plugin 4.9.6 ?
– bbPress 2.6.2?
I’ve sorted it (excuse formatting):
if (( $forum_id == 40088) ){
?>
<?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 1, 'post_parent' => '40088' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();?>
<li class="fa-thumb"><div text-align="center"><a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));?><br>
<span class="fa-link"><?php bbp_topic_title(); ?></span></div></li>
<?php
endwhile;
?>
<?php
}
@robin-w If it helps, I did a search for _bbp_last_active_time in the post meta table and only one entry had today’s date (the reply I had made).
I then did a search for my forum in question as “post_id” to see what it shows:
_bbp_last_active_time 2019-11-20 19:01:31,
_bbp_last_active_id 3546,
_bbp_last_reply_id 3546,
_bbp_last_topic_id 3546
If I then run the tool to get the freshness correct in the forum and examine the same records again:
_bbp_last_active_time 2019-11-24 08:06:38,
_bbp_last_active_id 3580,
_bbp_last_reply_id 3580,
_bbp_last_topic_id 3546
So the database is not getting updated with the freshness and it is not a caching issue.
I should add that this appears in loop-single-forum.php where I am including a condition:
<?php $forum_id = bbp_get_forum_id();
if (( $forum_id == 40250) or ( $forum_id == 41369) ){
?>
I’d like to then follow this with something that displays the latest topic permalink/title and topic author/avatar.
@barryhughes-1 Thanks Boss, it worked so well……..
your the MAN.
do you have any code for voting?
Yes, I tried many of them(don’t try reCAPTCHA-like plugins), they can work when uncheck “Allow guest users without accounts to create and replies”. They disapear when checking “Allow guest users without accounts to create and replies”.
So I want to ask if there something like add or delete some php code to solve the problem?
Hi there!
I’m trying to get a bbpress forum set up on my site, and while we’ve got the majority of it set up the way we’d like, there’s an issue when someone tries to access the forum via mobile/smartphone.
The reply box seems to overflow over the edge of the screen, such as in this picture:

I tried to adjust the width of the bbpress-topic-form using the Custom CSS on my theme, but while this seems to work for narrow browser windows on desktop, the mobile view remains the same as it does in the picture above.
For reference, this was the code I was trying:
@media only screen and (max-width: 600px) {
#new-topic-0.bbp-topic-form{
width: 50%;
}
}
I was wondering if anyone had any ideas on what might be going on here? I’m running the Gridmag theme (not pro) at the minute, could that be causing a conflict?
Thanks for the 2.6.2 update, which attempts to address this issue.
Unfortunately, it’s not working in my theme. I still require bbpress.min.css.
I’m running a custom theme under Genesis 3.2.1. I’m pretty sure I’m following the instructions for theme compatibility. The css file is in a folder labeled “css” in the theme root.
This does not appear to be a cache issue. The appearance of the page changes when I switch back and forth.
I’ve reproduced this bug on a LocalbyFlywheel development site and a live staging site.
I’ll monitor this thread. Let me know what else you’d like me to try.
@kent25 It’s not because things are not in the basic code that you cannot do it. bbPress is very flexible and open to extensions. See the response in https://bbpress.org/forums/topic/how-to-fix-old-topic-moving-to-first-topic-when-a-reply-is-made/
Add this to your child theme functions.php or use a snippet plugin:
// ==============================================================
// Switch off bbPress Forum moderation
add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
// ==============================================================
I imagine somewhere in these forums there must be an example of code that will help with this, though my own initial search let me down. Even so, it’s certainly possible to do and here is a minimal example of the sort of code you could use:
https://gist.github.com/barryhughes/1d52e7562e5d2e6f5121981a4babdd36
To meet your individual needs it may need refinement or adjustment (every site is different, there could be factors for you, locally, that I don’t know about). It’s just a starting point.
For those who might be tempted to use this but are unfamiliar with code in general, note that if you do copy this code to an existing file, such as your theme’s functions.php file, then you don’t need to copy the opening “<?php” tag—just place it somewhere after the existing tag in whichever file you are editing.
Am really new to bbpress, How do i fix an old topic becoming a first topic when a member makes a reply on it?
i my forum, there are different topics made by members, on daily bases but i found out that when a new member replies to an old topic, that topic automatically moves to the top of other new topics…
this is a pain. pls is there a code to stop this, i don’t need plugins for it.
function new_forums_notice_to_menu($items, $args) {
if(count_new_forum_posts() > 0){
if( $args->theme_location == 'primary' )
$items .= '<li><a href="http://***/forums/" text-transform="lowercase" text-shadow="2px 1px 2px black"><font color="red">Šios savaitės naujos žinutės forume: <span>'.count_new_forum_posts().' ('.count_new_forum_post_time().')</span></font></a></li>';
return $items;
I try to hook up to my menu (later on exact menu element “Forums” ) to print “There is (count_new_forum_posts()) new posts this week”
My head menu should be Home Personel Phones Forum (2) News. But now there is problem only with replies count. I think there is problem with my query ‘key’ => ‘_bbp_last_active_time’ cant be assosiated with ‘replies’ data only with ‘Topics’. I am very green on programming so strugling. I already fixed kinda problem by adding (last reply date – current date time diference).
I’ve looked further at the code, and yes my translation won’t work for time.
I am just a bbpress user who helps out on this forum, so I cannot say when the devs will complete the translations.
This is why I have switched off moderation:
// Switch off bbPress Forum moderation
add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
Add that to your child theme functions.php or a snippet.
Hi Robin;
you’re absolutely right and I did it but
1) I have a very complex environment (Buddy Groups, Private and public stuff …)
2) I wanted to be certain of my results so as not to have to start the whole structure again in case of error
3) finally make everyone benefit from this answer.
So for me the sub-forums of a private forum are private by default (but, I will still mark them private jus in case)
Note: I also think that it is information that could be added in the bbPress codex.
Thank you for answering.
bV
this is because 2.6 has changed some wording and context, and the new translations have not been made yet
to fix the above either use this
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 );
add_filter( 'ngettext', 'rew_bbpress_translate' , 20 , 3 );
function rew_bbpress_translate( $translated, $text, $domain ) {
if ($domain == 'bbpress') {
$words = array(
'%s day' => '%s jour',
'%s days' => '%s jours',
'Last Post' => 'Dernier message',
);
$translated = str_replace( array_keys($words), $words, $translated );
}
return $translated;
}
Put this in your child theme’s function file – or use
Code Snippets
or use the translations tab in my style pack plugin
bbp style pack