Skip to:
Content

BuddyPress.org

Changeset 375 for trunk/bp-activity.php


Ignore:
Timestamp:
10/09/2008 04:37:49 AM (17 years ago)
Author:
apeatling
Message:
  • Moved all group pages to the root, rather than using a member URL
  • Introduced groupmeta support - groups_update_groupmeta / groups_delete_groupmeta / groups_get_groupmeta
  • Added widgets for site wide activity and who's online
  • Updated home theme to support display of new BuddyPress widgets
  • Added site wide activity feed support
  • Fixed bug where ajax functions would only work when logged in
  • Various other bug fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r373 r375  
    33
    44define ( 'BP_ACTIVITY_IS_INSTALLED', 1 );
    5 define ( 'BP_ACTIVITY_VERSION', '0.1.8' );
    6 
    7 /* Use english formatted times - e.g. 6 hours / 8 hours / 1 day / 15 minutes */
    8 define ( 'BP_ACTIVITY_CACHE_LENGTH', '6 hours' );
     5define ( 'BP_ACTIVITY_VERSION', '0.1.9' );
     6
     7/* How long before activity items in streams are re-cached? */
     8define ( 'BP_ACTIVITY_CACHE_LENGTH', '6 HOURS' );
    99
    1010include_once( 'bp-activity/bp-activity-classes.php' );
     11include_once( 'bp-activity/bp-activity-templatetags.php' );
     12include_once( 'bp-activity/bp-activity-widgets.php' );
    1113//include_once( 'bp-activity/bp-activity-ajax.php' );
    1214//include_once( 'bp-activity/bp-activity-cssjs.php' );
    13 /*include_once( 'bp-messages/bp-activity-admin.php' );*/
    14 include_once( 'bp-activity/bp-activity-templatetags.php' );
    15 
     15//include_once( 'bp-activity/bp-activity-admin.php' );
    1616
    1717/**************************************************************************
     
    6464                KEY component_name (component_name)
    6565               );";
     66
     67    $sql[] = "CREATE TABLE ". $bp['activity']['table_name_sitewide'] ." (
     68                id int(11) NOT NULL AUTO_INCREMENT,
     69                user_id int(11) NOT NULL,
     70                content longtext NOT NULL,
     71                component_name varchar(75) NOT NULL,
     72                date_cached datetime NOT NULL,
     73                date_recorded datetime NOT NULL,
     74                PRIMARY KEY id (id),
     75                KEY date_cached (date_cached),
     76                KEY date_recorded (date_recorded),
     77                KEY user_id (user_id),
     78                KEY component_name (component_name)
     79               );";
    6680   
    6781    require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
     
    89103       
    90104        'table_name_loggedin_user_friends_cached' => $wpdb->base_prefix . $bp['loggedin_homebase_id'] . '_friends_activity_cached',
     105        'table_name_sitewide' => $wpdb->base_prefix . 'bp_activity_sitewide',
    91106       
    92107        'image_base' => site_url() . '/wp-content/mu-plugins/bp-activity/images',
Note: See TracChangeset for help on using the changeset viewer.