[buddypress-trac] [BuddyPress] #3819: Create An Activity Lookup Table (better to call it a reference table)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Dec 10 23:59:47 UTC 2011


#3819: Create An Activity Lookup Table (better to call it a reference table)
-------------------------+------------------------------
 Reporter:  jeffsayre    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by boonebgorges):

 Good idea, Jeff. Managing these things with custom components has been a
 perpetual thorn in the plugin dev's side.

 Could this be mapped into a custom post type? Schema:
 activity_action maps to post_title
 description maps to post_content
 For the component_id, we could hijack something like post_content_filtered
 (otherwise unused)

 Then, either
 (1) we write API functions that are wrappers for WP_Query instances, or
 (2) we do a single WP_Query at runtime and stash the results in the
 $bp->activities global object, and write API functions that refer to it

 This seems more economical than creating (and maintaining) a custom table
 that will never have more than a few dozen entries.

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


More information about the buddypress-trac mailing list