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

bbpress Not Showing: How to troubleshoot?

The “most” stripped-down theme I can think of that can run BBPress is just a single index.php file containing: <?php // get_header(); if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); endwhile; else : _e( ‘Nothing!’ ); endif; // get_footer(); ?> So my guess is that your while loop is missing something … Read more

How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?

I accidentally got the answer: <?php global $post; $the_post_parent = $post->post_parent; $the_post_ID = $post->ID; $cat_posts = get_posts(‘post_type=bbp_forum&posts_per_page=-1’); print_r($post_parent); ?> <?php foreach ( $cat_posts as $post ) : ?> <li <?php if ( $post->ID == $the_post_ID || $post->ID == $the_post_parent ) echo ‘class=”current”‘; ?>> <a href=”https://wordpress.stackexchange.com/questions/13966/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), … Read more

bbPress plugin – How do I add a forum description?

Are you using the standalone, or the plugin? I’m not sure if there is a difference honestly, I’ve never touched the standalone. Anyway, I have the plugin going From my admin panel I have the option of adding/editing forums/topics/replies Clicking on Add New for forum brings up a standard WP post screen The title is … Read more

phpBB 3 to bbPress

Never mind now. Fortunately (in this case) I have found an alternative solution to bbPress for WordPress – Simple:Press! I personally think that Simple:Press is much better not only because it allowed me to import everything from phpBB very easily but also because it seems much more comprehensive and well put together; – more comparable … Read more

Form validation on user profile edit

I worked it out. add_action( ‘user_profile_update_errors’, ‘validate_steamid_field’ ); function validate_steamid_field(&$errors, $update = null, &$user = null) { if (!preg_match(“/^STEAM_[0-5]:[01]:\d+$/”, $_POST[‘_bbp_steamid’])) { $errors->add(’empty_steamid’, “<strong>ERROR</strong>: Please Enter a valid SteamID”); } }