Avatar Blocks: Drupal 6.x
bgogoi - July 25, 2008 - 03:14
| Project: | Avatar Blocks |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | roopletheme |
| Status: | reviewed & tested by the community |
Description
Hello
When are you planning to release the D6 version of this great mod?
Thanks

#1
I don't have an immediate need for a D6 version of this module, and I've got a lot of other immediate needs. But I expect that I will have such a need in the future... possibly the near future. I will share as soon as I do the work.
In the mean time, I'm accepting patches!
#2
#3
Here's an attempt at converting avatar_blocks.module to run on D6.
I ran it through coder and took care of the problems it identified.
Then, I installed it and ran into an issue where theme_user_picture() had to be changed to theme('user_picture', $online_member)
To remove the calls to the db_num_rows() function, I pretty much looked at the D6 version of the user.module for direction.
The good news is I believe I got rid of all the errors.
The bad news is I'm not seeing any output :(
Hopefully this file will help someone else who wants to give it a shot.
Kevin
#4
hi,
has anybody had a chance to look at the avatar block?
is anybody using it for Drupal 6.x, if so please post the module here.
thanx
#5
Here's a working 6.x version. I'll post an official release once I clean up a few details. In the mean time, it would be great to get some feedback from anyone who has a chance to test it.
There's no buddylist block because there's no buddylist module. However, this version does provide a User by Role block. It will display the Avatars of users who are granted a role that you select. There's also an option to set a 'Default' imagecache preset that applies to all blocks. You can still override this default by setting the preset of each block separately. But if you're using the same preset for every block, you no longer have to specify the preset for each block... just configure the default preset at yoursite/admin/settings/avatarblocks.
#6
hi, i have tested this module a little... my code writing is not good at all so i didn't have a look at that, but i have a few feature requests which i think will be a great improvement to this module.
1. Allow pictures sizes to be different from profile picture settings. e.g. if i set my profile pics to be 90 X 90, and i want the avator block to show say 50 x 50 avators then i should be able to set it.
2. Show and hide usernames under profile images/avators. but the name is say only 10 characters long, the rest of the name (if a user has a name like shopenhouer it will show the whole name, if the name is say supercalofrenjalistic then it would be cut off at the 10th character and then simply 3 dots are added to the end of the name) this is to help with a better look and to keep the avator block neat and tidy.
do you think any of this is possible roopletheme?
thank for developing the 6.x version of this module, great :D
#7
The first feature is already implemented using the interface to imagecache. You can size, scale, and crop the user pictures independently for each block. Read more here. You can see this feature in action by creating an account on the AvatarBlocks demo site, and then uploading a non-square picture.
The second feature is fairly easy to achieve using a simple theme override. You can see some documentation and a sample here.
#8
thanx, roopletheme
i will be testing some of the features on the avator block website... to get a more customizable look for the site i'm creating.
will let you know here how i created certain features or how i got nitty gritty formatting correct. if you want me too. :D
#9
This is working well for me in D6. Will report any problems that arise, but so far so good.
Thanks for the port.
#10
In IE7 (Drupal 6.5) the avatar images have all slipped to the right into the "centre section" of the theme.
I have tried this with multiple themes and always the same problem.
Any ideas?
*FIXED: in the .css file you simply change the image to float "left". This does not affect the view in Firefox and it corrects the view in IE7.
#11
thank you very much
#12
you can also create a supercool slideshow block that shuffles through user pictures (avatars) using views without this module to generate a page or block - there's a tutorial at this guy's site that actually uses views slideshow module with views to do this, and the example is in fact user profiles:
http://www.drupaltherapy.com/screencasts (see views and views slideshow tutorial, very easy)
#13
Thanks Zilla!
#14
subscribing
#15
Changing title for better tracking.
#16
#5 from roopletheme works great on Drupal 6.8. Thank you for the module. Love it!
#17
subscribing +1
#18
subscribing
#19
subscribing:)
#20
+1
#21
Download zip in comment #5 from roopletheme works great on Drupal 6.9. I've been using it for two months now
#22
subscribing
#23
Great module, can it be incorporated with views or og or both. og members avatar block etc.
#24
subscribing
#25
+1
#26
zip in comment #5 working great for me running 6.14
Thanks
#27
I can't believe this hasnt been released for Drupal 6.x yet??
This works on Drupal 6.x and has been tested without any issues by a few people now - http://drupal.org/node/286990#comment-954105
#28
+1