Posted by 2c on March 29, 2008 at 3:36pm
Jump to:
| Project: | Comment bury/promote |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
Hi,
...?
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.
#2
Hi 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.
#3
Hi,
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.
#4
The latest version from CVS solves this problem!
Thanks a million, this module is great.
#5
Hi,
I am glad somebody is using it :-D
I have the feeling you might be the only person using it...!
Bye!
Merc.
#6