I have developed a modified version of the avatar gallery. Not sure if you want to commit my changes because I have used a different approach. i.e. My version does not use the dynamically created imagemap but instead uses floating divs and css to style the gallery.

Also included are support for
OG galleries
random avatar block
new user avatar block
author avatar block
limiting number of avatars per page
CSS styling for avatar images and avatar pages.

You can download the beta from http://www.hyrme.com/

Currently it needs to have the current version of avatar gallery to function properly as it uses the same missing image setting.

Depending on what you think I can either help merge the code into this version or fork out into a different project.

Comments

antenne’s picture

How does this work?

I have installed the old and this beta version, but I only can set the settings of the old version..

I can't put the new blocks on my pages, the whole site goes blank.
And I can't put the blocks in my panels

panis’s picture

do you have access to the error logs on your server? can you see what the errors are and post it here or email them to me.. It should work out of the box.

antenne’s picture

Status: Active » Closed (fixed)

No I don't have acces to that..
I've dissabled the module and now using the old one instead..

Only problem is I can't get the avatar gallery block of the old one either

WISEOZ’s picture

Status: Closed (fixed) » Active

I'm certainly interested in this additional module. Is it PostgreSQL ready/tested?

I'm currently experiencing blank white screens when accessing admin/user/avatar_gallery/regenerate or admin/user/avatar_gallery/view so I haven't really seen the original module work yet. But, the modifications you describe are exactly what I would have liked to accomplish with an avatar gallery including the OG support.

I marked this issue active again because I don't really see how you ever got a response on your proposal to combine the modules.

panis’s picture

I have not tested on postgreSQL - I do not have the setup to do so. However the module does not create any new tables or update any tables so you may be able to just drop it into your install and test if possible. There are a bunch of select calls and outer and inner joins that should be work across DBs - but..

coupet’s picture

@panis, I think a new module maybe required as per different features.

The major difference between this and the other version is that the original version uses an imagemap to generate the avatar gallery and the avatar gallery is one large image. This version of avatar gallery does not use imagemaps but instead relies on floating divs containing individual images to generate the gallery.

WISEOZ’s picture

Should this be installed in the /avatar_gallery directory or the /sites/all/modules directory? I'm willing to give this a go and see how it works in a PostgreSQL environment.

panis’s picture

independent module so should go in sites/all/modules/

WISEOZ’s picture

I've enabled this Avatar Gallery 2 module and no errors ... WOO HOO!

How do I create an OG block for my OG page? I didn't see this as a block it came with already.

amnion’s picture

I cannot get this to work. I see it on a lot of other websites. It says you can choose how many avatars show up on a page or in a block. I can only see where it asks for how many on the page. No matter what, it only puts on avatar in the blocks.

the2ndday’s picture

Thank you for your great work.

I just installed it, and have been testing it.
I used Views and put the "random avatars" block on view, but
It show only one avatar even though I set 10 avatar per page.

panis’s picture

Status: Active » Closed (works as designed)

WiseOZ:
avatars/og/ or avatars/og/my
should display all avatars for all groups you belong to or to a specific GID on a specific page

The random avatar block or new user block will display members of the group if the block is embedded in your OG home page.

amnion:
avatars/site/all should display all your avatars on your site in a page.

the2ndday:
the number of avatars in a block is set in the block configuration page - the avatars/block you are setting changes the number of avatars on the full page view at links above.
Unfortunately however the block code has the number of avatars hardcoded to 1. You can edit the .module file and change lines 192, 196 and replace the first argument to the function call avatargallery2_show_block() '1' with the number you want. Or else replace the '1' with this code. variable_get('avg2_block_users_'. $delta, 1) The second option will let you configure how many avatars are displayed in a block via the configuration settings for the block - however I have not tested this so your mileage may vary.

iaminawe’s picture

I can confirm that that fix works and allows you to allocate the amount of avatars through the block setting.

Great module ... this extra flexibility is greatly needed...

It would be awesome to tie this in with imagecache support to be able to easily change the avatar sizes to imagecache presets.

iaminawe’s picture

I am using the imagecache profiles module and it works great for generating 2 different sizes. Problem is I need more than two sizes.

How would I specify a custom imagecache profile just for the blocks?

Thanks
Gregg

panis’s picture

Not straightforward - you will need to do a few different things if you are up for it.

1. change the theme_avatargallery() function like so - just that one change

function theme_avatargallery($avatar, $type='page') 

2. change _avatargallery2_view() function like so:

function _avatargallery2_view(...., $type = 'page') 

and

$output = theme('avatargallery', $u, $type);

3. in the avatargallery2_show_block() function locate where the _avatargallery2_view() function is being called and change it to be

	return _avatargallery2_view($result, $limit, FALSE, 'block');

4. in your own theme file write a
phptemplate_avatargallery() function to override the existing theme_avatargallery() function and you can change it to work as you wish.

iaminawe’s picture

Thanks will try that and report back.