Now when viewing Latest Albums from the menu, there is no picture to represent the album. I've set to thumbnail in the settings, but no go.

Comments

radiofranky2009’s picture

you need to enable page and teaser settings and let user to specify. I think it's a bug.

Starminder’s picture

Those settings are enabled, and the cover photo is selected, but they still don't show.

radiofranky2009’s picture

you should check your php.ini to see if short tag is enabled.

manoz_79’s picture

How do I restrict the users from specifying the page and teaser settings and only enable the default settings defined by the admin??

Thanks

Starminder’s picture

Status: Active » Needs work

Still need help with this one, thanks

billybag’s picture

Yeah, i am having the same issue as the OP

PRETTY SURE I FIGURED OUT WHAT IS WRONG:

Image display size(by list): *
and
Image display size(by page): *
when you edit the album configuration. Do not use thumbnail. That *seems* to be it. Need more testing

chakrax’s picture

I'm running into the same issue. If you disable the users from modifying the page and teaser settings on a per-album basis, then the cover/thumbnails don't show correctly on the "Latest albums" page. Interestingly, the default "http://www.example.com/photos" link shows the proper cover thumb, but the "http://www.example.com/photos/album" does not display the cover thumbnail.

If I modify the settings to allow the individual user to modify the page/teaser settings, and then set the cover photo in the album, then the display is correct. This looks like a bug.

@billybag - not sure I understand what you mean.

Subscribing.

chakrax’s picture

I think I found the problem. The display type was not looking at the global settings, only at the album settings. This patch worked for me. (minor edit 4/15/2009 - changed default values of the global settings to zero from 1)

--- photos.module-2.6   2010-04-12 15:23:06.000000000 -0600
+++ photos.module       2010-04-12 15:19:11.000000000 -0600
@@ -397,9 +397,11 @@
     case 'view':
       if($node->album['pid']){
         if($teaser){
-          $album = _photos_node_view($node, $node->album['teaser_display'], 'teaser');
+         $dtype = $node->album['teaser_display'] ? $node->album['teaser_display'] : variable_get('photos_display_teaser_display', 0);
+          $album = _photos_node_view($node, $dtype , 'teaser');
         }else{
-          $album = _photos_node_view($node, $node->album['page_display'], 'page');
+         $dtype = $node->album['page_display'] ? $node->album['page_display'] : variable_get('photos_display_page_display', 0);
+          $album = _photos_node_view($node, $dtype , 'page');
         }
         if($album){
           $node->content['album']['#value'] = '<div class="clear-block">'.$album . '</div>';
@@ -459,7 +461,7 @@
d4rkngel’s picture

Status: Needs work » Needs review

@chakrax thanks It worked for me too...

rroxas’s picture

Hi Chakrax,

I tried this in my problem but still the album does not display the pictures in the thumbnails but show the filename instead. What could be the problem?

Thanks in advance for your help.

Robert

nathaniel’s picture

Status: Needs review » Closed (fixed)