Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Threaded layout

@robkk

Moderator

Okay, yeah this site does have an interesting layout.

http://eat.at/swap/forum1/251729_Help_Need_recipe_for_fig_jam_ASAP

From what I can see real quick.

Your not going to edit the loop-single-reply.php file like @netweb suggested, because after clicking the reply title link you are redirected to a normal layout single reply. So to get this layout you are going to edit content-single-topic.php, remove the pagination, and place a custom template instead of loop-replies..php so that you won’t mess with replies in a forum profile.

<?php if ( bbp_has_replies() ) : ?>

	<?php bbp_get_template_part( 'pagination', 'replies' ); ?>

	<?php bbp_get_template_part( 'loop',       'replies' ); ?>

	<?php bbp_get_template_part( 'pagination', 'replies' ); ?>

<?php endif; ?>

Replace the above code with this for example.

<?php if ( bbp_has_replies() ) : ?>

	<?php bbp_get_template_part( 'loop',       'classic-threads' ); ?>

<?php endif; ?>

The code that will be in loop-classic-threads.phpwill be a copy of loop-replies.php and a very minimal loop-single-reply.php. Wherever say <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> is called in the new loop-classic-threads.php file, I would just copy the whole loop-single-reply.php template where that get template function was and keep only the code you need.

The code that is going to be in the area you put the loop-single-reply.php code is only going to have the username, date, maybe the reply positions, and reply title. The reply title is going to mostly come from a customized version of the bbPress reply title plugin. But you are going to output the reply title in the template as a link. A link (I think bbp_reply_url() is the right function ) to the single reply template, which is only 1 reply isolated, which bbPress can do.

Does this help enough??

I’m gonna see if I can recreate most of this layout later

Skip to toolbar