Support » Plugin: AJAX Comment Loading » Overrides my custom comment table? I really need this plugin to work

  • Resolved Chumlee


    I am using a table to display all my comments and I’ve wrapped all wordpress default values like this:

    <tr><td rowspan="2" nowrap="" class="xo" >
    <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
    <?php if ( 'div' != $args['style'] ) : ?>
    <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
    <?php endif; ?> <div class="comment-meta commentmetadata">
    <?php printf( __('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?>
    <?php edit_comment_link(__('(Edit)'),'&nbsp;&nbsp;','' ); ?></div>
    <a href="user-page"><b><div class="comment-author vcard">
    <?php printf(__('<cite class="fn">%s</cite>'),   get_comment_author_link()) ?>
    <?php if ($comment->comment_approved == '0') : ?></div><br />
    <?php endif; ?></b></a><br>
    <?php if( function_exists('get_user_rank') ) echo get_user_rank(); ?></br><span style="font-weight:bold;font-size:12px;color:rgb(244,171,0);">
    <?php $user = get_userdata($comment->user_id); if(function_exists('cp_displayPoints') && $user->ID){
    cp_displayPoints($user->ID); } ?>

    But for some reason after I’ve installed your plugin it overrides all of these and actually it deletes all my custom html build.
    I would love to be able to use this plugin because I’ve made a hang out place on my website where people came in and comment alot so your plugin is exactly what I need.

    Hope when you have the time to give me a reply if I can do something about it or I should move on … Thank you!

Viewing 1 replies (of 1 total)
  • I had to add an extra line in ajax-comment-loading.php. Maybe will help some.

    	public function ajax_handler() {
    		global $post, $id, $cpage;
    		query_posts( array( 'p' => $_REQUEST['postid'], 'post_type' => 'any' ) );
    		if ( have_posts() ) {
    			set_query_var( 'cpage', intval( $_REQUEST['cpage'] ) );
    			<strong>wp_list_comments(array('style' => 'div'));</strong>
    		exit( 0 );

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thanks anyway. Btw.. don’t know what I did or whatever cause now it doesnt overrides my custom inputs anymore. Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Overrides my custom comment table? I really need this plugin to work’ is closed to new replies.