How can I locate the single buddypress forum post template? [closed]

Even if I’m also not quite sure if this question is related to bbPress or BuddyPress, locating (plugin-) template files might always be the same: An easy approach might be to call the body_class() in a file which is definitely active (like header.php). The output will look something like this: class=”forum-archive bbpress archive post-type-archive post-type-archive-forum … Read more

How to enable truly anonymous posting in bbPress forums? [closed]

When we post an empty anonymous reply, we get the following errors: The part of BBPress that’s responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter anonymous data $anonymous_data = bbp_filter_anonymous_post_data(); … Read more

bbPress – select a topic reply as “answer”

I’ve been thinking about making something similar, and also found those plugins to be outdated. I did create a ‘Mark as sold’ feature for some classifieds I recently added to my site, and I think it will use similar methods. I haven’t started development on it yet, but here’s the idea I’ve been kicking around: … Read more

Commenting on a post from the admin panel?

This creates a custom meta box and the contents of the textarea field it contains are being saved as a comment to the post. Please note: Built with code sample adapted from the Codex. Relevant functions: add_meta_box and wp_insert_comment. I removed comment_author_IP and comment_agent from the insert comment arguments. Not sure of the consequences. Bug: … Read more

If post type = forum then breadcrumbs Home > Forums

I managed to fix this by: <?php function the_breadcrumb() { global $post; $post_type = $post->post_type; echo ‘<ul id=”breadcrumbs”>’; if(get_post_type() == ‘forum’ OR get_post_type() == ‘topic’ OR get_post_type() == ‘reply’) { echo ‘<li><a href=”‘; echo get_option(‘home’); echo ‘”>’; echo ‘<i class=”ts-awesome-home” style=”font-size:14px;letter-spacing: 2px;”></i> Home’; echo ‘</a></li><li class=”separator”> / </li>’; echo ‘<a href=”https://link”>Forum</a>’; echo ‘ &nbsp;/&nbsp; ‘; … Read more

How to enable truly anonymous posting in bbPress forums? [closed]

When we post an empty anonymous reply, we get the following errors: The part of BBPress that’s responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter anonymous data $anonymous_data = bbp_filter_anonymous_post_data(); … Read more