Is there a plugin that does this:
When a new WordPress post is created, a Forum topic is automatically created.
When a user posts a comment, they are posted as replies to that forum thread.
Does that exist?
Is there a plugin that does this:
When a new WordPress post is created, a Forum topic is automatically created.
When a user posts a comment, they are posted as replies to that forum thread.
Does that exist?
Problem: for for creating a new topic is below the forum index. When I fill it out and do a mistake, the page gets reloaded, but all of the error messages are down below and out of initial sight. One has to scroll down to see them.
Since I cannot place the form above the forum index, I have to find a different way.
One solution would be using a lightbox to display that New Topic form. After sending it would display any messages and eventually close itself after some delay. Or just be closed manually.
I have Fancybox installed, but don’t know how to go about putting the New Topic form in it and make it behave like described above.
Can someone help or at least point me to a decent tutorial?
thanks
bbpress it is the best plugin for forum that i have ever used thanks for sharing the plugins like this
I’ve done several searches on the internet, have run through troubleshooting (repairing forum operations one by one), disabling all plugins etc, yet still people cannot see our topics…
I’m stuck on how to fix this….
Hi,
I am trying to create a plugin for my own use, I think the problem is a coding one.
I have copied some of this code from a plugin and added some myself to try to create my own plugin rather than adding it to my function.php file.
1. I have added a new record in the postmeta table with the topic ID. meta key and meta value for every topic I have in the table.
2. I want a meta box at the backend on both the topic and reply screens, in the metabox for both screens I want to show the meta value of the associated topic.
I have done both these
3. I would like to be able to change this value, but only in the topic screen.
With the code below, if I change the value in the reply screen when I update nothing changes which is great, but if I change the value in the topic screen, when I update I get a blank value returned and the original value in the table is also removed.
When I create a new topic I would also like to populate the meta table.
*/
class bbPress_add_meta_fields {
/**
* Construct.
*/
private $match_m_fields = array();
public function __construct() {
if ( is_admin() ) {
add_action( ‘load-post.php’, array( $this, ‘init_metabox’ ) );
add_action( ‘load-post-new.php’, array( $this, ‘init_metabox’ ) );
$this->match_m_fields = array(‘topic’, ‘reply’);
}
}
/**
* Meta box initialization.
*/
public function init_metabox() {
add_action( ‘add_meta_boxes’, array( $this, ‘add_metabox’ ) );
add_action( ‘save_post’, array( $this, ‘save_metabox’ ), 10, 2 );
}
/**
* Adds the meta box.
*/
public function add_metabox() {
add_meta_box(
‘bbp_m_field_metabox’,
__(‘Twitter name’, ‘textdomain’ ),
array( $this, ‘render_metabox’ ),
‘topic’, ‘side’, ‘high’
);
add_meta_box(
‘bbp_m_field_metabox’,
__( ‘Twitter name’, ‘textdomain’ ),
array( $this, ‘render_metabox’ ),
‘reply’, ‘side’, ‘high’
);
}
/**
* Renders the meta box.
*/
public function render_metabox( $post ) {
// Add nonce for security and authentication.
wp_nonce_field( ‘custom_nonce_action’, ‘custom_nonce’ );
// get the topic id
$post_id = get_the_ID();
$reply_topic_id = bbp_get_reply_topic_id( $post_id );
// get value from table
$twitval = get_post_meta( $reply_topic_id, ‘bbp_twitname’, true );
echo $twitval;
echo ‘<br><label for=”bbp_twitname”>Twitter Name</label><br>’;
echo ‘<input type=”text” name = “bbp_twitname” value= “‘ . $twitval .’”>’;
//echo ‘<input type=”submit” value=”Submit” />’;
add_action ( ‘bbp_new_topic’, ‘bbp_save_extra_fields’, 10, 2 );
add_action ( ‘bbp_edit_topic’, ‘bbp_save_extra_fields’, 10, 2 );
function bbp_save_extra_fields($reply_topic_id,$twitval) {
if (isset($_POST) && $_POST[‘bbp_twitname’]!=”)
update_post_meta( $reply_topic_id, ‘bbp_twitname’, $twitval );
}
}
/**
* Handles saving the meta box.
*
* @param int $reply_topic_id Post ID.
* @param WP_Post $post Post object.
* @return null
*/
public function save_metabox( $reply_topic_id) {
// Add nonce for security and authentication.
$nonce_name = isset( $_POST[‘custom_nonce’] ) ? $_POST[‘custom_nonce’] :”;
$nonce_action = ‘custom_nonce_action’;
// Check if nonce is set.
if ( ! isset( $nonce_name ) ) {
return;
}
// Check if nonce is valid.
if ( ! wp_verify_nonce( $nonce_name, $nonce_action ) ) {
return;
}
// Check if user has permissions to save data.
if ( ! current_user_can( ‘edit_post’, $reply_topic_id ) ) {
return;
}
// Check if not an autosave.
if ( wp_is_post_autosave( $reply_topic_id ) ) {
return;
}
// Check if not a revision.
if ( wp_is_post_revision( $reply_topic_id ) ) {
return;
}
// Check to match the slug
if(!in_array($post->post_type, $this->match_m_fields)){
// return;
}
$meta_box_text_value = $twitval;
if(isset($_POST[“bbp_twitname”])) {
$meta_box_text_value = $_POST[“bbp_twitname”];
}
update_post_meta($reply_topic_id, ‘bbp_twitname’, $twitval);
}
/**
* is_edit_page
* function to check if the current page is a post edit page
*/
public function is_edit_page($new_edit = null){
global $pagenow;
//make sure we are on the backend
if (!is_admin()) return false;
if($new_edit == “edit”)
return in_array( $pagenow, array( ‘post.php’, ) );
elseif($new_edit == “new”) //check for new post page
return in_array( $pagenow, array( ‘post-new.php’ ) );
else //check for either new or edit
return in_array( $pagenow, array( ‘post.php’, ‘post-new.php’ ) );
}
}
new bbPress_add_meta_fields();
Hi, I’m new to bbPress and BuddyPress. I’m using WP 5.1.1 and bbPress 2.5.14
I’m getting an error that says: “you cannot create new forums”
I have been using bbpress plugin. I am having problem with plugin. Search option under replies section does not works ( https://www.example.com/wp-admin/edit.php?post_type=reply ). There are total of 3,714 replies and i want to search replies with thanks word. There might be 150-200 replies word contain “Thanks”. So whenever i search thanks word, an error occurs ( This page isn’t working www.example.com is currently unable to handle this request. HTTP ERROR 500 ).
Hi All!
I am totally new to BBpress/Buddypress. I have both on my website, and I am learning my way. I want to change my forum layout to look similar to https://thebloodsugardiet.com/forums/. I like their layout better than the style used on the BBpress forum (and mine). How did they create their forum layout? I use Enfold as my website theme, but I see no way to modify the BBpress styling. Should I consider Commons In a Box instead? My goal is for my guest to see more of a “news like” styling, rather than the standard row-by-row forum style. Hope that makes sense! Thanks for input.
Hello. Is there suppose to be a registration link with the bbPress login form –my main wordpress login form has a registration link below it, but the login form on my bbpress forum pages does not. Here is an example of the forum login page which does not have a registration link (scroll to the bottom of the page): https://cincinnati.unitedresourceconnection.org/financial-assistance
Here is an example of the main login page (that has a registration link): https://cincinnati.unitedresourceconnection.org/wp-login.php
Does it look like I’ve configured something incorrectly, or is this the default behavior? I’m using the most recent version of wordpress and bbpress.
When a user registers and registrations are moderated, the moderating admin(s) are sent an email with this content:
[username] ( [user]@gmail.com ) would like to become a member of your website. To accept or reject their request, please go to Member Requests
How can I change/edit the addresses to which this email is sent?