User picture support

Docc - October 28, 2009 - 09:22
Project:Chat Room
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:justinrandell
Status:fixed
Description

Patch adds the user picture to the chat user list.
Would be nice to see this feature committed. With a enabled/disabled variable maybe.

AttachmentSize
chatroom_user_picture.patch1.13 KB

#1

Docc - October 28, 2009 - 09:22
Status:active» needs review

#2

justinrandell - October 28, 2009 - 11:45
Assigned to:Anonymous» justinrandell

thanks for the patch, looking into it.

not sure how the size of the user picture will interact with the width of the chatroom? did you test that?

#3

Docc - October 28, 2009 - 12:06

Totally depends what you set the default picture size to. Looks good at the default 85x85.
Ill extend the patch with custom user picture size for the chatroom (imagecache/Imagecache Profile Pictures?) this week.

#4

justinrandell - October 28, 2009 - 12:18
Version:HEAD» 6.x-2.x-dev

great, thanks.

how would integration with imagecache work? would that be an optional dependency?

also, please make any patches against 6.x-2.x-dev, as that's where the action is at right now.

#5

Docc - October 28, 2009 - 12:21

Imagecache will be a optional dep. yes. If not enabled it will default to the default user picture.

#6

justinrandell - October 28, 2009 - 12:28

sounds good, can't wait to review your patch, i've added a note to HACKING.txt that this feature is being worked on.

#7

Docc - October 28, 2009 - 14:26

still based on HEAD. Because dev is borked and cant get it to work.
Added some profile picture settings to the settings page, including support for imagecache presets.

Didn't looked at the styling yet though.

AttachmentSize
chatroom_user_picture2.patch 3.73 KB

#8

justinrandell - October 29, 2009 - 20:46
Status:needs review» needs work

i've committed a modified version of this patch - thanks!

the styling is rudimentary, and i've left the imagecache stuff untested and not fully integrated.

i'm moving this to 'needs work' until we resolve the styling issues and test with imagecache.

#616304: revamp chat interface is the general issue for making the chat interface better, please feel free to comment there.

also, please patch against 6.x-2.x-dev. its now a lot more stable, so you should be able to use it for testing.

#9

justinrandell - November 6, 2009 - 18:03

getting back to this, more code committed to make it more robust.

#10

justinrandell - November 9, 2009 - 13:00
Status:needs work» needs review

Docc: please test this now, i've cleaned up, squashed bugs etc, so this is ready for some testing.

use the latest cvs on 6.x-2 branch and let me know what's broken.

#11

Docc - November 11, 2009 - 12:26

looks good, seems to be stable now.
Though why not leaving user picture support global?

Also a small bug, there should be a better check if user picture is enabled or not.

Small patch attached

AttachmentSize
chatroom_user_picture_check.patch 5.13 KB

#12

justinrandell - November 11, 2009 - 12:34
Status:needs review» fixed

thanks, committed here - http://drupal.org/cvs?commit=287556

please reopen if you find any other issues.

#13

artscoop - November 15, 2009 - 07:12
Status:fixed» active

Hi,
Just to say the feature worked a bit before, but I can't seem to enable the user pictures.
Everytime I save the chat node, the User picture option is unchecked.
Am I missing something ?

#14

Docc - November 15, 2009 - 11:06

artscoop, no error messages?

User profile has been moved from a system variable to its own column somewhere down the line.
You should uninstall the module and then reinstall for the new schema to take affect.

(uninstalling means losing your chatsettings)

#15

justinrandell - November 18, 2009 - 11:51
Status:active» fixed

artscoop - please reopen this if its not fixed by Docc's suggestion.

 
 

Drupal is a registered trademark of Dries Buytaert.