XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 9, 2012, 3:37:03 PM (12 years ago)
Author:
toemon
Message:

XOOPSモードでBuddypressプラグインを有効化するとブランク画面になるバグ修正 fixes #416
bug(if changed on WP Xpressme panel the WP mode to Xoops mode, the Buddypress goes down) Fix

Location:
branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r658 r812  
    435435        return file_exists($str); 
    436436} 
     437 
     438function is_buddypress_active(){ 
     439        $active_plugins = get_option('active_plugins'); 
     440        foreach($active_plugins as $active_plugin_path){ 
     441                if (strpos($active_plugin_path,'buddypress')!==false) return true; 
     442                if (strpos($active_plugin_path,'bp-loader.php')!==false) return true; 
     443        } 
     444        return false; 
     445} 
     446 
    437447?> 
  • branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r797 r812  
    2222require_once dirname( __FILE__ ).'/include/functions_for_wp_old.php' ; 
    2323 
    24 if (!is_wordpress_style() && ( !empty($xpress_config->theme_select) || $xpress_config->theme_select != 'use_wordpress_select') ){ 
     24if (!is_wordpress_style()  
     25        && ( !empty($xpress_config->theme_select) || $xpress_config->theme_select != 'use_wordpress_select') 
     26        && !is_buddypress_active()  
     27){ 
    2528        add_filter('stylesheet', 'xpress_Stylesheet'); 
    2629        add_filter('template', 'xpress_ThemeTemplate'); 
Note: See TracChangeset for help on using the changeset viewer.