not certain this will work, but put this in the custom css area of your theme
#bbpress-forums ul li::before {
content : none !important ;
}
Just to add the function @Robin W offers still works… I added span style to the text to tweak it…
It also works this way for text after on the forum list page:
add_action ('bbp_template_after_forums_index' , 'follow_up' ) ;
Function follow_up () {
Echo '<div class="entry-content"><span style="color: #666666;">Here is my followup text.</span></div>' ;
}
just looked at the new code – try
remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 40);
remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 40);
Hi,
remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4);
remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4);
not work bbpress 2.6.4
is there any new code?
I’m never quite sure if I should add to a post that has the same problem, but is obviously unanswered for a long while, or post a new topic. But… our forum also has a very similar issue so it seems sensible to add it here.
For us, it seems to be specific to text-align (left, right or centre) and for “non-admin” logged in users.
It displays the html code as is, rather than using it to display the correct text alignment. All other html options in the visual editor we’ve tested so far seem to work – it’s just the text alignment that doesn’t. And only for non-admin users – the html works as it should if an admin user posts.
<p style=”text-align: right;”>right align</p>
Hoping for a solution? Am on current versions of bbpress, wordpress and bbp style pack and php version 7.3
so you couldput this in your functions file of your child theme, it takes out then new filter and puts back the old one
remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 8 );
add_filter( 'bp_notifications_get_notifications_for_user', 'rew_format_buddypress_notifications', 10, 5 );
function rew_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
// New reply notifications
if ( 'bbp_new_reply' === $action ) {
$topic_id = bbp_get_reply_topic_id( $item_id );
$topic_title = bbp_get_topic_title( $topic_id );
$topic_link = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
$title_attr = __( 'Topic Replies', 'bbpress' );
if ( (int) $total_items > 1 ) {
$text = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
$filter = 'bbp_multiple_new_subscription_notification';
} else {
if ( !empty( $secondary_item_id ) ) {
$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
} else {
$text = sprintf( __( 'You have %d new reply to %s', 'bbpress' ), (int) $total_items, $topic_title );
}
$filter = 'bbp_single_new_subscription_notification';
}
// WordPress Toolbar
if ( 'string' === $format ) {
$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
// Deprecated BuddyBar
} else {
$return = apply_filters( $filter, array(
'text' => $text,
'link' => $topic_link
), $topic_link, (int) $total_items, $text, $topic_title );
}
do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
return $return;
}
}
The current support bbPress has a neat theme. It will be helpful if we can refer it for the best practices and customization. I searched and could not find the source code for the forum’s theme or WordPress’s support theme. Where to find it? Is it open source?
My bbPress installation is customized a little and has subscribe and favourite buttons in a different place. Since 2.6 extra favourite and subscribe links are appearing in the lead topic header. Is there a way to remove the default ones and keep the ones generated by <?php bbp_topic_favorite_link();?>
and <?php bbp_topic_subscription_link(); ?>
?
ok, so you could use
Private groups
then when you set up each forum ‘I put the Forum creating shortcode on a page.’ you could also set up a group for the forum, add the creator as a member and give him permission to create topics.
It is a but labor intensive, but would work.
How many forums are you planning ?
I use User Role Editor to allow subscriber to add Forums. Then, I put the Forum creating shortcode on a page.
I’m using bbpress not buddypress.
However, I want to restrict the Topic creator to only be able to create a Topic inside of the Forum they created. Is there a way to do that?? Thanks!!
ok, try this instead
#bbpress-forums ul.forum-titles li.bbp-forum-info
{
font-size: 10px !important ;
}
#bbpress-forums ul.forum-titles li.bbp-forum-topic-count{
font-size: 10px !important ;
}
#bbpress-forums ul.forum-titles li.bbp-forum-reply-count{
font-size: 10px !important ;
}
#bbpress-forums ul.forum-titles li.bbp-forum-freshness{
font-size: 10px !important ;
}
In an attempt to manually indicate that a given forum has sub forums I added the following to the forum description:
Have you found a bug in the Midweek Editor? Or do you have a suggestion for a new feature? Then this is the forum to use. Sub forums: <a href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/midweek-editor/midweek-editor-styles/"><em>Custom Templates</em></a>, <a href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/midweek-editor/sample-midweek-editor-styles/"><em>Custom Templates – Samples</em></a>, <a href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/midweek-editor/monthly-workbook-information/"><em>Monthly Workbook Information</em></a>
It works. The problem is if I add new lines into the description they get stripped.
Hi Robin,
If I put it in the CSS section of my theme it doesn’t work. Is there another place where I can put this code? Thanks!
Sadly I had to publish my site with the old 2.5.x I’ve managed this by changing the version number of the plugin in bbpress.php
and readme.txt
to some insane version number which will never be hit in the near future.
I would still love some pointers on how to implement the pagination of treaded replies, which works with the hack for 2.5.x version of bbpress.
According to the trac it states:
Add bbp-has-subforums
if forum has subforums
Why am I not seeing this class present in the latest version of bbPress 2.6.4?
I saw this discussion:
a way to check for subforums
It implied it was fixed in bbpress 2.1:
https://bbpress.trac.wordpress.org/ticket/1803
But I don’t get it.
This is a sub forum with child forums:
<a class="bbp-forum-title" href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/midweek-editor/">Midweek Editor</a>
This is a forum with no child forums:
<a class="bbp-forum-title" href="https://www.publictalksoftware.co.uk/support-forums/forum/meeting-schedule-assistant/assignments-editor/">Assignments Editor</a>
As you can see, the code is exactly the same. I understood from the associated discussion that the forum with child forums would have a additional class specified so that we could use pseudo before / after to add a symbol to indicate it is a forum with sub forums.
Or do I have to go about this differently?
I am using bbp style pack.
Thanks for shedding any light on this.
I found some links about this with custom code but I don’t know how reliable that is because someone spoke about getting a white screen.
I think I would be happy just to have some kind of symbol next to the forum to indicate it has sub-forums. That would be less code requirement and might be able to be part of bbp style pack as an option?
try
.bbp-header {
font-size : 10px ;
}
Hey Guyes,
This issue because you are using this function [bbp_list_forums] in [loop-single-forum.php] with old (2.5.0) default args array in your active theme.
You must use [bbp_get_forum_id()] in function’s args, So try to find this function inside the active theme and change the value of the [forum_id] argument.
bbp_list_forums( array(
'before' => '<ul class="bbp-forums-list">',
'after' => '</ul>',
'link_before' => '<li class="bbp-forum">',
'link_after' => '</li>',
'count_before' => ' (',
'count_after' => ')',
'count_sep' => ', ',
'sep' => '',
'forum_id' => bbp_get_forum_id(), /* Fix for bbPv2.6.3 */
'show_topic_count' => true,
'show_reply_count' => true
) );
Hope it helps.
Hey Guys,
Since bbPress v2.6.4 undefined variable message appears in both admin and frontend pages
Notice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 456
Notice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 461
Notice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 467
I found variable [topic_id] inside two if statements in function [bbp_get_reply_url] so I think that you should move the variable definition in the function scope not inside the if.
If you google that [undefined variable: topic_id replies\template.php] you will find that a lot of online forums using bbPress generate that error in the front-end pages.
P.S. some people taking about BuddyPress but I think it should be fixed in the bbPress functions.
Thanks
@robin-w
The reason that it is dequeued is that it was built that way by the software company that built our theme. This, I assume, was so that the forum would look like the rest of our site.
My issue, by adding the ($args)
arguments (to that snippet of code) and by removing that one line of CSS has now resolved this issue completely.
Thank you!
you can use this code :
*/
class phpBB extends BBP_Converter_Base {
/**
* Main Constructor
*
*/
public function __construct() {
parent::__construct();
}
/**
* Sets up the field mappings
*/
public function setup_globals() {
// Setup smiley URL & path
$this->bbcode_parser_properties = array(
‘smiley_url’ => false,
‘smiley_dir’ => false
);
/** Forum Section *****************************************************/
// Old forum id (Stored in postmeta)
$this->field_map[] = array(
‘from_tablename’ => ‘forums’,
‘from_fieldname’ => ‘forum_id’,
‘to_type’ => ‘forum’,
‘to_fieldname’ => ‘_bbp_old_forum_id’
);
// Forum parent id (If no parent, then 0, Stored in postmeta)
$this->field_map[] = array(
‘from_tablename’ => ‘forums’,
‘from_fieldname’ => ‘parent_id’,
‘to_type’ => ‘forum’,
‘to_fieldname’ => ‘_bbp_old_forum_parent_id’
);
// Forum topic count (Stored in postmeta)
$this->field_map[] = array(
‘from_tablename’ => ‘forums’,
‘from_fieldname’ => ‘forum_topics’,
‘to_type’ => ‘forum’,
‘to_fieldname’ => ‘_bbp_topic_count’
);
I have it dequeued in my functions.php file:
wp_dequeue_style( 'bbp-default' );
@robin-w, @hydrogriff:
Hi, for me, the CSS styling issue is definitely a theme problem. In my styles.css file I have additional CSS for the styling of BBpress forum.
#bbpress-forums .bbp-forums-list li {font-size: 11px;}
I simply removed this line (font-size) from my style sheet and the standard BBPress kicked in.
Regarding the first code, you are right. This dequeues bbPress related style-sheets for most of the users who don’t visit forum page.
The second code highlights the lead topic, like it does on this forum. I used the code from the codex.