Tip:
Highlight text to annotate it
X
Hello. In this screencast I'll show you how to make avatars block and page of New Users.
We will need these modules: Views, ImageAPI, ImageAPI GD2, ImageCache, ImageCache UI, ImageCache Profile Picture.
Enable Views and Views UI modules
Enable modules: ImageAPI, ImageAPI GD2, ImageCache, ImageCache UI, ImageCache Profile Picture.
First of all we need to create ImageCache preset for future purpose.
Then we create view named "avblock".
(Optional you may create ImageCache preset for user's profile picture, which supposed to be bigger in size.)
Let's go
Add ImageCache Preset for avatar's block
scaling... 30x30
that's how it'll look like... save it
In the same way you add avatar preset "avprofile" for user's profile and page view.
Then we will enable user's pictures in users settings, also set avatar's size
or choose ImageCache preset you created for user's profile (avprofile)
To continue, it is assumed that you've already created users and downloaded avatars to them.
Enable avatar support for users profiles.
Just for convenience, in user settings you may specify default avatar.
Create new view "avatar_block"..
...view type is "user"
Add display as "block"
Add field "User: Picture"...
remove field label...
and choose imagecache preset "avblock".
Add sort by "User: Created date"
in descending order
Add filter "User: Active" to see avatars only active users and not blocked.
Block title
Block title for admin blocks page
Style → Grid
Amount of avatars in row is 4, so leave it unchanged.
So total amount of avatars in block should be multiply to 4
Now save it.
Give a name for this view display, just to not get confused
Add display "Page"
Name for this display.
Page URL
Change imagecache preset to which one you created for page view (avprofile) with bigger avatars size (I hope...).
The page may contain by 5 avatars in a row...
...so change total avatar amount, to be multiply to 5
Add pager for page...
and ajax for pager.
To the block add the link "more" to reference to avatars page
Here is it
Done!
Go to block's page.
Looking for the block we added and assign it to the some region.
Here is it.
Here is the link which refer us to avatars page
Ajax pager... good.
Thanks for viewing!