Showing the avatar picture next to nickname would be a nice and useful feature. It’s Easier to recognize a user. Thanks beforehand!
Shoutbox is cool!
Showing the avatar picture next to nickname would be a nice and useful feature. It’s Easier to recognize a user. Thanks beforehand!
Shoutbox is cool!
Comments
Comment #1
disterics commentedComment #2
disterics commentedSounds like a cool feature to include in the next release
Comment #3
sdk commentedsubscribing
Comment #4
kakajoe commented+1
Comment #5
vmed commented... would be very nice !
Comment #6
mstef commentedThis can be done inside the theme by overriding the shoutbox theme functions in template.php. Grab a copy of Drupal Commons and see how it's done there. It's very simple.
Comment #7
vmed commented... could you specify in more details how to configure the theme, and how to override the theme functions with the part of drupal commons ?
please..
thanks
johan
Comment #8
mstef commentedWell, this is just a normal part of Drupal..
If you look inside a module, well, modules that are written correctly, just about all functions that actually output themed data should be declared like theme_shoutbox_post_whatever($shout, $user) (for examples...)..
That means that inside your theme, in the template.php file, you can:
If you look inside the shoutbox module, you'll see plenty of theme functions that you can override. If you download Drupal Commons and look inside the acquia_commons theme, inside the template.php file, there's an example of how to add the user avatars to the shouts. (it helps having imagecache installed so the images can all be set to the same size).
Get it?
Comment #9
vmed commentedthanks for your good reply,
i changed some code in my template.php file with belongs to my danland theme, cleared cache !, but no changes to my shoutbox !
..anything more maybe ?
thanks
johan
Comment #10
kap316 commented@mikestefff I appreciate the info, but to us newbies to coding, is it possible to give us the exact code to add avatars next to the username ? I have searched everywhere. I checked out drupal commons.. still confused!
This would be a great addition to the already awesome module! Thanks in advance!
Comment #11
BeaPower commentedsame here, what is the code?
Comment #12
BeatleMike commentedI downloaded drupal commons and found no mention of shoutbox in any of it. The acquia_commons theme was not included in it either, so probably why. Would love some help on this.