Skip to:
Content

bbPress.org

Changeset 6623


Ignore:
Timestamp:
07/10/2017 04:23:35 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Users: First-pass search forms in profile content pages.

This commit makes it possible to search user profiles for specific topics & replies (styling still needed.)

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

    r6605 r6623  
    204204        /** Versions **********************************************************/
    205205
    206         $this->version    = '2.6-rc-6606';
     206        $this->version    = '2.6-rc-6622';
    207207        $this->db_version = '262';
    208208
  • trunk/src/templates/default/bbpress/form-reply-search.php

    r6622 r6623  
    1313?>
    1414
    15 <form role="search" method="get" id="bbp-search-form">
     15<form role="search" method="get" id="bbp-reply-search-form">
    1616    <div>
    1717        <label class="screen-reader-text hidden" for="ts"><?php esc_html_e( 'Search replies:', 'bbpress' ); ?></label>
  • trunk/src/templates/default/bbpress/form-topic-search.php

    r6622 r6623  
    1313?>
    1414
    15 <form role="search" method="get" id="bbp-search-form">
     15<form role="search" method="get" id="bbp-topic-search-form">
    1616    <div>
    1717        <label class="screen-reader-text hidden" for="ts"><?php esc_html_e( 'Search topics:', 'bbpress' ); ?></label>
  • trunk/src/templates/default/bbpress/user-engagements.php

    r6320 r6623  
    1414
    1515<div id="bbp-user-engagements" class="bbp-user-engagements">
     16
     17    <?php if ( bbp_allow_search() ) : ?>
     18
     19        <div class="bbp-search-form">
     20
     21            <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
     22
     23        </div>
     24
     25    <?php endif; ?>
     26
    1627    <h2 class="entry-title"><?php esc_html_e( 'Topics Engaged In', 'bbpress' ); ?></h2>
    1728    <div class="bbp-user-section">
     
    2738        <?php else : ?>
    2839
    29             <p><?php bbp_is_user_home()
    30                 ? esc_html_e( 'You have not engaged in any topics.',      'bbpress' )
    31                 : esc_html_e( 'This user has not engaged in any topics.', 'bbpress' );
    32             ?></p>
     40            <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
    3341
    3442        <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-favorites.php

    r6258 r6623  
    1414
    1515<div id="bbp-user-favorites" class="bbp-user-favorites">
     16
     17    <?php if ( bbp_allow_search() ) : ?>
     18
     19        <div class="bbp-search-form">
     20
     21            <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
     22
     23        </div>
     24
     25    <?php endif; ?>
     26
    1627    <h2 class="entry-title"><?php esc_html_e( 'Favorite Forum Topics', 'bbpress' ); ?></h2>
    1728    <div class="bbp-user-section">
     
    2738        <?php else : ?>
    2839
    29             <p><?php bbp_is_user_home()
    30                 ? esc_html_e( 'You currently have no favorite topics.', 'bbpress' )
    31                 : esc_html_e( 'This user has no favorite topics.',      'bbpress' );
    32             ?></p>
     40            <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
    3341
    3442        <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-replies-created.php

    r6258 r6623  
    1414
    1515<div id="bbp-user-replies-created" class="bbp-user-replies-created">
     16
     17    <?php if ( bbp_allow_search() ) : ?>
     18
     19        <div class="bbp-search-form">
     20
     21            <?php bbp_get_template_part( 'form', 'reply-search' ); ?>
     22
     23        </div>
     24
     25    <?php endif; ?>
     26
    1627    <h2 class="entry-title"><?php esc_html_e( 'Forum Replies Created', 'bbpress' ); ?></h2>
    1728    <div class="bbp-user-section">
     
    2738        <?php else : ?>
    2839
    29             <p><?php bbp_is_user_home()
    30                 ? esc_html_e( 'You have not replied to any topics.',      'bbpress' )
    31                 : esc_html_e( 'This user has not replied to any topics.', 'bbpress' );
    32             ?></p>
     40            <?php bbp_get_template_part( 'feedback', 'no-replies' ); ?>
    3341
    3442        <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-subscriptions.php

    r6575 r6623  
    1818
    1919        <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">
     20
     21            <?php if ( bbp_allow_search() ) : ?>
     22
     23                <div class="bbp-search-form">
     24
     25                    <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
     26
     27                </div>
     28
     29            <?php endif; ?>
     30
    2031            <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'bbpress' ); ?></h2>
    2132            <div class="bbp-user-section">
     
    4960                <?php else : ?>
    5061
    51                     <p><?php bbp_is_user_home()
    52                         ? esc_html_e( 'You are not currently subscribed to any topics.',      'bbpress' )
    53                         : esc_html_e( 'This user is not currently subscribed to any topics.', 'bbpress' );
    54                     ?></p>
     62                    <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
    5563
    5664                <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-topics-created.php

    r6618 r6623  
    1414
    1515<div id="bbp-user-topics-started" class="bbp-user-topics-started">
     16
     17    <?php if ( bbp_allow_search() ) : ?>
     18
     19        <div class="bbp-search-form">
     20
     21            <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
     22
     23        </div>
     24
     25    <?php endif; ?>
     26
    1627    <h2 class="entry-title"><?php esc_html_e( 'Forum Topics Started', 'bbpress' ); ?></h2>
    1728    <div class="bbp-user-section">
     
    2738        <?php else : ?>
    2839
    29             <p><?php bbp_is_user_home()
    30                 ? esc_html_e( 'You have not started any topics.',      'bbpress' )
    31                 : esc_html_e( 'This user has not started any topics.', 'bbpress' );
    32             ?></p>
     40            <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
    3341
    3442        <?php endif; ?>
  • trunk/src/templates/default/css/bbpress.css

    r6605 r6623  
    12151215#bbpress-forums .bbp-user-section {
    12161216    overflow: auto;
     1217    clear: right;
    12171218}
    12181219
Note: See TracChangeset for help on using the changeset viewer.