BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1673

    Hi Brajesh, yes that works Thanks!

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1670

    This is my latest code

    <?php

    /**
    * Topics Loop
    *
    * @package bbPress
    * @subpackage Theme
    */

    ?>

    <?php do_action( 'bbp_template_before_topics_loop' ); ?>

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

    <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics">

    <?php if( ! empty( $forum_id) && bbp_has_topics( array( 'post_parent' => $forum_id ) ) ) :?>

    <li class="bbp-header">

    <ul class="forum-titles">
    <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?>
    <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?>
    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?>
    <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?>

    <li class="bbp-body">

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>

    <?php bbp_get_template_part( 'loop', 'single-topic' ); ?>

    <?php endwhile; ?>

    <li class="bbp-footer">

    <div class="tr">
    <p>
    <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>"> </span>
    </p>
    </div><!-- .tr -->

    <!-- #bbp-forum-<?php bbp_forum_id(); ?> -->

    <?php do_action( 'bbp_template_after_topics_loop' ); ?>

    <?php bp_get_template_part( 'activity/activity-loop' ) ?>

    <?php endif;?>

    <?php endif;?>

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1668

    “Are you using my previous code to get the $forum_id before using the above snippet. If not, then that’s why It is happening.”

    I did have it before but I switched it to after and I still get a blank page

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1666

    I revert back to the previous working code and I’m getting some odd behaviour on wider testing, it seems the topic list is showing all topics for all forums. Previously I only had one group with a forum and a couple of test topics, so the topic list showed correctly. However now that I’ve set up a second group with a forum and test topic I can see that I am seeing all topics for both forums in the forum topic list on the group homepage.

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1664

    There must be an error in that code as I’m getting nothing displayed now, not even an error

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1662

    Yes that works, I have my forum list followed by Activity, Now I need to change the formatting somehow to stop the two lists flowing into each other.

    One thing, some of my groups do not have a forum, will this cause an error in what we have created?

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1657

    Ah, the loop-topics loop does not use bbp_has_topic

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1655

    Hi Brajesh,

    I’ve put the content from loop-topics into the front.php file, it currently outputs the topic header info but yes we need to set up the forum id in order to get the topics displayed.

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: Trying to improve the Group home page #1594

    Hi Brajesh, I’ve tried a number of ways to get the forums working and none of my efforts have succeeded. I’ve installed, activates forums and set up topics in the group forums but that code still gives me the error. I’m running this on my test server so I only have BuddyPress and bbPress active. I even tried switching to a 2015 child but I get the same error. Do you think it’s a bug?

  • Participant
    Level: Master
    Posts: 475
    Venutius on in reply to: update to Mediapress from Bp Gallery , is possible ? #1593

    Hi Ib20, a few of us are waiting for this, Brajesh has said this is in the pipeline and should be delivered soon. I think he is waiting for Mediapress to settle down as it’s still in Beta.