Forum Replies Created

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
  • in reply to: Homepage with sidebars #76839
     laprek
    Participant

    Thank you!

    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #46852
     laprek
    Participant

    Thank you Andrei.

    The plugin is called Responsive Column Widgets. I have deactivated that plugin but nothing happened..

    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #45650
     laprek
    Participant

    Hello,

    I really need your help. It’s been a few months that I’m not able to modify my sidebars.

    Thank you ..

    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #45029
     laprek
    Participant
    This reply has been set as private.
    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #44627
     laprek
    Participant

    Hi,
    I have deleted all plugins that could cause the issue and still nothing. I have no idea what to do.
    I did not change any other files, only in sweetdate-child folder.

    I’ll be grateful if you could help me. It’s been a very long time I’m trying to fix this.

    Thank you.

    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #43502
     laprek
    Participant
    This reply has been set as private.
    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #43430
     laprek
    Participant

    Hello,

    Yes, I have. Only to functions.php in sweetdate-child folder. I have renamed the file to see what will happen but nothing changed.

    Here is the code:

    COPY CODE
    
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    add_action('after_setup_theme','kleo_remove_actions');
    /**
     * Override existing actions
     * Use these functions to replace/remove existing actions
     * @since Sweetdate 1.3
    */ 
    function kleo_remove_actions() 
    {
       /* For example uncomment the line bellow to disable matching on member profile */
        //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    }
    
    /*bbpress fullwidth*/
    /*add_action('wp_head', 'kleo_bbpress_tpl', 11);
    function kleo_bbpress_tpl() 
    {
    	//user is viewing a forum page
    	if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {
    	//set to full width
    	remove_action('kleo_before_content', 'kleo_sidebar');
    	remove_action('kleo_after_content', 'kleo_sidebar');
    	remove_action('kleo_before_content', 'kleo_extra_sidebar');
    	remove_action('kleo_after_content', 'kleo_extra_sidebar');
    	add_filter('kleo_content_class', create_function(null, 'return "twelve";'));
    		
    	}
    }
    */
    
    class SQueen_Recent_Posts2_widget extends WP_Widget {
     
            /**
             * Widget setup
             */
            function __construct() {
           
                    $widget_ops = array(
                            'description' => __( 'Recent posts with thumbnails widget.', 'kleo_framework' )
                    );
                    parent::__construct( 'kleo_recent_posts2', __('[Kleo] Recent posts2','kleo_framework'), $widget_ops );
            }
     
            /**
             * Display widget
             */
            function widget( $args, $instance ) {
                    extract( $args, EXTR_SKIP );
     
                    $title = apply_filters( 'widget_title', $instance['title'] );
                    $limit = $instance['limit'];
                    $length = (int)( $instance['length'] );
                    $thumb = $instance['thumb'];
                    $cat = $instance['cat'];
                    $post_type = $instance['post_type'];
     
                    echo $before_widget;
     
                    if ( ! empty( $title ) )
                            echo $before_title . $title . $after_title;
                   
                    global $post;
     
                    if ( false === ( $kleo_recent_posts = get_transient( 'kleo_recent_posts2_' . $widget_id ) ) ) {
     
                            $args = array(
                                    'numberposts' => $limit,
                                    'cat' => $cat,
                                    'post_type' => $post_type
                            );
     
                        $kleo_recent_posts = get_posts( $args );
     
                        set_transient( 'kleo_recent_posts2_' . $widget_id, $kleo_recent_posts, 60*60*12 );
     
                    } ?>
     
                    <div>
                           
                            <ul class='latest-blog'>
     
                                    <?php foreach( $kleo_recent_posts as $post ) : setup_postdata( $post ); ?>
     
                        <li>
                            <?php if( $thumb == true ) : ?>
                            <span class='avatar'><a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail(); ?></a></span>
                            <?php endif; ?>
                            <p><?php the_title(); ?> <br/><?php echo word_trim(get_the_excerpt(), $length, '...' ); ?> <a href="<?php the_permalink(); ?>"><?php _e("read more", 'kleo_framework'); ?></a></p>
                        </li>
                                    <?php endforeach; wp_reset_postdata(); ?>
     
                            </ul>
     
                    </div>
     
                    <?php
     
                    echo $after_widget;
                   
            }
     
            /**
             * Update widget
             */
            function update( $new_instance, $old_instance ) {
     
                    $instance = $old_instance;
                    $instance['title'] = esc_attr( $new_instance['title'] );
                    $instance['limit'] = $new_instance['limit'];
                    $instance['length'] = (int)( $new_instance['length'] );
                    $instance['thumb'] = $new_instance['thumb'];
                    $instance['cat'] = $new_instance['cat'];
                    $instance['post_type'] = $new_instance['post_type'];
     
                    delete_transient( 'kleo_recent_posts_' . $this->id );
     
                    return $instance;
     
            }
     
            /**
             * Widget setting
             */
            function form( $instance ) {
     
                    /* Set up some default widget settings. */
            $defaults = array(
                'title' => '',
                'limit' => 5,
                'length' => 10,
                'thumb' => true,
                'cat' => '',
                'post_type' => '',
                'date' => true,
            );
           
                    $instance = wp_parse_args( (array) $instance, $defaults );
                    $title = esc_attr( $instance['title'] );
                    $limit = $instance['limit'];
                    $length = (int)($instance['length']);
                    $thumb = $instance['thumb'];
                    $cat = $instance['cat'];
                    $post_type = $instance['post_type'];
     
            ?>
     
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'kleo_framework' ); ?></label>
                            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo $title; ?>" />
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>"><?php _e( 'Limit:', 'kleo_framework' ); ?></label>
                            <select class="widefat" name="<?php echo $this->get_field_name( 'limit' ); ?>" id="<?php echo $this->get_field_id( 'limit' ); ?>">
                                    <?php for ( $i=1; $i<=20; $i++ ) { ?>
                                            <option <?php selected( $limit, $i ) ?> value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                    <?php } ?>
                            </select>
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>"><?php _e( 'Excerpt length:', 'kleo_framework' ); ?></label>
                            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'length' ) ); ?>" type="text" value="<?php echo $length; ?>" />
                    </p>
     
                    <?php if( current_theme_supports( 'post-thumbnails' ) ) { ?>
     
                            <p>
                                    <label for="<?php echo esc_attr( $this->get_field_id( 'thumb' ) ); ?>"><?php _e( 'Display Post Image?', 'kleo_framework' ); ?></label>
                            <input id="<?php echo $this->get_field_id( 'thumb' ); ?>" name="<?php echo $this->get_field_name( 'thumb' ); ?>" type="checkbox" value="1" <?php checked( '1', $thumb ); ?> />&nbsp;
                    </p>
     
                    <?php } ?>
     
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'cat' ) ); ?>"><?php _e( 'Show from category: ' , 'kleo_framework' ); ?></label>
                            <?php wp_dropdown_categories( array( 'name' => $this->get_field_name( 'cat' ), 'show_option_all' => __( 'All categories' , 'kleo_framework' ), 'hide_empty' => 1, 'hierarchical' => 1, 'selected' => $cat ) ); ?>
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'post_type' ) ); ?>"><?php _e( 'Choose the Post Type: ' , 'kleo_framework' ); ?></label>
                            <select class="widefat" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>">
                                    <?php foreach ( get_post_types( '', 'objects' ) as $post_type ) { ?>
                                            <option value="<?php echo esc_attr( $post_type->name ); ?>" <?php selected( $instance['post_type'], $post_type->name ); ?>><?php echo esc_html( $post_type->labels->singular_name ); ?></option>
                                    <?php } ?>
                            </select>
                    </p>
     
            <?php
            }
     
    }
     
    /**
     * Register widget.
     *
     * @since 1.0
     */
    add_action( 'widgets_init', create_function( '', 'register_widget( "SQueen_Recent_Posts2_widget" );' ) );
    
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['looking-for'] = array(
    			'type' => 'cite',
    			'name' =>  __('Looking for', 'kleo_framework'),
    			'group' => 'Looking for',
    			'class' => 'citetab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('About me', 'kleo_framework'),
    			'group' => 'Base',
    			'class' => 'regulartab'
    	);
    
    	/* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('My work', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    
    	/* Bp-Album tab - only if plugin installed */
    	elseif (function_exists('bpa_init')) {
    		$bp_tabs['bp-album'] = array(
    				'type' => 'bp_album',
    				'name' => __('My photos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }
    
    /**
     * Uncomment to change Looking for group with your own
     */
    /*
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Base';
    }
    */
    
    /**
     * Uncomment to change default tab on member profile
     */
    /*
    add_filter('kleo_bp_profile_default_top_tab','my_default_tab');
    function my_default_tab() {
        return 'my-photos';
    }
    */
    
    add_action('after_setup_theme','kleo_my_actions');
    
    function kleo_my_actions() 
    {
       /* disable matching on member profile */
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    
        /* Replace the heart over images */
        add_filter('kleo_img_rounded_icon', 'my_custom_icon');
    
        /* Replace the heart from register modal */
        add_filter('kleo_register_button_icon', 'my_custom_icon_register');
    }
    
    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
        return 'camera';
    }
    
    /* Replace the heart with a user icon function */
    function my_custom_icon_register () {
        return 'user';
    }
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
    
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
    	if(!is_super_admin($user->ID))
    		return bp_core_get_user_domain($user->ID );
    	else
    		return $redirect_to_calculated; /*if site admin*/
    }
    
     
    add_action('after_setup_theme','remove_search_form',11);
    function remove_search_form() {
        remove_action('after_header_content','render_user_search');
    }
    
    /*Progress*/ 
    add_action('kleo_bp_header_actions', 'my_prog_bar', 11);
    function my_prog_bar() {
    if (function_exists('bppp_progression_block') AND bp_is_my_profile()) {
    echo '<div class="clearfix"></div>';
    bppp_progression_block();
    }
    }
     
    
    ?>
    
    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #43397
     laprek
    Participant
    This reply has been set as private.
    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #31860
     laprek
    Participant
    This reply has been set as private.
    in reply to: Sidebars on APPEARANCE -> WIDGETS desappeared #28637
     laprek
    Participant
    This reply has been set as private.
    in reply to: horizontal scrollbar, pahe is too wide #22780
     laprek
    Participant
    This reply has been set as private.
    in reply to: Problem with featured images #22662
     laprek
    Participant

    Hello,

    Here is the content of my functions.php file:

    COPY CODE
    
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    add_action('after_setup_theme','kleo_remove_actions');
    /**
     * Override existing actions
     * Use these functions to replace/remove existing actions
     * @since Sweetdate 1.3
    */ 
    function kleo_remove_actions() 
    {
       /* For example uncomment the line bellow to disable matching on member profile */
        //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    }
    
    /*bbpress fullwidth*/
    /*add_action('wp_head', 'kleo_bbpress_tpl', 11);
    function kleo_bbpress_tpl() 
    {
    	//user is viewing a forum page
    	if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {
    	//set to full width
    	remove_action('kleo_before_content', 'kleo_sidebar');
    	remove_action('kleo_after_content', 'kleo_sidebar');
    	remove_action('kleo_before_content', 'kleo_extra_sidebar');
    	remove_action('kleo_after_content', 'kleo_extra_sidebar');
    	add_filter('kleo_content_class', create_function(null, 'return "twelve";'));
    		
    	}
    }
    */
    
    class SQueen_Recent_Posts2_widget extends WP_Widget {
     
            /**
             * Widget setup
             */
            function __construct() {
           
                    $widget_ops = array(
                            'description' => __( 'Recent posts with thumbnails widget.', 'kleo_framework' )
                    );
                    parent::__construct( 'kleo_recent_posts2', __('[Kleo] Recent posts2','kleo_framework'), $widget_ops );
            }
     
            /**
             * Display widget
             */
            function widget( $args, $instance ) {
                    extract( $args, EXTR_SKIP );
     
                    $title = apply_filters( 'widget_title', $instance['title'] );
                    $limit = $instance['limit'];
                    $length = (int)( $instance['length'] );
                    $thumb = $instance['thumb'];
                    $cat = $instance['cat'];
                    $post_type = $instance['post_type'];
     
                    echo $before_widget;
     
                    if ( ! empty( $title ) )
                            echo $before_title . $title . $after_title;
                   
                    global $post;
     
                    if ( false === ( $kleo_recent_posts = get_transient( 'kleo_recent_posts2_' . $widget_id ) ) ) {
     
                            $args = array(
                                    'numberposts' => $limit,
                                    'cat' => $cat,
                                    'post_type' => $post_type
                            );
     
                        $kleo_recent_posts = get_posts( $args );
     
                        set_transient( 'kleo_recent_posts2_' . $widget_id, $kleo_recent_posts, 60*60*12 );
     
                    } ?>
     
                    <div>
                           
                            <ul class='latest-blog'>
     
                                    <?php foreach( $kleo_recent_posts as $post ) : setup_postdata( $post ); ?>
     
                        <li>
                            <?php if( $thumb == true ) : ?>
                            <span class='avatar'><a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail(); ?></a></span>
                            <?php endif; ?>
                            <p><?php the_title(); ?> <br/><?php echo word_trim(get_the_excerpt(), $length, '...' ); ?> <a href="<?php the_permalink(); ?>"><?php _e("read more", 'kleo_framework'); ?></a></p>
                        </li>
                                    <?php endforeach; wp_reset_postdata(); ?>
     
                            </ul>
     
                    </div>
     
                    <?php
     
                    echo $after_widget;
                   
            }
     
            /**
             * Update widget
             */
            function update( $new_instance, $old_instance ) {
     
                    $instance = $old_instance;
                    $instance['title'] = esc_attr( $new_instance['title'] );
                    $instance['limit'] = $new_instance['limit'];
                    $instance['length'] = (int)( $new_instance['length'] );
                    $instance['thumb'] = $new_instance['thumb'];
                    $instance['cat'] = $new_instance['cat'];
                    $instance['post_type'] = $new_instance['post_type'];
     
                    delete_transient( 'kleo_recent_posts_' . $this->id );
     
                    return $instance;
     
            }
     
            /**
             * Widget setting
             */
            function form( $instance ) {
     
                    /* Set up some default widget settings. */
            $defaults = array(
                'title' => '',
                'limit' => 5,
                'length' => 10,
                'thumb' => true,
                'cat' => '',
                'post_type' => '',
                'date' => true,
            );
           
                    $instance = wp_parse_args( (array) $instance, $defaults );
                    $title = esc_attr( $instance['title'] );
                    $limit = $instance['limit'];
                    $length = (int)($instance['length']);
                    $thumb = $instance['thumb'];
                    $cat = $instance['cat'];
                    $post_type = $instance['post_type'];
     
            ?>
     
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'kleo_framework' ); ?></label>
                            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo $title; ?>" />
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>"><?php _e( 'Limit:', 'kleo_framework' ); ?></label>
                            <select class="widefat" name="<?php echo $this->get_field_name( 'limit' ); ?>" id="<?php echo $this->get_field_id( 'limit' ); ?>">
                                    <?php for ( $i=1; $i<=20; $i++ ) { ?>
                                            <option <?php selected( $limit, $i ) ?> value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                    <?php } ?>
                            </select>
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>"><?php _e( 'Excerpt length:', 'kleo_framework' ); ?></label>
                            <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'length' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'length' ) ); ?>" type="text" value="<?php echo $length; ?>" />
                    </p>
     
                    <?php if( current_theme_supports( 'post-thumbnails' ) ) { ?>
     
                            <p>
                                    <label for="<?php echo esc_attr( $this->get_field_id( 'thumb' ) ); ?>"><?php _e( 'Display Post Image?', 'kleo_framework' ); ?></label>
                            <input id="<?php echo $this->get_field_id( 'thumb' ); ?>" name="<?php echo $this->get_field_name( 'thumb' ); ?>" type="checkbox" value="1" <?php checked( '1', $thumb ); ?> />&nbsp;
                    </p>
     
                    <?php } ?>
     
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'cat' ) ); ?>"><?php _e( 'Show from category: ' , 'kleo_framework' ); ?></label>
                            <?php wp_dropdown_categories( array( 'name' => $this->get_field_name( 'cat' ), 'show_option_all' => __( 'All categories' , 'kleo_framework' ), 'hide_empty' => 1, 'hierarchical' => 1, 'selected' => $cat ) ); ?>
                    </p>
                    <p>
                            <label for="<?php echo esc_attr( $this->get_field_id( 'post_type' ) ); ?>"><?php _e( 'Choose the Post Type: ' , 'kleo_framework' ); ?></label>
                            <select class="widefat" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>">
                                    <?php foreach ( get_post_types( '', 'objects' ) as $post_type ) { ?>
                                            <option value="<?php echo esc_attr( $post_type->name ); ?>" <?php selected( $instance['post_type'], $post_type->name ); ?>><?php echo esc_html( $post_type->labels->singular_name ); ?></option>
                                    <?php } ?>
                            </select>
                    </p>
     
            <?php
            }
     
    }
     
    /**
     * Register widget.
     *
     * @since 1.0
     */
    add_action( 'widgets_init', create_function( '', 'register_widget( "SQueen_Recent_Posts2_widget" );' ) );
    
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['looking-for'] = array(
    			'type' => 'cite',
    			'name' =>  __('Looking for', 'kleo_framework'),
    			'group' => 'Looking for',
    			'class' => 'citetab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('About me', 'kleo_framework'),
    			'group' => 'Base',
    			'class' => 'regulartab'
    	);
    
    	/* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('My work', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    
    	/* Bp-Album tab - only if plugin installed */
    	elseif (function_exists('bpa_init')) {
    		$bp_tabs['bp-album'] = array(
    				'type' => 'bp_album',
    				'name' => __('My photos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }
    
    /**
     * Uncomment to change Looking for group with your own
     */
    /*
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Base';
    }
    */
    
    /**
     * Uncomment to change default tab on member profile
     */
    /*
    add_filter('kleo_bp_profile_default_top_tab','my_default_tab');
    function my_default_tab() {
        return 'my-photos';
    }
    */
    
    add_action('after_setup_theme','kleo_my_actions');
    
    function kleo_my_actions() 
    {
       /* disable matching on member profile */
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    
        /* Replace the heart over images */
        add_filter('kleo_img_rounded_icon', 'my_custom_icon');
    
        /* Replace the heart from register modal */
        add_filter('kleo_register_button_icon', 'my_custom_icon_register');
    }
    
    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
        return 'camera';
    }
    
    /* Replace the heart with a user icon function */
    function my_custom_icon_register () {
        return 'user';
    }
    
    /* Filter the redirect url for login*/
    add_filter("login_redirect","kleo_redirect_to_profile",100,3);
    
    function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
    /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
    	if(!is_super_admin($user->ID))
    		return bp_core_get_user_domain($user->ID );
    	else
    		return $redirect_to_calculated; /*if site admin*/
    }
    
     
    add_action('after_setup_theme','remove_search_form',11);
    function remove_search_form() {
        remove_action('after_header_content','render_user_search');
    }
    
    /*Progress*/ 
    add_action('kleo_bp_header_actions', 'my_prog_bar', 11);
    function my_prog_bar() {
    if (function_exists('bppp_progression_block') AND bp_is_my_profile()) {
    echo '<div class="clearfix"></div>';
    bppp_progression_block();
    }
    }
     
    
    ?>
    
    in reply to: Problem with featured images #22460
     laprek
    Participant

    Dear Catalin,

    Which file should I modify? Where should I paste the code? Is it function.php in the child theme?
    I’ve tried that but for some reason it doesnt work.

    Thank you,
    Laprek

    in reply to: Problem with featured images #20761
     laprek
    Participant
    This reply has been set as private.
    in reply to: Problem with featured images #20571
     laprek
    Participant

    Hello,

    Please try again.

    Thank you
    Laprek

    in reply to: Problem with featured images #20483
     laprek
    Participant
    This reply has been set as private.
    in reply to: Problem with featured images #20476
     laprek
    Participant
    This reply has been set as private.
    in reply to: Problem with featured images #20396
     laprek
    Participant

    Hi,

    The size of the images should be fine.
    This error appears after adding that code to functions.php. After adding the code the page does not display properly. Sometimes it goes blank.

    Thank you,
    Laprek

    in reply to: Problem with featured images #20384
     laprek
    Participant

    Hi,

    When I’m trying to regenerate thumbnails I got this message:

    The resize request was abnormally terminated (ID 16739). This is likely due to the image exceeding available memory or some other type of fatal error.

    in reply to: Problem with featured images #20365
     laprek
    Participant

    That’s what I did, like I said in my first post.

    I would like my featured images to be exactly 620x300px. I have changed the size of the images in Settings -> Media, I have also regenerated all thumbnails but it doesn’t work for featured images. I’ve tried everything. Is there any way to change that? And how?

    Thank you.

    in reply to: Problem with featured images #20331
     laprek
    Participant

    Thank you!

    Can you please tell me how do I change the size of the featured images?

    in reply to: Problem with featured images #20025
     laprek
    Participant
    This reply has been set as private.
     laprek
    Participant

    I have deleted file custom_buddypress/bp-functions.php
    Everything works now 🙂

    in reply to: bbpress layout #2151
     laprek
    Participant

    Hello,

    I know how to set up a forum, I just want to change the layout of the forum.
    Now it looks like this:

    http://imageshack.us/a/img826/1008/cbp9.jpg

    I’m looking for groups of forums (Categories) that have a heading such as “Romantic”, “Platonic”, “General Discussion”, where “Romantic”, “Platonic”, “General Discussion” is not a forum (Category), but just a heading.

    Something like this:
    http://floridastate.rivals.com/forum.asp

    Thank you

Viewing 24 posts - 1 through 24 (of 24 total)

Log in with your credentials

Forgot your details?