I know this may be a silly question, but I'm trying to create a web page on my drupal web site which (automatically) has a picture of all of the users who have uploaded their image (or contains a default image if they had not yet uploaded their picture). I am trying to figure out whether gallery2 or photo album or organic group/album is the best bet for something like this -- or if I need to try and program something myself. Basically, I am trying to create a community "face page" that lists everybody who is a part of the web site.

Any ideas? Thanks for your help.

Thanks,

Albert
www.ithou.org

Comments

jkeable’s picture

I'm currently developing precisely that functionality as a module, so just mail me again in a week. Basically, it generates a new jpg each time a user updates its avatar. It relies on GD.

It will also have as a parameters :
-the size of thumbnails
-the spacing between columns,
-the number of columns.

ajwwong’s picture

This is great news...

Thanks so much, you're a hero..... hip, hip, hooray!!!

.....and I'll email you in a week!

Albert
www.ithou.org

Walt Esquivel’s picture

Hi jkeable,

Thanks for your module! Sounds really nice. Will it be released for 4.6, 4.7, or both? I'm using 4.7.

What's the name of it so I can download it from the contributed modules at some point in the future?

Thanks again for your contribution. Much appreciated!

-----
Walt Esquivel, MBA, MA, Captain - U.S. Marine Corps (Veteran)
President, Wellness Corps, LLC
-----
Drupal Users and Developers by Geographical Location
http://drupal.org/node/46659

jkeable’s picture

It currently doesn't have one, but 'face page' would be an option. Any other idea ?

here are some other features :

-displays the username under each picture
-made of a single jpg (to spare you from hundreds of http requests), but will have an area map that links to some relevant page for each user

Walt Esquivel’s picture

I think "face page" for the module is very appropriate.

Will the user name displayed under each picture be a link to that person's profile? That would be nice!

Thanks again.

-----
Walt Esquivel, MBA, MA, Captain - U.S. Marine Corps (Veteran)
President, Wellness Corps, LLC
-----
Drupal Users and Developers by Geographical Location
http://drupal.org/node/46659

jkeable’s picture

yes, the name will be displayed underneath the pictures

chrisd’s picture

This module looked really interesting. But no news since a few months now.
Any update on this module ?

Thanks,
C
Tech. articles with a WAMP+IIS+Drupal focus

Take a break: Guide to France

ajwwong’s picture

another possibility for making this work: try looking at the profile.page

For example, on my site, go to

www.ithou.org/profile

That seems to do the trick, although the formatting leaves much to be desired.

Also, check out:
http://connect.goodstorm.com/profile

(You may have to log in in order to view the profiles.)

Albert
www.ithou.org

Walt Esquivel’s picture

I haven't looked at any Drupal powered sites to see if the functionality I discuss below already exists. Sorry if it does! If it does exist, well I think that's great! :)

It would be nice if there was a way to click on something in some type of overall profile view that would then ONLY show us profiles WITH pictures. Many folks do NOT upload pictures and so one is cluttered with a long list of pages of profiles with sporadic pictures here and there when perhaps all one wants to see are those profiles WITH pics. Dating sites come immediately to mind where one might perhaps just want to see the cute girls (or guys as the case may be).

So maybe adding a "search" view on profile with something such as a clickbox that one can check off for "Profiles with pictures" could be a solution?

Walt Esquivel, MBA, MA, Captain - U.S. Marine Corps (Veteran)
President, Wellness Corps, LLC
DreamHost Rewards Affiliate Program

madhatter’s picture

you did with the community page and esp. with your personal profile. Can you show me how it was done?

And what happened with the facepage module =) Was it ever released?

thanks,
Vincent

ajwwong’s picture

well... time to pick up the old css book!! :-)

I don't remember what exactly I did, but I do know that I futzed around *majorly* with a bunch of stuff, mostly having to do with css... so, try pulling out the ol' css book -- It's kinda rough at first, 'cause I hadn't done a lick of css prior to a month ago... but I picked it up ok --- even if I've forgotten almost all of it already :-)

in terms of functionality... I patched the user.module in order to get *different size* user pictures... you can see this post... where I laid this out here:

http://drupal.org/node/59151

what else... umm.... there's a buddylist patch that I used to make buddylist a "symmetrical relationship' which is what lots of people want and need....

