Skip to:
Content

BuddyPress.org

Changeset 2587


Ignore:
Timestamp:
02/04/2010 01:46:23 PM (15 years ago)
Author:
apeatling
Message:

Highlight stickies on the forums directory, but do not force them to the top otherwise me may get 100's. In the group forum view they are at the top. Fixes #1803

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-templatetags.php

    r2580 r2587  
    2929        /* Only show stickies if we are viewing a single group forum, otherwise we could end up with hundreds globally */
    3030        if ( $no_stickies )
    31             $show_stickies = 'no'; // bbPress needs str 'no'
     31            $show_stickies = 'all'; // bbPress needs str 'no'
    3232
    3333        switch ( $type ) {
     
    165165    $forum_id = false;
    166166    $search_terms = false;
     167    $no_stickies = false;
    167168
    168169    /* User filtering */
     
    190191    if ( $bp->is_directory && !empty( $_GET['fs'] ) )
    191192        $search_terms = $_GET['fs'];
     193
     194    /* Don't show stickies on the directory page, otherwise we might end up with 100's */
     195    if ( $bp->is_directory )
     196        $no_stickies = true;
    192197
    193198    $defaults = array(
     
    198203        'per_page' => 20,
    199204        'max' => false,
    200         'no_stickies' => false,
     205        'no_stickies' => $no_stickies,
    201206        'search_terms' => $search_terms
    202207    );
Note: See TracChangeset for help on using the changeset viewer.