• I’m in the middle of setting up a photoblog at https://www.amadai.com, and I’m having trouble with the comments link. When you click on it, it opens the index.php in a new window. The new window part is good, but I don’t understand why it isn’t opening the comments form?

    Any help would be much appreciated. I’ve been trying to figure this out for hours.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m not an expert like many here. Did you put the popup comment file in the theme directory you’re using?

    Hope someone else can help, it was just a thought for you to double check.

    Thread Starter orchidred

    (@orchidred)

    All the files are in the same folder, if that’s what you mean. I’m not using themes, I just made my layout with tables (I know, I’m bad) then put the WP codes where they should go and split everything up into inc files. It works perfectly on my blog (www.akakestrel.com) so I am completely at a loss for whats going on now. Both of my sites use WP 1.5.

    Thread Starter orchidred

    (@orchidred)

    Im wondering if the comments arent working because “?php comments_template(); // Get wp-comments.php template ?” tag comes after the “?php endif; ?” tag… could that be it? I tried moving it around though and that just broke the whole site.

    Sigh. I think that I’ve gone about as far as my brain power can get me.

    Thread Starter orchidred

    (@orchidred)

    Will someone please help me? Heck, at this point I’ll even pay you for your time if you want. I can’t figure this thing out.

    Ive tried implementating the modifications on both of the below pages, but niether of them have made a difference. Clicking on comments still opens index.php and does not show any of the comments.

    https://www.ads-software.com/support/topic/25848
    https://www.ads-software.com/support/topic.php?id=25853

    This is how my tag is in the code:
    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    </div>

    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    <div class="separator"></div>
    <!--
    <?php trackback_rdf(); ?>
    -->

    <?php comments_template(); // Get wp-comments.php template ?>

    </div> <!--div post ends-->

    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>

    Thread Starter orchidred

    (@orchidred)

    I have the same piece of code on my site but it still doesnt work. I installed WP in a new directory to see if maybe some of the files had been messed up: https://www.amadai.com/imagine/

    The comments worked until I made my template the index.php (as opossed to test.php with the original WP file as the index). Once that happened the site when back to opening the index.php instead of the comments. It doesnt even open the index with comments.

    Thread Starter orchidred

    (@orchidred)

    Can I just overwrite the WP 1.5 files with the WP 1.2 ones? It seems like no one had as much trouble with the comments in that version…

    The database table in WP1.2 and WP1.5 are not the same.
    Could you paste your index.php here: https://pastebin.com/
    and post back with the URI?

    Thread Starter orchidred

    (@orchidred)

    Ok, I pasted my index.php here: https://pastebin.com/280626

    The url of my WP installation is: https://www.amadai.com/imagine

    Thank you so much!

    Like I said earlier, I’m not an expert, but looking at your code at pastebin, I see on line 281:
    <?php //comments_popup_script(); // off by default ?>

    Maybe that has something to do with your problem. Perhaps it should read:
    <?php comments_popup_script(); // off by default ?>

    https://codex.www.ads-software.com/Answers-Configuration
    Scroll down to ” Enable Popup comments”

    You do have
    <?php comments_popup_script(400, 500); ?> on line 284, but it’s below the <?php wp_head(); ?> on line 282 instead of above it on line 281, like answers at the codex URL above suggest it likely should be. Personally, I don’t know if you’re allowed the (400, 500) or not. Maybe you are allowed window sizing there.

    Sorry for the conditionals.

    Thread Starter orchidred

    (@orchidred)

    Thank you Moshu and klklaser, the comments are loading properly now! ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Comment link opens index.php’ is closed to new replies.