[buddypress-trac] [BuddyPress] #3460: Support custom post types in activity stream

buddypress-trac noreply at wordpress.org
Mon Jun 3 19:08:56 UTC 2013


#3460: Support custom post types in activity stream
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  new
 Priority:  low           |   Milestone:  1.8
Component:  Activity      |     Version:  1.2.8
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------------

Comment (by trishasalas):

 Here's my latest code update after talking to you this afternoon, Boone.
 (huge help, thanks).  I'm going to look at this later because I have some
 errands to run but this looked important enough to post asap.  See my code
 block for comments


 {{{
 <?php

 $wpdb->prepare( "SELECT * FROM table WHERE id = %d", $id );

 // I Did this on bp-templates/bp-legacy/buddypress/activity/index.php on
 line 74

 ?>
 <li id="activity-filter-select" class="last">
                                 <label for="activity-filter-by"><?php _e(
 'Show:', 'buddypress' ); ?></label>
                                 <select id="activity-filter-by">

                                 <!-- I added this -->
                                         <?php bp_activity_filter_links()
 ?>

                                 <!-- /end I added this -->

                                 </select>
                         </li>
 <?php

 // Then I Got This:  WARNING: wp-includes/wp-db.php:990 - Missing argument
 2 for wpdb::prepare(), called in /var/www/vhosts/trishacod.es/httpdocs/wp-
 content/plugins/buddypress/bp-activity/bp-activity-classes.php on line 620
 and defined
 // This is line 620

 return $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT component FROM
 {$bp->activity->table_name} ORDER BY component ASC" ));

 // I googled and found this: http://make.wordpress.org/core/2012/12/12
 /php-warning-missing-argument-2-for-wpdb-prepare/ (looks important to me)

 ?>
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3460#comment:28>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list