Album Description is missing?

Yur - August 18, 2008 - 12:02
Project:Gallerix
Version:5.x-1.3-1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi there.

First of all, thanks for perfect module! I uses it to serve little art-community needs and it exactly feets all community members neeeds.

But once users asked me "Why we don't see Album description field, even it's already filled"?
Started post as a support request, but while writing, solution was found, so, probably, I must mark it as *solved*.

Overrided *gallerix_frame* function was used in my template.php to insert *Send this photo to mobile*, so, I just add printing body output. Also, #gallerix-display style was overriden in my theme's style.css to make line-height value not as 0, but as 110%.

I've attached a screeenshot, how it looks like now. And here is the code I've uses:

style.css

/*To make description visible*/
#gallerix-display {
line-height:110%;
}

/*to decorate it a little and put it to left */
#gallerix-description {
padding: 1em; margin: 0.5em 0; border: 1px solid #eefdea; width:50%; float:left;
}

template.php

function MYTHEMENAME_gallerix_frame($node) {
$picture = gallerix_load_picture($node->gallerix['current']);
$source = $picture->frame;
$output = '';
$output .= '<div id="gallerix-loader">' . "\n" ; 
$output .= '<div id="gallerix-display">' . "\n" ; 
/*gallerix-description div starts here */
$output .= '<div id="gallerix-description">' . "\n";
/* Let users vote for albums (not images!) */
$output .=  extra_voting_forms_show_form($node, 'n', 3, 'yes_no');
/*print description field itself */
$output .= $node->body;
/* description div ends */
$output .= '</div>' . "\n" ;
/*custom  code, sends current viewed picture to mobile, skipped */
$output .= "<span style=\"float:right; margin: 0.5em 0;\"><a href='javascript:void(0);' ... </span>";
$output .= theme('image', $source,'', $picture->caption, array('id' => 'gallerix-frame'));
$output .= '</div>' . "\n" ;
$output .= '</div>' . "\n" ;
return $output;
}

Hope this helps somebody who will face similar task. Thanks again for module, it helps me a lot!

AttachmentSize
gallerix-descriprion-fix-1.jpg40.47 KB
 
 

Drupal is a registered trademark of Dries Buytaert.