The following piece of code shows the best comment within node.tpl.php:
if(module_exists('comment_bury_promote')) {
print comment_bury_promote_display_best_comment($node);
}Unfortunately, it is showing the author of the nodes avatar in the comment and not the person that wrote the comment.
Comments
Comment #1
mercmobily commentedHi,
...?
Are you sure...?
We are using _that_ very code in Free Software Magazine:
http://www.freesoftwaremagazine.com/forum/1257
And it seems to work fine!
Can you confirm this problem? Can you send me an URL?
Merc.
Comment #2
2c commentedHi Merc,
Thanks for trying to help out. I was mistaken in my original post. The best comment is not showing the original authors avatar, but the default site avatar. I think this is because there is no value for $picture.
When I add this code,
print_r($comment);into comment.tpl.php I get the following variables for the best comment:[cid][pid][nid][uid][subject][comment]
[hostname] [timestamp]
[score][status]
[format][thread]
[users][name][mail][homepage]
[new][fivestar_rating][fivestar_view]
However, for the remaining comments I get all of the above variables except [hostname] plus a lot more in addition:
[registered_name]
[picture]
[data]
...and a lot more including private message variables, picture delete and avatar variables, guestbook variables, tac_lite variables etc.
Comment #3
mercmobily commentedHi,
I fixed this version in the current version of this module.
Please download the latest version of the module and confirm that the problem is no longer there.
Merc.
Comment #4
2c commentedThe latest version from CVS solves this problem!
Thanks a million, this module is great.
Comment #5
mercmobily commentedHi,
I am glad somebody is using it :-D
I have the feeling you might be the only person using it...!
Bye!
Merc.
Comment #6
mercmobily commented