Search Results for 'bbpress'
-
Search Results
-
Topic: Links in new topic
Hello there,
I have a problem with pasting links in new topics : they do not display. (They do display normall in replies though)
This is due to trying to inverse order of replies : I used bbpress toolkit for that purpose and the problem happened.
I also tried inverting replies order with this snippet in functions.php file :function custom_bbp_has_replies() {
$args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)return $args;
}add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = ‘true’;
return $show_lead;
}add_filter(‘bbp_show_lead_topic’, ‘custom_bbp_show_lead_topic’ );
the snippet works as far as replies rder is concerned, but then I bump in the same problem, links not displaying in new topics.
Any clue how to invert replies order without this link issue ?
thanks
When someone creates a post, the site sends an email to the site’s correct gmail address, the poster , and also “noreply@my-site.com” The emails to “noreply” bounce and gmail gives me repeated notifications of delivery problem because there is no such address.
I can’t figure out where these email are coming from and how to stop sending the notification to the “noreply” address. I don’t see a setting in the bbpress setting about email notifications.
I was wondering if it’s possible to set up master forums with bbPress. We have a client that has a courses site and would like to setup forums for each course. So this page for example: http://mbmembers.staging.wpengine.com/community-forum/ would be one of multiple “master” forums.
Other items they are looking to implement that may or may not be available through this plugin include:
- different master forums for different courses on site as mentioned above
- each master forum has sub-forums, then threads
- on threads, responses to topic or other responses get nested (saw this as an option and have it enabled but I’m not seeing the replies indented at the moment on the test link above)
- option for people to receive an email per forum post, or a daily digest per that sub-forum
- ability to turn email for each sub-forum on/off – or switch to daily digest vs. individual posts
- exception is Announcements sub-forum – everyone should be automatically subscribed to individual messages email, can change to daily digest, but users CANNOT turn off emails for this sub-forum
- note: it may be wise to have a spot on the My Account page (a tab?) where users can edit their email preferences for all the forums at once
- only admins can start new threads in Announcements sub-forum; other forums anyone can start a new thread
- we are creating a participant directory — the front-end needs to have links to for users to view a participant’s forum posts, or the forum threads they’ve started (currently, these are two separate links)
Any help or info you can provide would be super appreciated.
Hello, I have a problem with the forum on my site. We created a forum with bbpress a year ago, we created categories, forums and sub sections without problem. But today, I want to create new sub sections or modify them but I can not choose a “parent” as a forum attribute. I select it, I update it, but it does not apply to me and create a new forum / category.
Example: I have category “Welcome”, in forum “presentation”, sub section “major” / “minor”. => Welcome / Presentation / Major (or) Minor
If I want to change “major”, it will put me in a new category that will be called automatically “forum” and I would have: Forum / Major, and below “Welcome / presentation / etc”.Why is he adding a new forum?
I’m French, sorry for this translate.
Bonjour, j’ai un soucis avec le forum sur mon site. Nous avons créer un forum avec bbpress il y a un an, nous avons créer des catégories, des forum et sous sections sans problème. Mais aujourd’hui, je veux créer de nouvelles sous sections ou modifier celles-ci mais je ne parviens pas a choisir un “parent” en attribut de forum. Je le selectionne, je met à jour, mais il ne me l’applique pas et me créer un nouveau forum/catégorie.
Exemple : I have catégorie “Bienvenue”, dedans forum “présentation”, sous section “majeur”/”mineur”. => Bienvenue/présentation/majeur(ou)Mineur
Si je veux modifier “majeur”, il va me le mettre dans une nouvelle catégorie qui va s’appeler automatiquement “forum” et j’aurais donc : Forum/Majeur, et en dessous “Welcome/presentation/etc”.Pourquoi est-ce qu’il m’ajoute un nouveau forum?
Wordpress 5.0.3
bbpress 2.5.14Some users are able to create topics and posts, and also reply to posts. One user in particular gets the “ERROR: Your topic (or reply, depending) cannot be created at this time.”
All plugs except the bbpress plugin and the bbpress tweak plugin were deactivated then I logged in under the user’s name. The problem remained.
The Comment Blacklist under Dashboard\Settings\Discussion is totally blank. No naughty words in there.
There are no “groups” as such. All users are veterans and members of this organization. No need for additional “groups”.
I created a dummy account under my wife’s username, email, and a password and that works fine. She can create topics and replies. Other users don’t have an issue.
I am not able to replicate this problem anywhere – only with the user DickB. (His user name was originally “Dick_Bartlett” but I got rid of the underscore thinking that might be a problem.)
I have reviewed as many bbpress articles as I could find on this issue.
I’ve run out of ideas, and there don’t appear to be any more answers to this problem that I’ve been able to find.
So I’m turning to you experts to figure out how to get this user on track.
Topic: Help with installation
Hi,
I am new with setting up a forum for wordpress.
I want to integrate BBPress with my website but i dont know if the theme supports it.Anyone who has time to set this up ?
Thanks
Peter
Topic: All Forums not showing
WordPress Version 4.9.9 bbPress version 2.5.14 Using theme Twenty-Sixteen https://applebranch.org/seminary I have a lot of forums – one for every class I offer in my online school. However on the main page where students access the current forum for their class – it only shows forums through the first forum beginning with R (listed alphabetically). This is a recent development. I have looked at the set ups and settings and cannot find a reason. Is there a limit to the number of forums? If not, how can I get them all to show? Thank you.
Uncaught ReferenceError: addReply is not defined
at HTMLAnchorElement.onclick (VM383:663)
onclick @ VM383:663using BBpress Version 2.5.14
buddypresss Version 4.1.0
WP 5.0.3on ubuntu DO server, nginx, mariaDB
Hello,
I’ve been having issues with breadcrumbs, and gone through various mechanisms to get them working efficiently with no joy.
My needs are simple, so looking to create a simple button in my single topic template to go back to the forum the topic is a part of.
Can anyone suggest the best URL and code to use?
/ Background:
– I have created multiple single forums
– I have then created multiple WP pages, and used the single forum shortcode to embed the forum in the page
– I’d like to include one button at the top of the topic, that simply takes the user back to the relevant page that is hosting that particular forum (not the bbP forum page)/ Location of code:
I am guessing (non-coder) that the best location for this code would be as follows (within content-single-topic.php). Is this correct? (see code below)
<?php/**
* Single Topic Content Part
*
* @package bbPress
* @subpackage Theme
*/?>
/* BUTTON HERE */
<div id="bbpress-forums">
<?php bbp_breadcrumb(); ?>
<?php do_action( 'bbp_template_before_single_topic' ); ?>
Cheers,
Michael
I can really use a plugin that blocks certain words (such as company names that are spam) or spam urls in the post body.
I’m looking at the “bbpress moderation” plugin but that doesnt seem to cover spam words or bad words.
Anyone have suggestions on blocking words or flagging posts for moderation if it contains certain words?
Seems like this would be a great upgrade to the plugin mentioned.
Much appreciated.
Hi,
I have created a custom notification for my site when a post is published, the code used to do this is :-
// this is to add a fake component to BuddyPress. A registered component is needed to add notifications function custom_filter_notifications_get_registered_components( $component_names = array() ) { // Force $component_names to be an array if ( ! is_array( $component_names ) ) { $component_names = array(); } // Add 'custom' component to registered components array array_push( $component_names, 'publishpost' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' ); // this hooks to post creation and saves the post id function bp_custom_add_notification( $post_id, $post ) { $post = get_post( $post_id ); $author_id = $post->post_author; $blogusers = get_users( array( 'role' => 'staff' ) ); // Array of WP_User objects. foreach ( $blogusers as $user ) { bp_notifications_add_notification( array( 'user_id' => $user->id, 'item_id' => $post_id, 'component_name' => 'publishpost', 'component_action' => 'publishpost_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } } add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 ); /** * Format the BuddyBar/Toolbar notifications * * @since bbPress (r5155) * * @package bbPress * * @param string $action The kind of notification being rendered * @param int $item_id The primary item id * @param int $secondary_item_id The secondary item id * @param int $total_items The total number of messaging-related notifications waiting for the user * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar */ function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'publishpost_action' === $action ) { $post = get_post( $item_id ); $author_name = get_the_author_meta('display_name', $post->post_author); $custom_title = bp_core_get_user_displayname( $post->post_author ) . ' published a new post "' . get_the_title( $item_id ) . '"'; $custom_link = get_permalink( $post ); $custom_text = bp_core_get_user_displayname( $post->post_author ) . ' published a new post "' . get_the_title( $item_id ) . '"'; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'publishpost_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'publishpost_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } 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; } } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 1, 5 );How can i create the same for a new bbpress topic? i’m thinking i need to change this code section but not sure how
// this hooks to post creation and saves the post id function bp_custom_add_notification( $post_id, $post ) { $post = get_post( $post_id ); $author_id = $post->post_author; $blogusers = get_users( array( 'role' => 'staff' ) ); // Array of WP_User objects. foreach ( $blogusers as $user ) { bp_notifications_add_notification( array( 'user_id' => $user->id, 'item_id' => $post_id, 'component_name' => 'publishpost', 'component_action' => 'publishpost_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } } add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 );I am using woffice as the theme, bbpress version 2.5.14, buddypress version 4.1.0 and the latest version of wordpress
Thanks