Download & Extend

Default flickr gallery vocabulary not created

Project:Flickr Gallery
Version:5.x-1.0-beta
Component:User interface
Category:support request
Priority:normal
Assigned:wonder95
Status:needs review

Issue Summary

Installing the beta and I found a few problems on drupal 5.5.

The flickr gallery vocabulary wasn't created (I manually created my own vocabulary)
The photos/user view didn't work. I can't figure out why it's not displaying user photos. I just uploaded a photo and it shows up on the photos/tags view but not by user view. Here's the view from the module which I'm using as is:

  $view = new stdClass();
  $view->name = 'photos_user';
  $view->description = 'Display a list of photos by user';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'bonus_grid';
  $view->url = 'photos/user';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '12';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'ASC',
      'options' => 'normal',
    ),
  );
  $view->argument = array (
    array (
      'type' => 'uid',
      'argdefault' => '1',
      'title' => '%1\'s Photos',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'node_data_field_photo',
      'field' => 'field_photo_fid',
      'label' => '',
      'handler' => 'content_views_field_handler_ungroup',
      'options' => 'default',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'image',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, node_data_field_photo);
  $views[$view->name] = $view;

I'm using the default image content type that was created by this module too. I don't have imagelist installed because I can't seem to find it. Is there such a thing?

Comments

#1

Assigned to:Anonymous» wonder95

Imagelist was the original name of the module before I changed it to Flick Gallery.

I found the problem in the code for the vocab creation. I'll try to get a patch up this weekend.

#2

Status:active» fixed

Here's a patch that will create the default vocabulary. Let me know how it works for you. This time, I'll actually attach the patch.

AttachmentSize
flick_gallery_add_vocabulary.patch 2.9 KB

#3

Status:fixed» needs review

Oops, set wrong status.

#4

Any chance of a new version being posted with this patch in it?

#5

I certainly can, but I wanted to get someone else to review it first. If you can test it out for me and make sure that the category is created, I would appreciate it.

#6

Would do but don't know how!

-- Ade Atobatele

#7

Here is some documentation on patches.

#8

Hi,

Did anyone tried this patch. I'm not able to get it when I tried it myself. Please see the command run and let me know what is missing here.

public_html]$ patch -p0 < flick_gallery_add_vocabulary.patch
(Stripping trailing CRs from patch.)
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: flickr_gallery.module
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/flickr_gallery/flickr_gallery.module,v
|retrieving revision 1.1
|diff -u -r1.1 flickr_gallery.module
|--- flickr_gallery.module 29 Oct 2007 03:11:07 -0000 1.1
|+++ flickr_gallery.module 25 Feb 2008 04:15:37 -0000
--------------------------
File to patch: flickr_gallery.module
flickr_gallery.module: No such file or directory
Skip this patch? [y] y
Skipping patch.
5 out of 5 hunks ignored
public_html]$
public_html]$

Thanks

#9

I'm also having this problem and have read through this and many other pages to try to understand what needs to be done.
From what I have gathered I must apply the patch attached above
I have read the documentation on patches supplied above also

but I still do not know how to apply a patch
I'm starting to think that I must be a bit stupid
I have only been working on my project for 2 weeks and in that time I've switched host provider, transfered my domains, learned how to set up and run apache and mysql, learned how to set up Drupal and totally redesigned my old site using Drupal . So maybe I'm a bit overloaded with new info at the moment and that's maybe part of my problem. But if someone could take the time to help me with some very clear instructions I'd really appreciate it and would pass on this knowledge to others.

#10

I got this working eventually, best tip I can give is to follow the instructions very carefully. Where I went wrong was I created my own image_submission content type, then couldn't figure out why it wasn't working for a few days.
Started again from begining of instructions, got quite close, but the new image content type would upload but was not viewable. I set all the permissions correctly, but it wouldn't show. So I ended up deleting the new image content type as I think something was conflicting by having 2 image type content types. I then chaged the photo_user and photo_tags files to use my old image_submission content type. Then I opened the flickr_gallery.module and used find and replace to change every instance of the word image to image_submission. This did the trick for me.

I now want to know how to make my images thumbnail size as currently my images all show full size

#11

I just put out a BETA2 release (yes, finally), so please try that and report any bugs.

#12

I installed the Beta2 but I seem to be having the same issues with vocabulary as above. I don't mind setting up my vocabulary manually, but how do I link it to the module?

#13

There is a "Flickr Gallery Settings" page under the Site Building menu, and the first item is to set the gallery.

nobody click here