lucju04 (@lucju04)

Forum Replies Created

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

  • lucju04
    Participant

    @lucju04

    I think this task will be hard for you. Anybody around you can help you with basic knowloedge of CSS and PHP/WordPress ?

    You have a explaination of many custom things you can do with bbpress here : https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/

    GOod luck 😉


    lucju04
    Participant

    @lucju04

    I don’t really find a solution but as my home is not destined to change, I just created a custom “static” section. It’s answer to all my issues.

    My section looks like:

    <section class="bbp-forum-table__container"> 
    	<div class="bbp-forum-table__content style-<?php bbp_forum_id(); ?>">
    		<div class="bbp-forum-table__content--forum-list">
    			<div class="bbp-forum-table__header--grid">
    				<div>Discussions générales</div>
    				<div>Participants</div>
    				<div>Réponses</div>
    				<div></div>
    				<!-- <span>Dernier message</span> -->
    			</div>
    				<?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 10, 'post_parent' => '410' );
    					$loop = new WP_Query( $args );
    					while ( $loop->have_posts() ) : $loop->the_post(); ?>
    						<div class="bbp-forum-table__content--grid ">
    					
    							<div class="topic-title"><a href="<?php bbp_topic_permalink(); ?>"><?php the_title(); ?></a></div>
    					
    							<div class="replies-counter"><?php bbp_topic_voice_count(); ?></div>	
    					
    							<div class="posts-counter"><?php bbp_topic_post_count(); ?></div>
    						
    							<div class="user-freshness"></div>	
    						
    						</div>
    				<?php endwhile;?>
    		</div>
    	</div>
    </section>

    I just need to add user-freshness.

    Thanks for you help of course 😉


    lucju04
    Participant

    @lucju04

    Hi,

    Based on my content-archive-forum.php.

    I would like to creat a custom WP_Query like:

    <?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 10, 'post_parent' => '410' );
    				$loop = new WP_Query( $args );
    				while ( $loop->have_posts() ) : $loop->the_post();
    				the_title();
    					
    				endwhile;
    		?>

    to list topic of forum with ID=410 and also message counter and freshness if it’s possible .. But I didn’t find the way to do this… Do you have a tips or exemple ? This will be very helpfull because It can solve many issue I have ahah


    lucju04
    Participant

    @lucju04

    Sadly no it’s on my local wamp. But I can explain you of course (my bad it’s blur !).

    I just tried to analyse what’s happend to explain to you. And I realize that
    <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> did the same template content-archive-forum.php but with the [bbp-single-forum id=123] at the end.

    It seems like there is something wrong with a loop or something. Do you know where I can learn what [bbp-single-forum id=123] did exactly ?

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