possibility to add pictures to the guestbook (comment) like it works for nodes with Node_Images module
telefunken - May 25, 2008 - 00:49
| Project: | Usernode Guestbook |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I want to give users the posibility to add pictures to the guestbook (comment) like it works for nodes with Node_Images module!?
I think if Node_Images module could work with the content type 'comments' it would run with usernode_guestbook too!!!
-> nodecomment won't work cause i have to disable core-comment and it isn't shown on the profilespage.
-> comment_upload attaches a file, that is not shown! I need a viewable picture in the comment.
regards
tf

#1
OK, so you don't mean simple userpictures which could be specially formatted in comment.tpl.php, right?
As you mentioned, this guestbook has exactly the same functionality as usual comments have. Your approach to choose another module that enables pictures in comments is right. :-)
For performance reasons, comments are not rendered as comfortable as nodes are, therefor modules have less possibilities to change execution. Maybe this is the reason why nodecomment module needs you to disable comment module.
I like your idea, but usernode guestbook is not the right place to offer this functionality. As another opportunity maybe you could work with input filters, that should work with comments, too. image_attach module implements a way to attach images to every input field. It puts a label into the field that is replaced by the image during input filter execution. Maybe this is a way to solve your problem. If you need further discussion or if you have a local solution already, I would appreciate your posting here! :-)
#2
Isn't a comment a node themed in an other way?
Node_Images module works fine with drupal node, enabling or disabling the functionality at admin/content/types/.
Why not with comments?
>>>this guestbook has exactly the same functionality as usual comments have
so there must be an easy way to enable Node_Images for Comments module and for Usernode_Guestbook module!
If not, we can not accept this, daily surfing on sites where you can add pictures to your comments.
I hope someone can reproduce this!
best regards
tf
#3
@MarcoR
tested image_attach module now. it's the same like Node_Images module.
you have to enable or disable the functionality at admin/content/types/.
but their is no comment type or ursernode_guestbook type to enable the functionality!!!
#4
There is no content-type "comment". Comments are stored and processed totally different from nodes to enhance speed of processing. They are more lightweight, therefor modules cannot interact with rendering of comments as much as they can do with nodes.
Nevertheless, filtering of input in comments is done as in nodes. So this is an opportunity. I just tried image_attach module for you and it works: You can attach images to comments and so it also works with guestbook entries. Sure you will solve this problem, too.
#5
Sorry to be confusing, image_attach is a good module, but it doesn't help in this case. I meant img_assist module. http://drupal.org/project/img_assist
Good luck!