Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  •  fabienne
    Participant

    Hi Laura,
    This is a Kleo bug, not a plugin conflict.

    The 403 error is caused by a bug in Kleo. Kleo’s calling

    COPY CODE
    check_ajax_referer('kleo-ajax-login-nonce', 'security');
    
    without ever sending the nonce in the variable called 'security' as they're expecting.
    
    They're only POSTing these parameters:
    
    Form data	
    action:	kleo_lost_password
    user_login:
    demo

    Kleo should also be registering their nonce and adding it to the POST as ‘security: $the_nonce’.

    Can you pls provide a patch so this works?

    TourismTribe.com

     fabienne
    Participant

    Hi guys,

    Thanks again. The problem isn’t fixed but I now remember what i did. I am using the ‘news room’ as the blog functionality but I have limited the category to display to just those posts in the news room (i have pasted the whole blog template file below).

    What would i need to alter so that i still can use the pagination properly? Also is there a way to display more than x results? Thanks

    here is the bit i changed (lines 108 and 109).

    COPY CODE
    // Start the Loop.
        query_posts('cat=136');
    
    COPY CODE
    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * For example, it puts together the home page when no home.php file exists.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Kleo
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Kleo 1.0
     */
    
    get_header(); ?>
    
    <?php 
    //Specific class for post listing */
    $blog_type = sq_option('blog_type','masonry');
    $blog_type = apply_filters( 'kleo_blog_type', $blog_type );
    
    $template_classes = $blog_type . '-listing';
    if (sq_option('blog_archive_meta', 1) == 1) { $template_classes .= ' with-meta'; } else { $template_classes .= ' no-meta'; }
    add_filter('kleo_main_template_classes', create_function('$cls','$cls .=" posts-listing '.$template_classes.'"; return $cls;'));
    
    /***************************************************
    :: Title section
    ***************************************************/
    
    //title
    $title_arr['show_title'] = true;
    $page_title = kleo_title();
    
    if ( sq_option( 'title_location', 'breadcrumb' ) == 'main' ) {
    	$title_arr['show_title'] = false;
    }
    
    //breadcrumb
    $title_arr['show_breadcrumb'] = true;
    if( sq_option( 'breadcrumb_status', 1 ) == 0 ) {
    	$title_arr['show_breadcrumb'] = false;
    }
    
    //extra info
    if ( sq_option( 'title_info', '' ) == '' ) {
    	$show_info = FALSE;
    }
    else {
    	$show_info = TRUE;
    }
    
    //If we have designated a page for latest posts like Blog page
    if ( get_option( 'page_for_posts' ) ) {
    	$blogpage_id = get_option('page_for_posts');
    	$page_title = get_the_title( $blogpage_id );
    
    	if( get_cfield( 'title_checkbox', $blogpage_id ) == 1 ) {
    		$title_arr['show_title'] = false;
    	}	
    	
    	if ( get_cfield( 'hide_info', $blogpage_id ) == 1 ) {
    		$show_info = FALSE;
    	}
    
    	if( get_cfield( 'hide_breadcrumb', $blogpage_id ) == 1 ) {
    		$title_arr['show_breadcrumb'] = false;
    	} else if ( get_cfield( 'hide_breadcrumb', $blogpage_id ) === '0' ) {
    		$title_arr['show_breadcrumb'] = true;
    	}
    }
    
    $title_arr['title'] = $page_title;
    
    if ( ( isset( $title_arr['show_breadcrumb'] ) && $title_arr['show_breadcrumb'] ) || $show_info === TRUE || $title_arr['show_title'] ) {
    	echo kleo_title_section( $title_arr );
    }
    /* END TITLE SECTION */
    ?>
    
    <?php get_template_part('page-parts/general-before-wrap');?>
    
    <?php
    	if (kleo_has_featured_posts() ) {
    		// Include the featured content template.
    		get_template_part( 'featured-content' );
    	}
    ?>
    
    <?php
    if ( have_posts() ) : ?>
    
        <?php if (sq_option('blog_switch_layout', 0) == 1 ) : /* Blog Layout Switcher */ ?>
    
        <?php kleo_view_switch( sq_option( 'blog_enabled_layouts' ), $blog_type ); ?>
    
        <?php endif; ?>
    
        <?php
        if ($blog_type == 'masonry') : ?>
            <div class="row responsive-cols kleo-masonry per-row-<?php echo sq_option( 'blog_columns', 3 );?>">
        <?php endif; ?>
    				
    	<?php
    	// Start the Loop.
        query_posts('cat=136');
    
    	while ( have_posts() ) : the_post();
    
    		/*
    		 * Include the post format-specific template for the content. If you want to
    		 * use this in a child theme, then include a file called called content-___.php
    		 * (where ___ is the post format) and that will be used instead.
    		 */
    		?>
    		<?php 
    		if ( $blog_type != 'standard' ) :
                get_template_part( 'page-parts/post-content-' . $blog_type );
    		else:  
                get_template_part( 'content', get_post_format() );
    		endif;
    		
    	endwhile;
    	
    	if ($blog_type == 'masonry') : ?>
    		</div>
    	<?php endif; ?>	
    
    	<?php
    	
    	// Post navigation.
    	kleo_pagination();
    
    else :
    	// If no content, include the "No posts found" template.
    	get_template_part( 'content', 'none' );
    
    endif;
    ?>
            
    <?php get_template_part('page-parts/general-after-wrap');?>
    
    <?php get_footer(); ?>

    TourismTribe.com

    in reply to: Integrating Zopim Live Chat to Kleo #60749
     fabienne
    Participant

    Hi Sharmstr

    Just an update and hoping I can get a little bit of more advice from you.
    I still haven’t managed to finalise the Zopim integration but PMPRo has given me the code and we are very close.

    This is the code:

    COPY CODE
    if (is_user_logged_in()) {
        global $display_name , $user_email;
        get_currentuserinfo();
        echo "<script type=\"text/javascript\">
                $zopim(function() {
                $zopim.livechat.setName({$display_name});
                $zopim.livechat.setEmail({$user_email});
                });
        </script>";
    }

    I pasted the code (inserted it in header.php between php tags).
    When logged in as demo I cannot see the info in zopim but I can see this is the backend (view source). I spent 1h on zopim support chat but we haven’t found the solution yet.

    I wanted to show you the below so you can assess if this is what I should be seeing? (isn’t the name missing?). Zopim was rather surprised that didn’t work as it should so I am wondering if it has something to do with Pmpro and/or kleo

    I really would like to integrate Zopim with Kleo and PMPro as i feel it would be such value so I appreciate any help you can provide me.

    Thanks

    Thanks

    below is the output in view source. I feel that something didn’t quote work on the setName as the brackets are empty

    <script type=”text/javascript”>
    (function() {
    .livechat.setName();
    .livechat.setEmail(liz@lizward.com.au);
    });
    </script>

    TourismTribe.com

    in reply to: Integrating Zopim Live Chat to Kleo #57082
     fabienne
    Participant

    Thanks Sharmstr,

    I have tried a few options but it’s not working. Did you mean like the below?

    COPY CODE
    
    /**
     * Zopim appears if user is logged in
    */ 
    
    if (is_user_logged_in()) {
    
            global $display_name , $user_email;
            get_currentuserinfo();
                     echo "<script type=\"text/javascript\">
                             $zopim(function() {
                                $zopim.livechat.setName(" + $display_name + echo ");
                                $zopim.livechat.setEmail(" + $user_email + echo ");
    
                                });
                             </script>";
    }
    

    TourismTribe.com

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

Log in with your credentials

Forgot your details?