Forum Replies Created

Viewing 15 replies - 31 through 45 (of 61 total)
  • Thread Starter Mael Shanti

    (@mael-shanti)

    The screens on the link you provided… ??

    Thread Starter Mael Shanti

    (@mael-shanti)

    This works perfectly, indeed !
    Thank you very much for your help ! That’s great ! And no problem, we all make little mistakes ??

    My issue is finally resolved then ??
    Thanks again !

    You should try again, I just installed the plugin and everything is working for me !
    If it continues not working on the last WP version and with the last Mailpoet/Mailpoet CF7 plugins, it may be because of a plugin incompatibility…

    You should try again, I just installed the plugin and everything is working for me !

    Thread Starter Mael Shanti

    (@mael-shanti)

    Before changing it :

    <?php
    /**
     * The template for displaying Comments.
     *
     * The area of the page that contains both current comments
     * and the comment form. The actual display of comments is
     * handled by a callback to visual_comment() which is
     * located in the functions.php file.
     *
     * @package Visual
     * @since Visual 0.1
     */
    ?>
    
    <?php
    	/*
    	 * If the current post is protected by a password and
    	 * the visitor has not yet entered the password we will
    	 * return early without loading the comments.
    	 */
    	if ( post_password_required() )
    		return;
    ?>
    
    	<div id="comments" class="comments-area">
    
    	<?php // You can start editing here -- including this comment! ?>
    
    	<?php if ( have_comments() ) : ?>
    		<h2 class="comments-title">
    			<?php
    				printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'visual' ),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    			?>
    		</h2>
    
    		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    		<nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
    			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'visual' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'visual' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'visual' ) ); ?></div>
    		</nav><!-- #comment-nav-before .site-navigation .comment-navigation -->
    		<?php endif; // check for comment navigation ?>
    
    		<ol class="commentlist">
    			<?php
    				/* Loop through and list the comments. Tell wp_list_comments()
    				 * to use visual_comment() to format the comments.
    				 * If you want to overload this in a child theme then you can
    				 * define visual_comment() and that will be used instead.
    				 * See visual_comment() in inc/template-tags.php for more.
    				 */
    				wp_list_comments( array( 'callback' => 'visual_comment' ) );
    			?>
    		</ol><!-- .commentlist -->
    
    		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    		<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
    			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'visual' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'visual' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'visual' ) ); ?></div>
    		</nav><!-- #comment-nav-below .site-navigation .comment-navigation -->
    		<?php endif; // check for comment navigation ?>
    
    	<?php endif; // have_comments() ?>
    
    	<?php
    		// If comments are closed and there are comments, let's leave a little note, shall we?
    		if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
    	?>
    		<p class="nocomments"><?php _e( 'Comments are closed.', 'visual' ); ?></p>
    	<?php endif; ?>
    
    	<?php comment_form(); ?>
    
    </div><!-- #comments .comments-area -->

    After changing it :

    <?php
    /**
     * The template for displaying Comments.
     *
     * The area of the page that contains both current comments
     * and the comment form. The actual display of comments is
     * handled by a callback to visual_comment() which is
     * located in the functions.php file.
     *
     * @package Visual
     * @since Visual 0.1
     */
    ?>
    
    <?php
    	/*
    	 * If the current post is protected by a password and
    	 * the visitor has not yet entered the password we will
    	 * return early without loading the comments.
    	 */
    	if ( post_password_required() )
    		return;
    ?>
    
    	<div id="comments" class="comments-area">
    
    	<?php // You can start editing here -- including this comment! ?>
    
    	<?php if ( have_comments() ) : ?>
    		<h2 class="comments-title">
    			<?php
    				printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'visual' ),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    			?>
    		</h2>
    
    		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    		<nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
    			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'visual' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'visual' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'visual' ) ); ?></div>
    		</nav><!-- #comment-nav-before .site-navigation .comment-navigation -->
    		<?php endif; // check for comment navigation ?>
    
    		<ol class="commentlist">
    			<?php
    				/* Loop through and list the comments. Tell wp_list_comments()
    				 * to use visual_comment() to format the comments.
    				 * If you want to overload this in a child theme then you can
    				 * define visual_comment() and that will be used instead.
    				 * See visual_comment() in inc/template-tags.php for more.
    				 */
    				wp_list_comments( array( 'callback' => 'visual_comment' ) );
    			?>
    		</ol><!-- .commentlist -->
    
    		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    		<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
    			<h1 class="assistive-text"><?php _e( 'Comment navigation', 'visual' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'visual' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'visual' ) ); ?></div>
    		</nav><!-- #comment-nav-below .site-navigation .comment-navigation -->
    		<?php endif; // check for comment navigation ?>
    
    	<?php endif; // have_comments() ?>
    
    	<?php
    		// If comments are closed and there are comments, let's leave a little note, shall we?
    		if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
    	?>
    		<p class="nocomments"><?php _e( 'Comments are closed.', 'visual' ); ?></p>
    	<?php endif; ?>
    
    	<?php $args = array(
                 'comment_notes_after' = get_wpml_comment(),
                 'comment_notes_before' = 'The Smilies are below.',
                 );
            comment_form($args); ?>
    
    </div><!-- #comments .comments-area -->

    (So I made the changes at the end of the file)

    Thread Starter Mael Shanti

    (@mael-shanti)

    Looks like it creates a bug, unless I made a mistake…

    By replacing comment_form by your code, here’s the result :

    <?php $args = array(
                 'comment_notes_after' = get_wpml_comment(),
                 'comment_notes_before' = 'The Smilies are below.',
                 );
            comment_form($args); ?>

    And see what it does…
    Before changing code : https://nsa34.casimages.com/img/2014/08/17/140817020606846160.jpg
    After changing code : https://nsa34.casimages.com/img/2014/08/17/140817020645780635.jpg

    So it makes the sidebar and the comment form totally disappear… Any idea of what the problem is ?
    Thanks for helping, that’s great ! ??

    Thread Starter Mael Shanti

    (@mael-shanti)

    Yup, I understood that, but I mean… Where should I insert the code in the the comment.php file ? At what location in the file itself ? Because I do not find where to paste it…

    Thread Starter Mael Shanti

    (@mael-shanti)

    Hi Tuxlog,
    Thanks for replying !

    Actually I do not know where to put the custom code you sent me to…
    Where should I post it regarding this line : <?php comment_form(); ?> ?

    I am using the theme Visual and here is a link to my blog if this can help you : https://www.maelshanti.com/
    Thanks again !

    Thread Starter Mael Shanti

    (@mael-shanti)

    Oooh ! So that’s what an excerpt is ! At least I understood it now…
    Okay, sorry for that idiot help request then. I think I’m done with my questions, but I’ll open a new ticket if needed.

    Many thanks for your help, really ! You’re great !
    Warm regards,
    Ma?l.

    Thread Starter Mael Shanti

    (@mael-shanti)

    Hi once again Sed Lex ! I just noticed I have a new problem, sorry to disturb you again.

    Actually, the whole “Relative content” thing now appears also on my homepage and in the category views, after the small extracts of the articles. Unfortunately, that’s really a problem for me as it takes much space and uses more resources.

    How may I do to display it only on the single article’s pages, for example that one : https://www.amitabha-sat.com/et-hop-un-test-darticle and not on the “global” pages as the home page (https://www.amitabha-sat.com/) ?

    Thanks for your help ! ??

    Thread Starter Mael Shanti

    (@mael-shanti)

    Okay, thanks ! I’ll probably try this plugin soon. Will you wish some critics on what should be changed in my opinion, so that you’ll have directions for improving the plugin, as it’s a new plugin ?

    Anyway, good luck !

    Thread Starter Mael Shanti

    (@mael-shanti)

    Hi again Sed Lex, if you still want to have a look to the position of your plugin I would be very happy, but I finally found a way, using your actual config, to make it look good. Here it is : https://www.amitabha-sat.com/et-hop-un-test-darticle

    So feel free to stop looking for a solution if that means additionnal work ??
    Thank you very much,
    Ma?l.

    Thread Starter Mael Shanti

    (@mael-shanti)

    Well… Having a look would already be very nice ! If you don’t manage, too bad, but if you do, it would really be super !

    Thanks for your consideration anyway ! ??

    Thread Starter Mael Shanti

    (@mael-shanti)

    Oh, that’s sad… And is it possible to at least put it before the “Post a comment”, instead of after the Bottom Breadcrumb ?

    Thanks for replying anyway, that’s very kind to you ??

    Thread Starter Mael Shanti

    (@mael-shanti)

    1) It was actually “post”… But I think it just took time, now it seems working ??
    2) Didn’t see the line for it, sorry
    3) Okay then, no problem !
    4) Ouch… And may I maybe ask you how to change the position of the plugin ? ??
    I am afraid I do not have enough skills to do so… Putting it before the “Post a comment” section would really be perfect for me, as it’s now I can’t use it because of it’s display ??

Viewing 15 replies - 31 through 45 (of 61 total)