Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display forum as list not working


  • TheMK850
    Participant

    @themk850

    I was following the layout and functionality examples you can use and it didn’t work for me.

    Step 1 worked for me just fine.
    I inserted the following code into my functions.php (i am using a child theme)

    //create vertical list
    function custom_bbp_sub_forum_list() {
      $args['separator'] = '<br>';
      return $args;
    }
     add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_sub_forum_list' );

    Then I moved onto step 2 and added this into my functions.php as well

    function remove_counts() {
    $args['show_topic_count'] = false;
    $args['show_reply_count'] = false;
    $args['count_sep'] = '';
     return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );

    It removed the counts but it didn’t look like a list anymore

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

  • Robin W
    Moderator

    @robin-w

    url please?


    TheMK850
    Participant

    @themk850

    My website is currently in maintenance mode because my website is currently unfinished and I don’t want other people going on my website. Is there any way I can private message you some login credentials so you can take a look?

    Thanks


    Robkk
    Moderator

    @robkk

    Add this custom CSS for it to display in a sort of list.

    #bbpress-forums .bbp-forums-list li {
        display: block;
    }

    TheMK850
    Participant

    @themk850

    The CSS worked. Thanks Robkk!

    However, the commas are still there and don’t look like the one in the layout and functionality example.

    Is there CSS to remove those as well?

    Thanks for your time


    Robkk
    Moderator

    @robkk

    @themk850

    sorry for the late reply, but try this.

    add_filter('bbp_after_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
    function ntwb_bbpress_list_forums() {
    	$args['separator']        = '';
    	return $args;
    }

    or I guess instead of using my CSS and the above function just use this instead.

    add_filter('bbp_after_list_forums_parse_args', 'ntwb_bbpress_list_forums' );
    function ntwb_bbpress_list_forums() {
    	$args['separator']        = '</br>';
    	return $args;
    }

    o.m.j
    Participant

    @omj-1

    hello…I had this working when I 1st setup my site, I just noticed it has reverted back…

    I was using the following css code in my child theme:

    #bbpress-forums .bbp-forums-list li {
    display: block;
    }

    I just tried switching to the filter in functions but it’s not working either…

    any idea why this would stop working? thx!

    http://www.badboyzromz.com/forums/


    Robkk
    Moderator

    @robkk

    @omj-1

    Your subforums are for some strange reason not wrapped in a list structure like this.

    <ul class="bbp-forums-list">
        <li class="bbp-forum">
            <a href="http://link" class="bbp-forum-link">Forum 1</a>
        </li>
        <li class="bbp-forum">
            <a href="http://link" class="bbp-forum-link">Forum 2</a>
        </li>
    </ul>

    But instead it is just links.

    Try this CSS instead to have the same layout.

    .bbp-forum-info a.bbp-forum-link {
        display: block;
    }

    o.m.j
    Participant

    @omj-1

    thx @robkk, that fixed it….though something still doesn’t appear right, shouldn’t the subforums be indented?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar