field_image problem in advanced profile

field_image problem in advanced profile

  • slaughtre
  • 4
  • 2008-05-01
  • Offline
  • Fri, 05/02/2008 - 07:51

Hello Michelle,

first of all - great thanks for the great tutorial and wonderful module.

Right now I am trying to put images in the User Profile, but I've run into some troubles.

Modules I use are:

advanced_profile-5.x-1.0-alpha3
bio-5.x-1.2
cck-5.x-1.x-dev
panels-5.x-2.0-beta3
views-5.x-1.6
imagecache-5.x-1.5
imagefield-5.x-1.2-rc1
imagefield_gallery-5.x-1.3
jquery_update-5.x-1.0

First, I successfully added a group "My images" at admin/content/types/uprofile and filled it with four image fields.

Then I added a "small" namespace in the image cache module and defined it to produce 100px X 100px small version of image.

Then I set those four image fields in uprofile [in teaser column] at admin/content/types/uprofile/display to display as "small as link" and in full column to display as "default".

Then at admin/panels/panel-page/userprofile/edit/content I added a ' "Node from user" node cck group ', choosing from drop down menu group "My images (uprofile)"

The success is after uploading those images to user profile they appear in the panel "My images", but only the first one is presented as a "small as link" which after clicking shows the bigger version using lightbox - the problem is all other three of them are displayed as big versions under the first "small" one (even if I set them to display inline in uprofile fields configuration page).

Please take a look at:

http://xn--maolat-4db.pl/user/1

Any help greatly appreciated, and thanks in advance.

Kind Regards,
slaughtre


Images

  • Michelle's picture
  • Michelle
  • 436
  • 2007-05-13
  • Offline
  • Fri, 05/02/2008 - 14:02

Hmmm... Only thing I can think of offhand is did you make sure you set all 4 images to use the small version on the CCK display fields tab?

Michelle


Yes, they are set to small...

  • slaughtre
  • 4
  • 2008-05-01
  • Offline
  • Sat, 05/03/2008 - 05:20

All the image fields are set to small - I even tested various combinations of display - inline / above + small / small as link with same unsatisfactory results. :[

slaughtre


Problem solved...

  • slaughtre
  • 4
  • 2008-05-01
  • Offline
  • Sat, 05/03/2008 - 05:48

Hello Michelle,

I just found the solution in the place I should have started looking for it - in the imagefield_gallery readme file:

"Imagefield_gallery is designed to work with nodes that
have only one imagefield, it does not currently work with nodes that have
more than one imagefield. Results cannot be garunteed in these
situations. For best results set your imagefield to be a multi-value
imagefield and then use the links below to administrate the look of your
gallery."

Setting image field in admin/content/types/uprofile to be multivalue gives the possibility to upload several images to the user profile and they are displayed properly in the profile - as "small" thumbnails which display nicely with lightbox2 by clicking.

Sorry for bothering you... I just wrote this for the other folks that could have similar problems.

Have a great weekend Michelle :)

Greetz,
slaughtre


Oh!

  • Michelle's picture
  • Michelle
  • 436
  • 2007-05-13
  • Offline
  • Sat, 05/03/2008 - 10:41

I'm sorry, I completely missed the fact that you were using imagefield_gallery or I could have saved you some time by telling you that. :(

Well, at least you've got it solved. That's a nice little module, isn't it?

Michelle


Not a problem...

  • slaughtre
  • 4
  • 2008-05-01
  • Offline
  • Sat, 05/03/2008 - 12:25

...as it was my fault not to read readme.txt.

The module is really nice and integrates with advprofile very fine way.

Thanks for a great module once again!

slaughtre


Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options