Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • oxibug
    Participant

    @oxibug

    Thanks Pal, Working GREAT

    I was using bp_include like suggested in documentation but it seems it’s related to files only.

    Final Code

    class MY_PLUGIN_BuddyPress {
    
        private static $_instance = null;
        
        /*
         * Silent Constructor
         *
         * */
        public function __construct() { }
    
        public static function instance() {
    
            if( is_null( self::$_instance ) ) {
    
                self::$_instance = new self;
    
                self::$_instance->init();
    
            }
    
            return self::$_instance;
    
        }
    
        private function init() {
                
            add_action( 'bp_load', array( &$this, '_buddypress_action' ), 10 );
            
        }
    
        public function _buddypress_action() {
                
            $all_groups = BP_Groups_Group::get( array(
                
                'type'               => null,
                'orderby'            => 'date_created',
                'order'              => 'DESC',
                'per_page'           => null,
                'page'               => null,
                'user_id'            => 0,
                'slug'               => array(),
                'search_terms'       => false,
                'search_columns'     => array(),
                'group_type'         => '',
                'group_type__in'     => '',
                'group_type__not_in' => '',
                'meta_query'         => false,
                'include'            => false,
                'parent_id'          => null,
                'update_meta_cache'  => true,
                'update_admin_cache' => false,
                'exclude'            => false,
                'show_hidden'        => false,
                'status'             => array(),
                'fields'             => 'all',
                
            ) );
    
        }
    
    }

    oxibug
    Participant

    @oxibug

    That’s my question bro, I cannot find the way to do that because the folders in the two templates are same.

    if there’s a function to define the folder to read files from according to the user option

    Ex. get_option(‘_bp_theme_package_id’) -> [/THEME/temp1/buddypress] or [/THEME/temp2/buddypress]…

    Thanks Pal


    oxibug
    Participant

    @oxibug

    So it’s not possible, I should notify my clients to work only with [nouveau] template .. Right?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar