Changeset 2641
- Timestamp:
- 02/10/2010 12:29:59 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2626 r2641 165 165 break; 166 166 167 case 'tag ':167 case 'tags': 168 168 $query = new BB_Query( 'topic', array( 'forum_id' => $forum_id, 'topic_author_id' => $user_id, 'tag' => $filter, 'per_page' => $per_page, 'page' => $page, 'order_by' => 't.topic_time', 'sticky' => $show_stickies ) ); 169 169 $topics =& $query->results; -
trunk/bp-forums/bp-forums-templatetags.php
r2626 r2641 40 40 break; 41 41 42 case 'tag ':43 $this->topics = bp_forums_get_forum_topics( array( 'user_id' => $user_id, 'type' => 'tag ', 'filter' => $search_terms, 'forum_id' => $forum_id, 'page' => $this->pag_page, 'per_page' => $this->pag_num, 'show_stickies' => $no_stickies ) );42 case 'tags': 43 $this->topics = bp_forums_get_forum_topics( array( 'user_id' => $user_id, 'type' => 'tags', 'filter' => $search_terms, 'forum_id' => $forum_id, 'page' => $this->pag_page, 'per_page' => $this->pag_num, 'show_stickies' => $no_stickies ) ); 44 44 break; 45 45 } … … 178 178 } 179 179 180 /* If we're viewing a tag in the directory, let's auto set the filter to the tag name */181 if ( 'tag' == $bp->current_action && !empty( $bp->action_variables[0] ) ) {182 $search_terms = $bp->action_variables[0];183 $type = 'tags';184 }185 186 180 /* If $_GET['fs'] is set, let's auto populate the search_terms var */ 187 181 if ( $bp->is_directory && !empty( $_GET['fs'] ) ) … … 206 200 extract( $r ); 207 201 202 /* If we're viewing a tag URL in the directory, let's override the type and set it to tags and the filter to the tag name */ 203 if ( 'tag' == $bp->current_action && !empty( $bp->action_variables[0] ) ) { 204 $search_terms = $bp->action_variables[0]; 205 $type = 'tags'; 206 } 207 208 208 $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ); 209 209 return apply_filters( 'bp_has_topics', $forum_template->has_topics(), &$forum_template ); -
trunk/bp-themes/bp-default/_inc/global.js
r2604 r2641 597 597 /* Clicking a forum tag */ 598 598 j('div#forum-directory-tags a').click( function() { 599 bp_filter_request( 'forums', 'tags', j.cookie('bp-forums-scope'), 'div.forums', j(this).html() , 1, j.cookie('bp-forums-extras') );599 bp_filter_request( 'forums', 'tags', j.cookie('bp-forums-scope'), 'div.forums', j(this).html().replace( / /g, '-' ), 1, j.cookie('bp-forums-extras') ); 600 600 return false; 601 601 }); -
trunk/bp-themes/bp-default/functions.php
r2635 r2641 50 50 <div class="comment-avatar-box"> 51 51 <div class="avb"> 52 <a href="<?php echo get_comment_author_url() ?>" >52 <a href="<?php echo get_comment_author_url() ?>" rel="nofollow"> 53 53 <?php if ( $comment->user_id ) : ?> 54 54 <?php echo bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'width' => 50, 'height' => 50, 'email' => $comment->comment_author_email ) ); ?> … … 63 63 64 64 <div class="comment-meta"> 65 <a href="<?php echo get_comment_author_url() ?>" ><?php echo get_comment_author(); ?></a> <?php _e( 'said:', 'buddypress' ) ?>65 <a href="<?php echo get_comment_author_url() ?>" rel="nofollow"><?php echo get_comment_author(); ?></a> <?php _e( 'said:', 'buddypress' ) ?> 66 66 <em><?php _e( 'On', 'buddypress' ) ?> <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date() ?></a></em> 67 67 </div>
Note: See TracChangeset
for help on using the changeset viewer.