(Tutorial) How to build Flickr in Drupal

Tutorial : How to build Flickr in Drupal

Using the delightful combination of Image and Image Exact Sizes modules, two parts Views, and a dash of theming magic, you too can have your very own Flickr clone... in Drupal! This recipe will show you how!

Appetizer: Initial Setup

Modules

(Note: If you don't already have it (for shame!), download the newest spanky copy of Drupal 4.7.)

First, install and enable the modules below at administer >> modules:

  • Image
  • Image Exact Sizes (this module isn't strictly necessary, but it makes all the previews uniform which looks a bit nicer)
  • Views (remember to enable both "views" and "views_ui" modules)

Also make sure the core taxonomy and comment modules are enabled.

Next, configure access permissions under administer >> access control so that authenticated users have the ability to create and edit their own images, and both anonymous and authenticated users can view original images.

Tagging

Next, we need to use Drupal's spiffy taxonomy system to create a "free tagging" vocabulary for images.

  1. Head to administer >> categories and click add vocabulary.
  2. Enter a Vocabulary name of something really original like, Tags.
  3. Under Types, check off image.
  4. Check the Free tagging checkbox.
  5. Submit the vocabluary.

User pictures

The last thing we'll do settings-wise is enable user "avatars" that get displayed on peoples' posts and comments, for that "oh-so-community site" feel. 

Go to administer >> settings >> user and set Picture support to Enabled.

Then, under administer >> themes >> configure, check off the User pictures in posts and User pictures in comments.

To add an avatar to your user, click my account, then edit, then Upload a picture. This avatar will then be displayed next to all of your posts and comments.

[Read more..]

Courtesy : Lullabot.com