Forum Replies Created

Viewing 40 posts - 1,081 through 1,120 (of 1,218 total)
  • Author
  • in reply to: Full Page Background #33692
     sharmstr
    Moderator

    Those demo pages are set in the page settings for that particualr page.

    If you want it site wide, you can add some css

    COPY CODE
    
    .kleo-page {
    background-size: cover;
    background-image: url("path to your background image");
    }
    

    Then in theme options -> styling options, pick which sections you want the background to be displayed by setting that sections background color to transparent.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Breadcrumb format #33555
     sharmstr
    Moderator

    Not my gui. I dont work here. And instead of calling that breadcrumbs, call it main menu info. Its NOT the breadcrumb. And why the “!” after “Won’t work”? I’m offering you help. I get nothing from this. Try to be nice please.

    Okay, so you do know that there are two places to set that info, right? One if for WordPress pages and one is for Buddypress pages. If you only changed it on the WordPress pages, you wont see it on the Buddypress pages. The two places are

    wp admin -> theme options -> buddypress
    wp admin -> theme options -> header options

    I tried the code I gave you and it does work. It adds a space.

    I asked you how you were adding it so I could give you a way of doing it through css. If I would have taken your word for it and believed that it was a breadcrumb, my css would not have worked.

    COPY CODE
    
    .page-info i {
    padding-right: 5px;
    }
    
    .page-info {
    font-size: 14px;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Breadcrumb format #33536
     sharmstr
    Moderator

    Put a space between them

    COPY CODE
    
     
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Hide pending profile from Members Directory Page #33479
     sharmstr
    Moderator

    By default, the members masonry should have the filter set to “Last Active” which will not display pending members since they have no ‘activity’ yet. If you switch that filter to Alphabetical, they will show up.

    The members masonry only stylizes the buddypress member loop. So, if you want to filter out pending users no matter what filter is selected, you’ll have to modify the buddypress query. You should ask this question over on the Buddypress support forum.

    Or you might be able to add a conditional check within the members loop in /kleo/buddypress/members-loop.php to check for activity before outputting the member.

    COPY CODE
    
    
    <?php if (bp_member_last_active() != '') { ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Content visible for members #33478
     sharmstr
    Moderator

    If you cant find a plugin that will do that, then you’ll have to add a conditional check to the template files where it calls the_content (there are a lot of them). Off the top of my head it should be something like

    COPY CODE
    
    if ( is_user_logged_in() ) {
    	the_content();
    } else {
           get_the_excerpt();
           echo "Please log in to read the rest of the article";	
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: How to change icon color in post/page #33471
     sharmstr
    Moderator

    If you are adding it via Visual Composer, you can supply an “Extra class name”. Lets just say you call it icon_color. Then in your child css you can put

    COPY CODE
    
    .icon_color {
    color: red;
    }
    

    If you are adding it from the Kleo icon shortcode, you can wrap a span tag with a style atrribute around the shortcode.

    COPY CODE
    
    <span style="color:red;">[kleo_icon icon="android" icon_size=""]</span>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Remove meta info #33457
     sharmstr
    Moderator

    There’s a few ways you can do it, but maybe the easiest is to just add a conditional statement in the kleo_entry_meta function that will check to see if its on a post page. If so, then display it.

    I havent tested this, but try it in your functions.php file.

    COPY CODE
    
    
    function kleo_entry_meta($echo=true, $att=array()) {
    		if (is_single()) :
    		$meta_list = array();
    		
    		// Translators: used between list items, there is a space after the comma.
    		$categories_list = get_the_category_list( __( ', ', 'kleo_framework' ) );
    
    		// Translators: used between list items, there is a space after the comma.
    		$tag_list = get_the_tag_list( '', __( ', ', 'kleo_framework' ) );
    
    		$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    			esc_url( get_permalink() ),
    			esc_attr( get_the_time() ),
    			esc_attr( get_the_date( 'c' ) ),
    			esc_html( get_the_date() )
    		);
    
    		$author = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'kleo_framework' ), get_the_author() ) ),
    			get_the_author()
    		);
    
    		$meta_list[] = '<small class="meta-author">'.$author.'</small>';
    		$meta_list[] = '<small>'.$date.'</small>';
    		
    		$cat_tag = array();
    		
    		if ( $categories_list ) {
    			$cat_tag[] = $categories_list;
    		}
    		
    		if ($tag_list) {
    			$cat_tag[] = $tag_list;
    		}
    		if (!empty($cat_tag)) {
    			$meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
    		}
    		
    		//comments
    		if (!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) {
    		$meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments">'.get_comments_number().' <i class="icon-chat-1 hover-tip" 
    			data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" 
    			data-toggle="tooltip" 
    			data-placement="top"></i></a></small>';
    		}
    		
    		if ($echo) {
    			echo implode(", ", $meta_list);
    		}
    		else {
    			return implode(", ", $meta_list);
    		}
    		
    	endif;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    btw – the bp function is bp_get_the_notification_mark_read_link()

    COPY CODE
    
    /**
    	 * Return the mark read link for the current notification.
    	 *
    	 * @since BuddyPress (1.9.0)
    	 */
    	function bp_get_the_notification_mark_read_link() {
    
    		// Start the output buffer
    		ob_start(); ?>
    
    		<a>" class="mark-read primary"><?php _e( 'Read', 'buddypress' ); ?></a>
    
    		<?php $retval = ob_get_clean();
    
    		return apply_filters( 'bp_get_the_notification_mark_read_link', $retval );
    	}
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Private message button #33438
     sharmstr
    Moderator

    +1 Its because he’s using bp_get_member_user_id() which only works in the members loop.

    Try changing the the filter_message_button_link function (around like 1800) to this.

    COPY CODE
    
    function filter_message_button_link( $link = '' ) {
    	$bp_user_id = (bp_get_member_user_id() == '' ? bp_displayed_user_id() : bp_get_member_user_id() );
    	$link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( $bp_user_id ) );
    	return $link;
    }
    

    Basically it determines if a value is returned from bp_get_member_user_id(). If so, then it will assume that its in the members loop (friends tab in profile or directory listing) and will use that value. If not, then it assumes that your on a profile page and will use bp_displayed_user_id().

    I think that covers all the of the places a message button is displayed. Let me know if that works.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Designed Clients page is showing blog layout instead #33313
     sharmstr
    Moderator

    For now do this

    COPY CODE
    
    section.footer-color.text-center.portfolio-back {
    display: none;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Sending messages #33300
     sharmstr
    Moderator

    A few changes.

    1 – You should remove the word ‘fool’ on line 48. That’s left over from my testing 🙂

    2 – You should add a default subject. It can be anything. If you leave it as a space, there’s nothing to link the open message to and your users wont be able to read the message. I’m using “No subject”.

    COPY CODE
    
    // If subject is empty, set it to something.
    if ( empty( $_POST['subject'] ) ) {
         $_POST['subject'] = "No subject";
    }
    

    Alternatively, you could modify the displayed subject in the messages loop to add some text for the view message link to attach to. copy kleo/buddypress/members/single/messages-loop.php to your child theme and replace

    COPY CODE
    
    <p><a>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php _e( "View Message", "buddypress" ); ?><?php bp_message_thread_subject(); ?></a></p>
    

    with

    COPY CODE
    
    <p><a>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php _e( "View Message", "buddypress" ); ?>: <?php bp_message_thread_subject(); ?></a></p>
    

    You can change the second ‘View Message’ with anything you like.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Sending messages #33291
     sharmstr
    Moderator

    I couldn’t find anything so I wrote a function myself. Put this in your functions.php file.

    THIS REMOVES THE DEFAULT MESSAGE COMPOSE SCREEN AND ADDS A CUSTOM ONE. YOU NEED TO REMEMBER TO COMPARE THIS CODE TO ANY NEW BUDDYPRESS CODE WHEN AN UPDATE IS RELEASED

    COPY CODE
    
    /**
    * Remove default Messages > Compose screen and add our custom one.
    */
    
    function change_messages_compose() {
    	global $bp;
        bp_core_remove_subnav_item( 'messages', 'compose' );
    	$messages_link = bp_loggedin_user_domain() . $bp->messages->slug . '/';
    	bp_core_new_subnav_item( 
    		array( 
    			'name'            => __( 'Compose', 'buddypress' ),
    			'slug'            => 'compose',
    			'parent_url'      => $messages_link,
    			'parent_slug'     => $bp->messages->slug,
    			'screen_function' => 'custom_messages_screen_compose',
    			'position'        => 30,
    			'user_has_access' => bp_core_can_edit_settings()
    		));
    }
    add_action( 'bp_setup_nav', 'change_messages_compose', 100 );
    
    /**
    * Load the custom Messages > Compose screen.
    */
    function custom_messages_screen_compose() {
    
    	if ( bp_action_variables() ) {
    		bp_do_404();
    		return;
    	}
    
    	// Remove any saved message data from a previous session.
    	messages_remove_callback_values();
    
    	// Check if the message form has been submitted
    	if ( isset( $_POST['send'] ) ) {
    
    		// Check the nonce
    		check_admin_referer( 'messages_send_message' );
    
    		// If subject is empty, set it to something.
    		if ( empty( $_POST['subject'] ) ) {
    			$_POST['subject'] = " ";
    		}
    		
    		// Check we have what we need
    		if (empty( $_POST['content'] ) ) {
    			bp_core_add_message( __( 'There was an error sending that message, please try again fool.', 'buddypress' ), 'error' );
    		} else {
    			// If this is a notice, send it
    			if ( isset( $_POST['send-notice'] ) ) {
    				if ( messages_send_notice( $_POST['subject'], $_POST['content'] ) ) {
    					bp_core_add_message( __( 'Notice sent successfully!', 'buddypress' ) );
    					bp_core_redirect( bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox/' );
    				} else {
    					bp_core_add_message( __( 'There was an error sending that notice, please try again', 'buddypress' ), 'error' );
    				}
    			} else {
    				// Filter recipients into the format we need - array( 'username/userid', 'username/userid' )
    				$autocomplete_recipients = explode( ',', $_POST['send-to-input'] );
    				$typed_recipients        = explode( ' ', $_POST['send_to_usernames'] );
    				$recipients              = array_merge( (array) $autocomplete_recipients, (array) $typed_recipients );
    				$recipients              = apply_filters( 'bp_messages_recipients', $recipients );
    				$thread_id               = messages_new_message( array(
    					'recipients' => $recipients,
    					'subject'    => $_POST['subject'],
    					'content'    => $_POST['content']
    				) );
    
    				// Send the message
    				if ( ! empty( $thread_id ) ) {
    					bp_core_add_message( __( 'Message sent successfully!', 'buddypress' ) );
    					bp_core_redirect( bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id . '/' );
    				} else {
    					bp_core_add_message( __( 'There was an error sending that message, please try again', 'buddypress' ), 'error' );
    				}
    			}
    		}
    	}
    	bp_core_load_template( apply_filters( 'messages_template_compose', 'members/single/home' ) );
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Limit background to homepage #33138
     sharmstr
    Moderator

    Try

    COPY CODE
    
    #main {
    background-image: url("http://fundlab.org/wp-content/uploads/2014/10/hazy-lake.jpg");
    }
    

    You should hire someone.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Limit background to homepage #33129
     sharmstr
    Moderator

    The forums are not Buddypress pages. They are bbPress.

    COPY CODE
    
    .bbpress section.container-wrap.main-color {
    background-image: none;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Members Page Help #32993
     sharmstr
    Moderator

    I’m an idiot. I thought you wanted to hide the toggle (as I mentioned a few times). So what you want is to always have it in the show less mode. Okay.

    So most kleo functions let you override them, but they haven’t added that for the kleo_bp_profile_expand_class function yet, so I just added all the collapsed css to your child theme.

    COPY CODE
    
    #buddypress div#item-header { background: none; }
    #buddypress div#item-header-content { display: none; }
    #kleo-bp-home-wrap #item-header img.avatar {width : 80px !important; margin-left:0; background: #fff;}
    #kleo-bp-home-wrap #item-header-avatar {border: 5px solid #f7f7f7 !important;}
    #kleo-bp-home-wrap #item-header {background-position: 0 45px;}
    #kleo-bp-home-wrap #item-header .toggle-header { top : 36px;}
    #kleo-bp-home-wrap #item-header-avatar .kleo-online-status {width : 14px;height : 14px;bottom : 10px;}
    #kleo-bp-home-wrap .bp-toggle-less {display: none;}
    #kleo-bp-home-wrap .bp-toggle-more {display: none;}
    
    

    Let me know if that’s what you wanted/needed.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    Okay, again I think you can tap into the filter, but since I dont know how to do that. You can do this.

    Add this to your functions.php file

    COPY CODE
    
    
    /**
     * Render the navigation markup for the displayed user.
     */
    function my_bp_get_displayed_user_nav() {
    	global $bp;
    
    	foreach ( (array) $bp->bp_nav as $user_nav_item ) {
    		if ( empty( $user_nav_item['show_for_displayed_user'] ) && !bp_is_my_profile() )
    			continue;
    
    		$selected = '';
    		if ( bp_is_current_component( $user_nav_item['slug'] ) ) {
    			$selected = ' class="current selected"';
    		}
    
    		if ( bp_loggedin_user_domain() ) {
    			$link = str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item['link'] );
    		} else {
    			$link = trailingslashit( bp_displayed_user_domain() . $user_nav_item['link'] );
    		}
    
    		echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item['css_id'], array( '<li id="' . $user_nav_item['css_id'] . '-personal-li" ' . $selected . '><a href="' . $link . '#item-body">' . $user_nav_item['name'] . '</a></li>', &$user_nav_item ) );
    	}
    }
    
    

    Then copy the following files to your child theme
    /kleo/buddypress/members/single/home.php
    /kleo/rtmedia/main.php

    In both of those files, change

    COPY CODE
    
    bp_get_displayed_user_nav () ;
    

    to

    COPY CODE
    
    my_bp_get_displayed_user_nav () ;
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    There’s a wrapper div under the buddypress nav called item-body, so you can use that as your anchor. The bp_get_displayed_user_nav function in /buddypress/bp-members/bp-members-template.php draws the menu. Within that function is a apply_filters_ref_array filter. You can tap into that (search how to do it because I’m not exactly sure). right after $link you can add ‘#item-body’.

    COPY CODE
    
    echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item['css_id'], array( '<li id="' . $user_nav_item['css_id'] . '-personal-li" ' . $selected . '><a href="' . $link . '#item-body">' . $user_nav_item['name'] . '</a></li>', &$user_nav_item ) );
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    Did you ask the Buddypress forum how to add and an anchor tag to the buddypress nav links like I suggested? What did they say? I’m not trying to get rid of you, I promise. All of those nav links are handled by Buddypress functions. Kleo only stylizes them. Normally you’d customize the url by putting something like this in your functions.php file

    COPY CODE
    
    define ( 'BP_FRIENDS_SLUG', 'peeps' );
    

    Another user here asked about adding anchors so I tried it like this

    COPY CODE
    
    define ( 'BP_FRIENDS_SLUG', 'peeps/#main' );
    

    I ended up getting a 404 error because its gets parsed like /peeps/main.

    Hmmm. I wonder if you can add something in your .htaccess or use the rewrite_rules_array filter to write your own permalink that would append the anchor to the url.

    Still another option would be to make the profile header smaller or hide it all together.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Display User Avatar in Post #32956
     sharmstr
    Moderator

    I’m displaying the authors avatar within the post meta. To do it, I’m doing this.

    COPY CODE
    
    /**
    * Override Post Author Meta to include avatar
    **/
    if ( ! function_exists( 'kleo_entry_meta' ) ) :
    	/**
    	 * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
    	 * Create your own kleo_entry_meta() to override in a child theme.
    	 * @since 1.0
    	 */
    	 
    	function kleo_entry_meta($echo=true, $att=array()) {
    	
    		$meta_list = array();
    		
    		// Translators: used between list items, there is a space after the comma.
    		$categories_list = get_the_category_list( __( ', ', 'kleo_framework' ) );
    
    		// Translators: used between list items, there is a space after the comma.
    		$tag_list = get_the_tag_list( '', __( ', ', 'kleo_framework' ) );
    
    		$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    			esc_url( get_permalink() ),
    			esc_attr( get_the_time() ),
    			esc_attr( get_the_date( 'c' ) ),
    			esc_html( get_the_date() )
    		);
    
    		$author = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'kleo_framework' ), get_the_author() ) ),
    			get_the_author()
    		);
    		
    		if (is_single()):
    			$avatar = get_avatar( get_the_author_meta( 'ID' ), 100 );
    			$meta_list[] = '<small class="post-author-avatar">'.$avatar.'</small>';
    		endif;
    		$meta_list[] = '<small class="meta-author">'.$author.'</small>';
    		$meta_list[] = '<small>'.$date.'</small>';
    		
    		$cat_tag = array();
    		
    		if ( $categories_list ) {
    			$cat_tag[] = $categories_list;
    		}
    		
    		if ($tag_list) {
    			$cat_tag[] = $tag_list;
    		}
    		if (!empty($cat_tag)) {
    			$meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
    		}
    		
    		//comments
    		if (!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) {
    		$meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments">'.get_comments_number().' <i class="icon-chat-1 hover-tip" 
    			data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" 
    			data-toggle="tooltip" 
    			data-placement="top"></i></a></small>';
    		}
    		
    		if ($echo) {
    			echo implode(", ", $meta_list);
    		}
    		else {
    			return implode(", ", $meta_list);
    		}
    		
    	}
    endif;
    

    Now, I’m only displaying in on the post page (single), not the listing pages. I haven’t tested it, but you can try removing the if single around this bit of code

    COPY CODE
    
    if (is_single()):
    	$avatar = get_avatar( get_the_author_meta( 'ID' ), 100 );
    	$meta_list[] = '<small class="post-author-avatar">'.$avatar.'</small>';
    endif;
    

    To style the avatar, I use this (you’ll probably want it smaller for listing pages)

    COPY CODE
    
    
    /* Format Post Author Avatar */
    
    .post-author-avatar {
    	display: block;
    }
    .post-author-avatar img {
    	width: 60px;
    	height: 60px;
    	overflow: hidden;
    	border-radius: 100%;
    	border-style: solid;
    	border-width: 5px;
    	border-color: #f7f7f7;
    }
    

    I’ve attached a screenshot so you can see what it supposed to look like.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    in reply to: Members Page Help #32954
     sharmstr
    Moderator

    That’s the problem. I didnt know that because there is no code in your picture to hide it. 🙂 The only code in there is the footer code and two lines of the exact same css that wont hide the show more / less and only half of the code you need to hide show / more less.

    Try this

    COPY CODE
    
    .toggle-header, .bp-toggle-less, .bp-toggle-more {
    display: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    OKAAAAYYYY. Try this.

    COPY CODE
    
    
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	if (bp_is_group()) {
    		wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/depreciated/js/jquery-scroll-to.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
    	}
    }
    

    I suck at calling functions in classes, so the above will just load all the missing js files one by one. To test this (DONT DO THIS) I removed all the code in the enqueue_scripts function that buddypress uses to make sure that none of those files would load. Seems to work. Let me know.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    @chazzzzy try this in your fucntions.php file

    COPY CODE
    
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	global $bp;
    	if (bp_is_group()) {
    		wp_enqueue_script('buddypress',get_template_directory_uri() . 'buddypress/js/buddypress.min.js');
    	}
    }
    
    

    As far as Uncheck the “update activity automatically” feature in BuddyPress settings I saw that when searching for the problem over on the buddypress support forums. And there was an open ticket on it that’s gone no where.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Disable Ajax Search Icon in Top Menu when logged out #32537
     sharmstr
    Moderator

    Try this in your childs functions.php file.

    COPY CODE
    
    function kleo_search_menu_item ( $items, $args )
    {
    if ($args->theme_location == 'primary')
    	{
    		$form = kleo_get_search_menu_item();
    		if (is_user_logged_in()) {
    			$items .= '<li id="nav-menu-item-search" class="menu-item kleo-search-nav test">'.$form.'</li>';
    		}
    	}
    	return $items;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    Okay. For whatever reason, your page is not loading the buddypress javascript file on the groups page. That’s why some of the javascript functions aren’t firing. Try clicking on any of the comment buttons. They should be opening up a comment form instead of reloading the page. The show more / show less doesnt work either.

    It is loading on the profile page and that’s why everything works there.

    It would be easier to figure out if an error was present in the buddypress.js file, but since its not even loading, you’ll have to turn on WP Debug to see if you get an error when it makes the enqueue_scripts call.

    Turn on debuging in wp-config.php, then load the group page. Hopefully we’ll be able to see why its not loading the script.

    COPY CODE
    
    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', true);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: member-header issues #32394
     sharmstr
    Moderator

    Put this in your child css

    COPY CODE
    
    #buddypress div#item-nav ul li a {
    padding: 15px 10px;
    }
    

    I will warn you that it will move the icons closer together.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Using Media Slider Setting – Image too small #32318
     sharmstr
    Moderator

    I was able to reproduce this issue. The slider is using the image size set in Theme Options -> Portfolio -> Thumbnail image size, then blowing it back up to fill the container size. Not good.

    A quick fix is to copy /kleo/single-portfolio.php into your child them (kleo-child/single-portfolio.php) and change line 102 (or around there) from

    COPY CODE
    
     <img src="'.$image.'" alt="" />'
    
    COPY CODE
    
     <img src="'.$slide.'" alt="" />'
    

    That will force it to load the full image instead of the thumbnail. Not sure what it will break, so let me know if you notice any issues.


    @abe
    . Is this a bug?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Need to change priority of custom post type creation #32313
     sharmstr
    Moderator

    Normally you can remove the action, then readd the action with a different priority. http://stackoverflow.com/questions/12539947/how-can-i-change-action-priority-in-wordpress

    They are public functions, so maybe something like this will work? (you might have to play with it since they are in a class)

    remove_action( 'init', 'setup_clients_post_type', 100 );
    remove_action( 'init', 'setup_testimonials_post_type', 100 );
    remove_action( 'init', 'setup_portfolio_post_type', 100 );
    add_action( 'init', 'setup_clients_post_type', 49 );
    add_action( 'init', 'setup_testimonials_post_type', 49 );
    add_action( 'init', 'setup_portfolio_post_type', 49 );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    I haven’t tested this, but try putting this in your child css and edit the background color as needed

    COPY CODE
    
    .woocommerce span.new-badge,
    .woocommerce-page span.new-badge {
    	background: #85AD74;
    	color: #fff;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Menu highlight NEW label #32026
     sharmstr
    Moderator

    Add this to the title

    COPY CODE
    
    <em>New</em>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Add "contact" button on member page? #32024
     sharmstr
    Moderator

    Had a thought that you might want to auto populate the subject and maybe the message so you know what artist they want to book. The code I gave you before will only start the message and would rely on the person sending it to remember to put the artist name in. Anyhow, I found some code that should do this. So, instead of the code I gave you before, try this.

    COPY CODE
    
    add_action( 'bp_before_member_header_meta', 'book_artist');
    function book_artist(){
    	global $bp;
     	//$link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=tnsficadmin' );
    	$link = bp_custom_get_send_private_message_link('Booking Request for: ' . bp_core_get_username( bp_displayed_user_id() ),'Predefined message Information');
    	echo bp_book_artist_button($link);
     
    }
    
    function bp_custom_get_send_private_message_link($subject=false, $message=false) {
     
    //if user is not logged, do not prepare the link
    if ( !is_user_logged_in() ) return false;
     
    		$compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=yourusername';
    			if($subject)
    			$compose_url.=('&subject='.$subject);
    			if($message)
    			$compose_url.=('&content='.$message);
     
    		return wp_nonce_url( $compose_url ) ;
    }
     
    /* 
    	Auto populate the message content
    */
    add_filter('bp_get_messages_content_value','bp_custom_message_content_value');
     
    function bp_custom_message_content_value($content){
     
    	if(!empty ($content)) return $content;
    	$content=$_REQUEST['content'];
    	return $content;
    }
     
    /* 
    	Auto Populate subject
     
    */
    add_filter('bp_get_messages_subject_value','bp_custom_get_messages_subject_value');
     
    function bp_custom_get_messages_subject_value($subject){
     
    	if(!empty($subject))
    		return $subject;
     
    	$subject=$_REQUEST['subject'];
     
    	return $subject;
    }
    

    Some things to note
    1 – Change ‘yourusername’ to your actual username.
    2 – You can edit the subject by changing ‘Booking Request for: ‘
    3 – You can change the message body by changing ‘Predefined message Information’. If you dont want a predefined message, the set it to ”.

    Credit goes to the code found here: https://gist.github.com/digitalchild/02c0730deebb3e3fca68

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Add "contact" button on member page? #32021
     sharmstr
    Moderator

    Try this. Change ‘yourusername’ in the code below to your username. Put the following into your functions.php file

    COPY CODE
    
    add_action( 'bp_before_member_header_meta', 'book_artist');
    function book_artist(){
     	$link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=yourusername' );
    	echo bp_book_artist_button($link);
     
    }
    function bp_book_artist_button($link) {
    	return apply_filters( 'bp_get_send_message_button',
    	bp_get_button( apply_filters( 'bp_get_send_message_button_args', array(
    				'id'                => 'book_artitst',
    				'component'         => 'messages',
    				'must_be_logged_in' => true,
    				'block_self'        => true,
    				'wrapper_id'        => 'send-private-message',
    				'link_href'         => $link,
    				'link_title'        => __( 'Book this artist.', 'buddypress' ),
    				'link_text'         => __( 'Book Artist', 'buddypress' ),
    				'link_class'        => 'send-message',
    		) ) )
    		);
    	}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Open Sans font loaded repeatedly? #31943
     sharmstr
    Moderator

    A bit more info. If it was coming from kleo is would have id=’kleo-xxxx’. Examples

    COPY CODE
    
    id='kleo-bbpress-css'
    id='kleo-shortcodes-css'
    id='kleo-app-css'
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Open Sans font loaded repeatedly? #31942
     sharmstr
    Moderator

    This bit right here

    COPY CODE
    
    id=’open-sans-css’
    

    tells you its not coming from kleo and its coming from wordpress. Google it. People have reported the same problem as you.

    https://wordpress.org/support/topic/open-sans-font-causes-problems-with-wordpress-38

    http://wordpress.stackexchange.com/questions/139930/finding-and-disabling-rogue-stylesheet-from-header-source-sans-pro

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Open Sans font loaded repeatedly? #31927
     sharmstr
    Moderator

    Can you give us a link or can you view the page source and give me the line that loading the font? Should look something similar to this

    COPY CODE
    
    <link rel='stylesheet' id='redux-google-fonts-css'  href='https://fonts.googleapis.com/css?family=Open+Sans%3A700%2C400&ver=1412001450' type='text/css' media='all' />
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Whats the css for the search bar #31921
     sharmstr
    Moderator

    Hmmm. Your code is broken. See attached. Once you fix that, the easiest way to style it like the Kleo search would be to edit the plugin so that it creates the correct divs and attaches the correct css to it.

    Here’s your broken code

    COPY CODE
    
    <form accept-charset="utf-8">
    <fieldset class="tubepress_search">
    		<input type="text" id="tubepress_search_99" <br="">
                   name="tubepress_search_99" class="tubepress_text_input" /><br>
    		<button class="tubepress_button" title="Submit Search">Search</button><br>
    	</fieldset>
    </form>
    

    It should be something like this

    COPY CODE
    
    <form accept-charset="utf-8">
    <fieldset class="tubepress_search">
    	<input type="text" id="tubepress_search_99" name="tubepress_search_99" class="tubepress_text_input" />
    <br>
    	<button class="tubepress_button" title="Submit Search">Search</button><br>
    </fieldset>
    </form>
    

    For kleo styling, edit the plugin output so it outputs something like this.

    COPY CODE
    
    
    <div class="kleo-search-wrap kleo-search-form search-style-transparent">
      <form id="searchform">
    	
    	<div class="input-group">
    		<input name="tubepress_search_99" id="tubepress_search_99" autocomplete="off" type="text" class="ajax_s form-control input-lg" value="" style="opacity: 0.5;">
    		<span class="input-group-btn">
                <input type="submit" value="Search" id="searchsubmit" class="button">
    		</span>
    	</div>
    
    </form>
    </div>
    

    I couldn’t test it because your site kept timing out and wasn’t available half the time. Also, the form tag it outputs doesn’t have an action so I dont think it will ever work. Did you try using the search form? Did it work for you?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    in reply to: KLEO Header Height (navigation bar) #31838
     sharmstr
    Moderator

    I can’t reproduce your small logo issue, so I dont know how to fix it. Every time I refresh the page I get the normal size logo.

    COPY CODE
    
    
    ul#menu-kleonavmenu {
    margin-top: 120px;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: KLEO Login Redirect #31684
     sharmstr
    Moderator

    Put this in your childs function.php file and change ‘/activity’ to wherever you want them to go. Also, make sure you have ‘reload current page’ set in theme options -> Misc -> Login redirect for Popup

    COPY CODE
    
    function kleo_ajax_login()
    	{
    		// Check the nonce, if it fails the function will break
    		check_ajax_referer( 'kleo-ajax-login-nonce', 'security' );
    
    		// Nonce is checked, get the POST data and sign in user
    		$info = array();
    		$info['user_login'] = $_POST['log'];
    		$info['user_password'] = $_POST['pwd'];
    		$info['remember'] = (isset( $_POST['remember'] ) && $_POST['remember'] === true) ? true : false ;
    
    		$info = apply_filters('kleo_ajaxlogin_atts', $info);
    		
    		$user_signon = wp_signon( $info, false );
    		if ( is_wp_error( $user_signon ) ){
                $error_msg = $user_signon->get_error_message();
    			echo json_encode(array( 'loggedin' => false, 'message' => '<span class="wrong-response"><i class="icon icon-attention"></i> ' . $error_msg . '</span>' ));
                //echo json_encode(array( 'loggedin' => false, 'message' => '<span class="wrong-response"><i class="icon icon-attention"></i> ' . __( 'Wrong username or password. Please try again.', 'kleo_framework' ) . '</span>' ));
            } else {
                if ( sq_option( 'login_redirect' , 'default' ) == 'reload' ) {
                    $redirecturl = apply_filters( 'kleo_modal_login_redirect', '/activity/', '', $user_signon );
                }
                else {
                    $redirecturl = apply_filters( 'login_redirect', '', '', $user_signon );
                }
    
    			echo json_encode(array('loggedin'=>true, 'redirecturl' => $redirecturl, 'message'=> '<span class="good-response"><i class="icon icon-ok-circled"></i> ' . __( 'Login successful, redirecting...','kleo_framework' ) . '</span>' ));
    		}
    
    		die();
    	}
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Related Projects are not shown #31680
     sharmstr
    Moderator

    Okay. I see what’s going on. The related portfolio shortcode is being removed once you add an image. When the template first loads the related section looks like this.

    COPY CODE
    
    [vc_column_text css_animation="right-to-left"]
    <h3>Related Projects</h3>
    [/vc_column_text][kleo_gap size="20px"][kleo_portfolio display_type="default" title_style="normal" columns="4" item_count="4" pagination="no" filter="no" excerpt="yes" category="All"]
    <pre>
    
    After adding images, the related portfolios shortcode is removed
    <pre>
    [vc_column_text css_animation="right-to-left"]
    <h3>Related Projects</h3>
    [/vc_column_text][kleo_gap size="20px"]
    


    @yaneczech
    The short term fix is to add a text block below the 20px gap and paste this shortcode in there. See attached

    COPY CODE
    
    [kleo_portfolio display_type="default" title_style="normal" columns="4" item_count="4" pagination="no" filter="no" excerpt="yes" category="All"]
    


    @abe
    I think the templates should load the related portfolio shortcode into a text block so we can see it and probably protect it 🙂 . Also, I noticed that the current portfolio page is listed in the related portfolios. Might want to exclude it.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    in reply to: KLEO Header Height (navigation bar) #31657
     sharmstr
    Moderator

    How about this?

    
    .kleo-main-header {
    height: 140px;
    }
    
    .navbar-header .logo {
    padding-top: 13px;
    }
    
    .collapse.navbar-collapse.nav-collapse.pull-right {
    margin-top: 50px;
    max-height: 80px;
    }
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Accordion CSS #31639
     sharmstr
    Moderator

    You can add a class name to the accordion. In your css you can control the colors. Let say your class name is my-custom-accordion.

    COPY CODE
    
    
    .my-custom-accordion .panel-title {
    background-color: red;
    }
    
    .my-custom-accordion .panel-title:hover{
    background-color: blue;
    }
    
    

    What I dont know is how to change it based on open or collapsed state since those classes are added to the body of the section and not the title.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 40 posts - 1,081 through 1,120 (of 1,218 total)

Log in with your credentials

Forgot your details?