Comments options


Author Message
Solsviken

Posted: 5/12/2009
Quote message 

THIS IS FOR WORDPRESS THEMES:

In the new version i would like to see some comments options.
In 2.1 there are no comments on the PAGE you create.
A easy fix for this is to add:
<?php comments_template(); ?>

right after tyhe last Endif in page.php.

This SHOULD be in the a new fix. If the user dont wont comments on there page, they should manually disable it in wordpress core insted of having it disabled in the theme.

I would also like a option to change the default avatar option, which is called from functions.php. More on how to do this manually you can find: http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/

Other options would be the styling of the comments, widths etc etc.
 
Ron Strawsburg

Posted: 5/15/2009
Quote message 

Thanks for posting this. I just spent serveral hours trying to figure this out. I agree with your post wholeheartedly!



Quote Solsviken:

THIS IS FOR WORDPRESS THEMES:

In the new version i would like to see some comments options.
In 2.1 there are no comments on the PAGE you create.
A easy fix for this is to add:
<?php comments_template(); ?>

right after tyhe last Endif in page.php.

This SHOULD be in the a new fix. If the user dont wont comments on there page, they should manually disable it in wordpress core insted of having it disabled in the theme.

I would also like a option to change the default avatar option, which is called from functions.php. More on how to do this manually you can find: http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/

Other options would be the styling of the comments, widths etc etc.


 
Michael

Posted: 5/19/2009
Quote message 

To get gravatars working I went to functions.php and changed the line (about half way down) from:

<?php echo get_avatar($comment,$size='48', $default = '<path_to_url> ); ?>

to:

<?php echo get_avatar($comment,$size='48' ); ?>

and then the custom avatar set in the wordpress admin appears in the site instead of the default blue gravatar.
 
April

Posted: 5/21/2009
Quote message 

I tried adding the <?php comments_template(); ?> before the last endif, and it didn't work. :(

Any suggestions?

It would be great if this were an added feature in the next beta.
 
Bob

Posted: 5/24/2009
Quote message 


It goes right before the sidebar code.

Right after this is where it should go....
<?php endwhile; endif; ?>

<?php comments_template(); ?>

</div>
<div class="sidebar1"><?php include (TEMPLATEPATH . '/sidebar1.php'); ?></div>
<div class="sidebar2">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?></div>

It does work. I do it all the time..
 
Jason Saggers

Posted: 9/16/2009
Quote message 

Quote Michael:

To get gravatars working I went to functions.php and changed the line (about half way down) from:

<?php echo get_avatar($comment,$size='48', $default = '<path_to_url> ); ?>

to:

<?php echo get_avatar($comment,$size='48' ); ?>

and then the custom avatar set in the wordpress admin appears in the site instead of the default blue gravatar.


Worked perfectly, thanks for that, now my custom avatar works perfectly...