p8ball4life
Member
Posted 3 years ago #
Trying to figure out why this isn't working for enabling comments in a pop-up window. It's currently just reloading the same page with a slightly different address appended to the domain.
<?php comments_popup_script(); ?>
</head>
<?php include '../includes/header.inc' ?>
<div id="txt">
<p>
<!-- Get the last 3 posts. -->
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<strong>
<?php the_title(); ?>
</strong>
<br />
<?php the_date(); ?>
<?php the_content(); ?>
<br />
<a href="<?php comments_link(); ?>">
Comments to this post
</a>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
<div id="line"></div>
<?php endwhile;?>
<!-- End get last 3 posts. -->
</p>
</div>
<?php include '../includes/footer.inc' ?>
p8ball4life
Member
Posted 3 years ago #
The address is http://www.tylerparrott.com/blog to see what the weird behavior is for yourself.
p8ball4life
Member
Posted 3 years ago #
dlmfisher
Member
Posted 3 years ago #
p8ball4life
Member
Posted 3 years ago #
I'm still not sure where I'm going wrong. I have <?php comments_popup_script(); ?>
to enable it and <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
within the loop to call it.
What am I missing?
p8ball4life
Member
Posted 3 years ago #
p8ball4life
Member
Posted 3 years ago #
p8ball4life
Member
Posted 3 years ago #
firstly, where is your single post page..
the no comments link behaves exactly as it ought to -- so if youre waiting for that to change it isnt going to - least not with what you have provided.
p8ball4life
Member
Posted 3 years ago #
Thanks for responding! I'm confused as to what you mean by single post page. I don't think I have one as I just want to display the three most recent posts in a page like fashion.
Maybe where I'm going wrong is that I don't want the 'No Comments' link to just show the comments, I want it to add the user the option to enter a comment as well. Currently it just reloads the page, and I guess since there aren't any comments it looks like it doesn't change.
p8ball4life
Member
Posted 3 years ago #
Help please, do I need to provide more information?
p8ball4life
Member
Posted 3 years ago #
I still haven't resolved my issue. I would appreciate any help.
skumlingen
Member
Posted 2 years ago #
Did you ever get the solution for popup comments, i've been reading some of your issues and did see a real answer ...
then i read this blog and it helped ME with the issue of the popup comments...
http://playworkplay.com/blog/understanding-comments-popupphp/comment-page-1/
in the classic
<?php //comments_popup_script(); // off by default ?>
copy this into your template header.php ...
<?php comments_popup_script(); // off by default ?>
hope it helps...
//Lotte