All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: The plugin isn't working. Why?  (Read 423 times)

0 Members and 1 Guest are viewing this topic.

Offline popsicles

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: magadine
The plugin isn't working. Why?
« on: 18 January 2010, 19:38 »
I tried to add it in the default theme and it worked but when I tried to add it on the theme im currently revising it didnt.

is it because of this:
Code: [Select]
  <ol class="commentlist">
<?php wp_list_comments$args ); ?>
  </ol>
because my comment.ph dont have that instead I have this:

Code: [Select]
  <div class="commentlist">
<?php foreach ($comments as $comment) : ?>

  <div class="comment">
     <div class="gravatarr">
     <?php if(function_exists('get_avatar')) { echo get_avatar($comment'100'); } ?> </div>

<div class="comment2">
 <cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<br />

<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y'?> at <?php comment_time() ?></a> <?php edit_comment_link('(edit)','',''); ?></small>

<?php comment_text() ?>

</div>
  </div>

<?php endforeach;  ?>
  </div>

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,533
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: The plugin isn't working. Why?
« Reply #1 on: 18 January 2010, 19:58 »
That is because your theme is still using the old way of displaying comments and hence it is not compatible with comment navigation.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline popsicles

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: magadine
Re: The plugin isn't working. Why?
« Reply #2 on: 18 January 2010, 22:38 »
its already working now..I dont have any background about php so I just copy and paste things..I ealized I have to put something like <?php then the code below in the functions...I took me 1 week to fix it..so stupid.

Offline oopsies

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: custom based on themeshaper and manifest
Re: The plugin isn't working. Why?
« Reply #3 on: 02 February 2010, 11:48 »
That is because your theme is still using the old way of displaying comments and hence it is not compatible with comment navigation.


Hi Lester,

I'm new to Wordpress theming and was wondering what you meant by the "old way of displaying comments."  This is a snippet of my comments.php. Is this the old way?

Code: [Select]
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');

if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
?>


<p class="nocomments">This post is password protected. Enter the password to view comments.</p>

<?php
return;
}
}

/* This variable is for alternating comment background */
$oddcomment 'class="alt" ';
?>


<!-- You can start editing here. -->
<div id="comments">
<?php if (have_comments()) : ?>

<h4 id="comments">Comments <span class="comment_num">(<?php printf($comment_count __('<span>%d</span> Comments''your-theme') : __('<span>One</span> Comment''your-theme'), $comment_count?>)</span></h4>

<?php 
$ping_count $comment_count 0;

foreach ($comments as $comment) :
get_comment_type() == "comment" ? ++$comment_count : ++$ping_count;  /* Count the number of comments and trackbacks (or pings) */
?>


<div class="commentEntry">
<?php echo get_avatar$comment$size '48' ); ?>
<div class="commentContent" id="comment-<?php comment_ID() ?>">

<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>

<?php comment_text() ?>

<div class="commentMeta">
posted by <cite><?php comment_author_link() ?></cite> on <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('m.d.y'?></a> at <?php comment_time() ?> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?>
</div>

</div>
</div>
<?php endforeach; /* end for each comment */ ?>

<div class="navigation">
<?php if(function_exists('wp_commentnavi')) {
print "Hello World!";
wp_commentnavi();
  } else { ?>

<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
<?php ?>
</div>

I placed the commentNavi code after what I *think* is the comment loop you refer to in the instructions but it still doesn't display.  The "Hello World!" displays though... It works fine on the default theme so I know it has something to do with comments.php?  Or maybe not? :( Hope you can help.

WP2.9+
Custom theme based off of Manifest and ShaperTheme's theming tutorial.

Offline oopsies

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: custom based on themeshaper and manifest
Re: The plugin isn't working. Why?
« Reply #4 on: 03 February 2010, 23:12 »
I figured it out. Yes, that is the old way of doing it. For those who are trying to figure it out, the old way, as far as I can tell, is to wrap all the content within the foreach statement. The new way doesn't do that. You'll have to take a look at the default theme files to see what I mean. You can also create your own custom "comment generator" that lists all the comments a certain way. See shapertheme to figure it out.