ryan360 (@ryan360)

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @ryan360

    Participant

    My apologies. I figured it would helpful for other users looking for solutions to the same problems.

    @ryan360

    Participant

    My hack job solution was to just modify the plugin itself. Line 356 in template.php contains the permalink structure which you can modify to suit your needs.

    	// Pretty permalinks
    		if ( $wp_rewrite->using_permalinks() ) {
    			$url = $wp_rewrite->root . bbp_get_user_slug() . '/%' . bbp_get_user_rewrite_id() . '%';

    @ryan360

    Participant

    I was able to accomplish this by writing a custom query. I was unable to find a solution ANYWHERE else on this forum despite numerous people asking the same question so I’m hoping this will help everyone out until the bbpress team fixes the bbp_get_template_part functions.

    		<?php
        
                    $args = array(
                       'post_type' => 'reply',
                       'post_status' => 'publish',
                       'orderby' => 'title',
                       'order' => 'ASC',
                       'author' => $curauth->ID,
                    );
                    $bbpressquery = new WP_Query($args);
                    while ($bbpressquery->have_posts()) : $bbpressquery->the_post();
                ?>
                    
                    	<?php the_content(); ?>
                    	
              	 <?php endwhile; ?>   

    Obviously you can modify the code above to show topics created, I was just trying to return all the forum posts created by a user.

    @ryan360

    Participant

    Bump. I’m also interested in this. Can anyone help?

    @ryan360

    Participant

    Bump. I just copied that function into my functions.php file and it’s still linking to the default bbPress forum user page.

    @ryan360

    Participant

    ^ Correct. Set up an unauthorized page and then add it to the the unauthorized message field in the Private Groups settings page.

Viewing 6 replies - 1 through 6 (of 6 total)