Plugin Directory

Changeset 1117501


Ignore:
Timestamp:
03/21/2015 03:04:26 PM (11 years ago)
Author:
megainfo
Message:

fix for 0.9.4

Location:
buddypress-wall/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • buddypress-wall/trunk/history.txt

    r898849 r1117501  
    4040- Fix empty activity title.
    4141
     42Version 0.9.4 ( Mar 21, 2015 )
     43--------------------------------------------------------------
     44- Minor fix's for compatibity with Buddypress 2.2.x
     45- Fix javascript error : jQuery.easing[this.easing] is not a function.
     46- Fix Notice: bp_setup_current_user was called incorrectly.
     47
  • buddypress-wall/trunk/includes/bp-wall-actions.php

    r840893 r1117501  
    3232
    3333    } else {
    34 
    3534        remove_action( 'wp_ajax_activity_widget_filter', 'bp_dtheme_activity_template_loader' );
    3635        remove_action( 'wp_ajax_activity_get_older_updates', 'bp_dtheme_activity_template_loader' );
  • buddypress-wall/trunk/includes/bp-wall-admin.php

    r840893 r1117501  
    271271    }
    272272
    273 
    274 
    275 
    276 
    277 
  • buddypress-wall/trunk/includes/bp-wall-filters.php

    r898843 r1117501  
    3030
    3131}
     32
    3233/**
    3334 * filters wall actions
     
    159160function bp_wall_qs_filter( $query_string ) {
    160161    global $bp, $bp_wall;
    161 
    162162    $action = $bp->current_action;
    163 
    164163
    165164    // if we're on a different page than wall pass query_string as is
     
    168167    }
    169168
    170     // if we have a page string in the query_string
    171     $page_str  = preg_match("/page=\d+/", $query_string, $m);
    172     // so grab the number
    173     $page = intval(str_replace("page=", "", $m[0]));
     169    $page = 1;
     170    if( !empty( $query_string) ) {
     171        // if we have a page string in the query_string
     172        $page_str  = preg_match("/page=\d+/", $query_string, $m);
     173
     174        // so grab the number
     175        $page = intval(str_replace("page=", "", $m[0]));
     176    }
    174177
    175178    // load the activities for this page
     
    183186   
    184187}
    185 
    186188
    187189add_filter('bp_get_the_notification_description', 'bp_wall_get_the_notification_description');
     
    206208   
    207209    return $description;
    208 
    209 }
     210}
  • buddypress-wall/trunk/includes/bp-wall-loader.php

    r898179 r1117501  
    88// Exit if accessed directly
    99if ( !defined( 'ABSPATH' ) ) exit;
    10 
    11 
    12 // textdomain loader
    13 $textdomain_local = BP_WALL_PLUGIN_DIR . '/languages/buddypress-wall-' . get_locale() . '.mo';
    14 if ( file_exists( $textdomain_local ) )
    15     load_textdomain( 'bp-wall', $textdomain_local );
    16 else{
    17     $textdomain_global = trailingslashit( WP_LANG_DIR ) . 'buddypress-wall-' . get_locale() . '.mo';
    18     if( file_exists( $textdomain_global ) )
    19     load_textdomain( 'bp-wall', $textdomain_global );
    20 }
    2110
    2211/**
     
    381370
    382371}
    383 add_action( 'bp_loaded', 'bp_wall_load_core', 5 );
     372add_action( 'bp_init', 'bp_wall_load_core', 5 );
     373//add_action( 'bp_loaded', 'bp_wall_load_core', 5 );
  • buddypress-wall/trunk/includes/bp-wall-screens.php

    r841095 r1117501  
    156156         */
    157157        public function is_bp_plugin() {
    158            
    159                 // first we reset the post
    160                 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) );
    161                 // then we filter ‘the_content’ thanks to bp_replace_the_content
    162                 add_filter( 'bp_replace_the_content', array( $this, 'directory_content'    ) );
    163 
    164 
     158            // first we reset the post
     159            add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) );
     160            // then we filter ‘the_content’ thanks to bp_replace_the_content
     161            add_filter( 'bp_replace_the_content', array( $this, 'directory_content'    ) );
    165162        }
    166163
  • buddypress-wall/trunk/includes/js/bp-wall.js

    r840893 r1117501  
    3434        var keyCode = (e.keyCode) ? e.keyCode : e.which;
    3535
     36        console.log(keyCode);
    3637        //if Shift+Enter keys was pressed
    3738       if ( keyCode == 13 && e.shiftKey ) {
     
    159160
    160161                    form.slideDown( 200 );
    161                     jq.scrollTo( form, 500, { offset:-100, easing:'easeOutQuad' } );
     162                    //jq.scrollTo( form, 500, { offset:-100, easing:'easeOutQuad' } );
     163                    jq.scrollTo( form, 500, { offset:-100} );
    162164                    jq('#ac-form-' + ids[2] + ' textarea').focus();
    163165
  • buddypress-wall/trunk/includes/templates/bp-legacy/buddypress/activity/post-wall-form.php

    r840893 r1117501  
    5353    <p class="activity-greeting"><?php if ( bp_is_group() )
    5454        printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() );
    55        
    56         elseif( bp_is_my_profile() && bp_is_user_activity() )       
     55        elseif( ( bp_is_my_profile() && bp_is_user_activity() ) )       
    5756        //elseif( bp_is_page( BP_ACTIVITY_SLUG ) || bp_is_my_profile() && bp_is_user_activity() )
    5857            printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() );
  • buddypress-wall/trunk/loader.php

    r898843 r1117501  
    55Description: Turn your Buddypress Activity Component to a Facebook-style Wall.
    66Profiles with Facebook-style walls
    7 Version: 0.9.3
     7Version: 0.9.4
    88Requires at least:  WP 3.4, BuddyPress 1.5
    9 Tested up to: Wordpress 3.9 BuddyPress 2.0
     9Tested up to: Wordpress 4.1.1 BuddyPress 2.2.1
    1010License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html
    1111Author: Meg@Info
     
    1818
    1919/*************************************************************************************************************
    20  --- BuddyPress Wall 0.9.3 ---
     20 --- BuddyPress Wall 0.9.4 ---
    2121 *************************************************************************************************************/
    2222
     
    2626// Define a constant that will hold the current version number of the component
    2727// This can be useful if you need to run update scripts or do compatibility checks in the future
    28 define( 'BP_WALL_VERSION', '0.9.3' );
     28define( 'BP_WALL_VERSION', '0.9.4' );
    2929
    3030// Define a constant that we can use to construct file paths throughout the component
     
    4242define( 'BP_WALL_PLUGIN_BASENAME',  plugin_basename( __FILE__ ) );
    4343
     44define( 'BP_WALL_PLUGIN_DIR_PATH',  plugin_dir_path( __FILE__ ) );
     45
     46
     47/**
     48 * textdomain loader.
     49 *
     50 * Checks WP_LANG_DIR for the .mo file first, then the plugin's language folder.
     51 * Allows for a custom language file other than those packaged with the plugin.
     52 *
     53 * @uses load_textdomain() Loads a .mo file into WP
     54 * @uses load_plugin_textdomain() Loads a .mo file into languages folder on plugin
     55 */
     56function bp_wall_load_textdomain() {
     57    $mofile     = sprintf( 'buddypress-wall-%s.mo', get_locale() );
     58   
     59    $mofile_global  = trailingslashit( WP_LANG_DIR ) . $mofile;
     60    $mofile_local   = BP_WALL_PLUGIN_DIR_PATH . 'languages/' . $mofile;
     61
     62    if ( is_readable( $mofile_global ) ) {
     63        return load_textdomain( 'bp-wall', $mofile_global );
     64    } elseif ( is_readable( $mofile_local ) ){
     65        //return load_plugin_textdomain( 'bp-activity-privacy', false, $mofile_local );
     66        return load_textdomain( 'bp-wall', $mofile_local );
     67    }
     68    else
     69        return false;
     70}
     71add_action( 'plugins_loaded', 'bp_wall_load_textdomain' );
    4472
    4573
     
    127155/* Put setup procedures to be run when the plugin is activated in the following function */
    128156function bp_wall_activate() {
    129     global $bp;
    130 
    131     include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    132     if ( !is_plugin_active( 'buddypress/bp-loader.php' ) ) {
     157    // check if buddypress is active
     158    if ( ! defined( 'BP_VERSION' ) ) {
    133159        //deactivate_plugins( basename( __FILE__ ) ); // Deactivate this plugin
    134160        die( _e( 'You cannot enable BuddyPress Wall, <strong>BuddyPress</strong> is not active. Please install and activate BuddyPress before trying to activate Buddypress Wall.' , 'bp-wall' ) );
    135161    }   
    136 
     162   
    137163    // Add the transient to redirect
    138164    set_transient( '_bp_wall_activation_redirect', true, 30 );
     
    157183 
    158184function bp_wall_template_part_filter( $templates, $slug, $name ) {
    159    
    160185    if ( 'activity/index' == $slug  ) {
    161186        //return bp_buffer_template_part( 'activity/index-wall' );
  • buddypress-wall/trunk/readme.txt

    r898853 r1117501  
    33Tags: buddypress, activity, wall, facebook, facebook style, facebook comment system, wall mode, like, unlike
    44Requires at least: WordPress 3.4, BuddyPress 1.5
    5 Tested up to: WordPress 3.9 / BuddyPress 2.0
    6 Stable tag: 0.9.3
     5Tested up to: WordPress 3.4.2 / BuddyPress 2.2.1
     6Stable tag: 0.9.4
    77
    88
     
    7878
    7979For bug reports or to add patches or translation files, visit the [Buddypress Wall Github page](https://github.com/dzmounir/buddypress-wall).
    80 
     80   
    8181
    8282== Changelog ==
     83= 0.9.4 =
     84* Compatibility with Buddypress 2.2.x
     85* Fix javascript error : jQuery.easing[this.easing] is not a function.* Fix Notice: bp_setup_current_user was called incorrectly.
     86
    8387= 0.9.3 =
    8488* Fix empty activity title.
    85 
    8689
    8790= 0.9.2 =
Note: See TracChangeset for help on using the changeset viewer.