personal album
xjs - July 27, 2008 - 20:32
There are several gallery modules. Which one can be used for creating personal album for each user? Thanks!
There are several gallery modules. Which one can be used for creating personal album for each user? Thanks!
Gallery-module will do that.
Gallery-module will do that. The module is a 'portal' between Gallery and Drupal. All the settings and stuff can be quite overwhelming. It's a great module, but I'm not quite comfortable with a whole seperate gallery running besides Drupal... I like some more integration.
You can use Views-module in combination with CCK-module and create an image-content-type. With the views-module you can then create an album-page per person. I think you probably want ImageCache-module too, for creation of thumbnails etc.
Here is the code I use for a
Here is the code I use for a view that I created for per user image galleries. All you need is the CCK, imagefield, and image cache modules. Gallery2 can do the job, but this is, in my opinion, a lot easier to implement.
$view = new stdClass();$view->name = 'per_user_image_gallery';
$view->description = 'Individual user image galleries';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'User galleries';
$view->page_header = 'Each registered user has his/her own image gallery. The links below indicate the user name; the number in parentheses is the number of images the user\'s gallery holds. ';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'member/galleries';
$view->use_pager = TRUE;
$view->nodes_per_page = '6';
$view->sort = array (
);
$view->argument = array (
array (
'type' => 'uid',
'argdefault' => '3',
'title' => '%1\'s Photo Album',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'image',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node);
$views[$view->name] = $view;
----------------------------------------------------------------------
http://www.bwv810.com/
I am a writer, researcher and solo drupal freelancer.
Je peux communiquer en français. / Я могу общаться на русском языке.
Thanks for the kind replies,
Thanks for the kind replies, which are very useful.
------------------------------
ispeakx