Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Joel James

    (@joelcj91)

    We don’t have that option currently. But it is possible and we may need to work on the source code.

    How does the split page urls lokks like? Any demo url?

    Thread Starter bwhli

    (@bwhli)

    Plugin Author Joel James

    (@joelcj91)

    Thanks bwhli,

    Currently we do not have that option. But you may edit the source code to get it done.

    I will consider adding this as a new feature on next updates.

    Thread Starter bwhli

    (@bwhli)

    Awesome! Thanks for your help. I will try digging through the source code. I’m not a developer, but might be able to figure it out.

    Plugin Author Joel James

    (@joelcj91)

    Hi Bwhli,

    Be chill. I will help you. Please hold on. I will tell you how to make it work. Let me work on it now.

    Plugin Author Joel James

    (@joelcj91)

    I have solution for you. Please give me few details,

    Your WP version
    DCL Version

    Thread Starter bwhli

    (@bwhli)

    I’m on WP 4.1, and DCL 9.0.3. Thanks!!

    Plugin Author Joel James

    (@joelcj91)

    Thanks. Here you go..

    Open your js-comments.php file. (Inside includes folder). And find line 10. Just after that, add this code there as new line.

    global $multipage, $numpages, $page;
    if(( $multipage && $page == $numpages ) || (!$multipage)) {

    Then go to line 22 and add one more close brace }

    Now save the file and check. Please let me know the status. Feel free to ask if you need any clarification

    Thread Starter bwhli

    (@bwhli)

    Hi, I might be doing this wrong, but this is Line 1-26 now.

    ?php
    defined('ABSPATH') or die("Crap ! You can not access this directly.");
    
    if (DISQUS_DEBUG) {
        echo "<p><strong>Disqus Debug</strong> thread_id: ".get_post_meta($post->ID, 'dsq_thread_id', true)."</p>";
    }
    
    require_once( dirname(__FILE__) . '/functions/js-options.php' );
    
    	if((!js_check_shortcode('js-disqus') && $js_shortcode == 'yes') || $js_shortcode == 'no') {
    		global $multipage, $numpages, $page;
    if(( $multipage && $page == $numpages ) || (!$multipage)) {
    ?>
    
    <div id="disqus_thread">
    <?php if($js_type == 'click'){ ?>
        <div id='hidden-div' align='center'>
    	<button id='js_comment_div' class="<?php echo $js_class; ?>" style="margin-bottom:20px;"><?php echo $js_button; ?></button>
    	</div>
    <?php } if (!get_option('disqus_disable_ssr') && have_comments()): ?>
            <div id="dsq-content"></div>
    }
        <?php endif; ?>
    </div>
    <?php } ?>
    <script type="text/javascript">
    Plugin Author Joel James

    (@joelcj91)

    Hi,
    Add one more closing brace here,
    <?php } ?>

    Plugin Author Joel James

    (@joelcj91)

    You are correct, but 1 “}” is missing.

    Thread Starter bwhli

    (@bwhli)

    Thanks for your help so far! I am still getting parse errors, and I am sure it’s some syntax error on my part. Do you mind sending the complete corrected code here or to my email?

    Thanks!
    Brian

    Plugin Author Joel James

    (@joelcj91)

    Ok. Please contact me -me at joelsays dot com

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Possible to Load on Last Page Only?’ is closed to new replies.