and you can check here...
http://drupal.org/node/11892

Albert
www.ithou.org

ps never got the facepage module tho check with the guy he might have it

Dublin Drupaller’s picture

Hiya,

here's a "face block" snippet I used in a block for a list of speakers and panellists at a conference..

It displays the picture + their name (user name) + their position (profile field) and links to their profile page.

It could be extended out into a normal page (using the PHP filter) and listing all members of your site + paging.

Let me know if you want to go the full nine yards with that...here's the snippet and here's a link of it in action.

Notes:

(a) It ignores users who haven't uploaded a pic.
(b) Order is random
(c) Increase $count to the number of user "faces" you want listed.
(d) Snippet works in 4.6 (haven't tried it in 4.7)

<?php
$count = 22;
$result = db_query_range(db_rewrite_sql("SELECT * FROM {users} u ORDER BY RAND()"), 0, $count);
  while ($user_info = db_fetch_object($result)) {
      if($user_info->picture){
      print "<p align=\"center\"><a href=\"user/$user_info->uid\" title=\"View $user_info->name 's profile and brief biog.\">";      print '<img border="1" border-color="#eaeaea" src="'.$user_info->picture.'" width="88"><br>';
      print $user_info->name;
      profile_load_profile($user_info);
      print "</a><br>(<small>$user_info->profile_position - $user_info->profile_company</small>)<br>";
      print "</p>";
   }
}
?>

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

m4ssiv3’s picture

This works wonders, well done, but i got a little problem with it.. if you could help me out that would be great..

so the problem is that. the block only works showing the pics in it, when the user has access (permission) to the NODE Module--> administer nodes,(which i dont wont them to have obviously) eitherwise when the block loads it returns this (in the block deforming the sites layout)

user error: Unknown table 'n' in on clause
query: SELECT * FROM users u INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND CONCAT(na.realm, na.gid) IN ('all0','og_public0','og_all0')) ORDER BY RAND() LIMIT 0, 4 in /domain.com/includes/database.mysql.inc on line 66.

Have you any idea what the prob is?

kenwen’s picture

get it to show the latest members to sign up?

Cheers,
Ken

tain’s picture

This is exactly what I need! If only it worked with 4.7...

macm’s picture

Congratulations again Dublin Drupaller. This snippet could be in handbook.

How can I do to run this snippet in 4.74?

I am receiving block without images (but I can clik and go to user profile) nothing print

Please update to 4.74

Thanks! Now it is working

pkoura’s picture

Hi all,

I've developed a social network and ran into a lot of the same issue. Here is an example of the userpage I've created for my "community page". I was actually able to do the whole face page thing with avatars and the user links underneath but it tends to get a bit messy and I opted for a modified version of the userlist module. Just some food for thought if you're caught in a rut of what to do for a facepage.

http://criticalsole.com/userlist

Criticalsole.com rolls on Drupal!

tom-d’s picture

I'm also interested in what you have done with your face page pkoura, I have tried to use views to display a face page but with no success.

http://www.polybonk.com

gurukripa’s picture

i am sure u r an expert now :)
the user pictures page is amazing..
how did u do it..
can u guide me thru the process for Drupal 5.1
thanks

gurukripa’s picture

hi..can u pls tell us how to do what u have done on the profile page..thanks..i use 5.1

Muslim guy’s picture

Members pictures - badly needed!

I am very sure everybody else with no PHP knowledge would love to have this functionality

http://mashable.com

http://myspace.com

Just how on earth to have that `recent members pictures' ?

Please, thanks in advance

gaijinu’s picture

Walt Esquivel’s picture

I tried out the demo provided on the avatar gallery's module page and scrolled down to the "AVATAR GALLERY". I see that "There are 2370 users of HomelessNation.org!" and there are hundreds of avatars shown, many of them as a repeat of the shadow outline of a person.

Before I try downloading and playing with this module, does anyone know if this module can allow only a certain number of avatars, say 25, 50 or 100, to be shown in the block? I don't think I'd want 500 avatars shown in my web site's block. Also, is there any way to avoid repeating the same avatar over and over (the shadow outline of a person) as is seen in the demo?

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

jp300game’s picture

i am having the same problem getting to the community with the pix and all..any help...