Allow display of blocks in a node and a menu item like the one Private Messaging has
agrigor1 - June 28, 2009 - 15:17
| Project: | Instant messenger |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Please let the user create a node (say a page) and put the blocks there.
A menu item like Private Messaging would be necessary.
At the right of the menu there should be numerical notice (or some other) that there are people sending messages to the user.
This would be good for those who dont want to place the blocks in a sidebar. Personally I wanted to put the blocks inside a dedicated page. I know this is not offered by the module (although I am sure you could do it), but I can use php code to display the blocks (and fix displaying with css). But then I have no way to make user aware that someone is sending a message.
Do I ask too much?

#1
No you do not ask too much... ;-) Are you sugessting that IM adds an item to the navigation menu ? I think it's a good idea. If you have any code/css you've put together to make the blocks in a page, then I would be most grateful if you share it with me.
thanks
#2
I am not a php programmer, unfortunately. So the only simple way to display the blocks inside a page is to use the drupal functions.
<div><?php $block = module_invoke('im', 'block', 'view', 'im_friend_picker'); print $block['content']; ?></div><div><?php $block = module_invoke('im', 'block', 'view', 'im_console'); print $block['content']; ?
</div>
Another way I could use is with CCK and Block reference module http://drupal.org/project/blockreference
In all these cases the css should be changes to enlarge the friend picker and the console (no need to be small anymore).
I would prefer to see pixel dimensions in your module configuration page.
About the menu item! Dont forget that it should have a way of dispaying that there is an incoming message. The user may have browsed away the page with the blocks. So we need a way to warn him of the incoming messages, so that he might go to the IM page. One way is to dynamically put a number besides the menu to show the number of incoming messages. Another way would be to make the menu item blink (with colors perhaps).
#3
I think that this is a good solution to those who basically want a "live chat" version of Privatemsg. As well as a menu item that shows the number of unread IM messages, we could also display a "drupal_set_message" if the user is not on the new "IM page" and a message comes in.. So many features to work on, so little time ...
Everyone please feel free to +1 any of the new features so I have a sense of how popular each one is ... ;-)