Display Image Description on Category View with Thumbnails

Phoca Gallery plugins - plugins for Phoca Gallery extension
habak
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Aug 2012, 20:33

Display Image Description on Category View with Thumbnails

Post by habak »

Hello,

I try many different stettings in the Phoca Gallery Plugin to display the Image Description on Category View with thumbnails.
But I don't get success at the moment.

What have I to do to display the image description on Category View with Thumbnails?
Thanks in advance.

Regards

Habak
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Image Description on Category View with Thumbnai

Post by Jan »

Hi, category view is a view in component, you mean this view or the plugin displaying? If the plugin, in plugin there is no such feature.

Jan
If you find Phoca extensions useful, please support the project
habak
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Aug 2012, 20:33

Re: Display Image Description on Category View with Thumbnai

Post by habak »

Hello Jan,

thanks for your answer. I really mean the plugin.
Is there no possibility to get it?

Regards

Habak
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Image Description on Category View with Thumbnai

Post by Jan »

The description is displayed in detail window (no matter from where it is called - if from plugin or component) but it is not displayed in conent area - such needs to be customized :-( :-(

Jan
If you find Phoca extensions useful, please support the project
habak
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Aug 2012, 20:33

Re: Display Image Description on Category View with Thumbnai

Post by habak »

Hello Jan,

I tried a little bit with the code.
And now I have the solution for my needed view.
I "play fast and loose" with the namefontsize which I use for the fontsize for the description.

I do the following modification:

At Line 1354 in the plugin:
// TODO
// After IE will be standard browser (no IE7 will be used)
// change $imageBgCSSIE to $imageBgCSS

I add the next three lines:

if ($display_description == 1) {
$imageHeight['boxsize'] = $imageHeight['boxsize'] + $description_height;
}

And in the block at line 1567 which started with:

if ($display_icon_detail == 1 || $display_icon_download > 0 || $enable_piclens == 2) {

$output .= '<div class="detail" style="text-align:right">';

if ($enable_piclens == 2) {


you can find the lines with:

if ($float == '') {
$output .= '<div style="clear:both"> </div>';
}

After this I add the following lines:

if ($display_description == 1) {
$output .= '<div class="phocaimgdesc" style="font-size:'.$namefontsize.'px">'.$image->description.'</div>';
}

And it works.

Best Regards

Habak
habak
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Aug 2012, 20:33

Re: Display Image Description on Category View with Thumbnai

Post by habak »

Hello Jan,

I want make a suggestion for improvement, because I think many people would use it.

It's about the fixed view hierarchy of all gallery components.
You can`t display a diary look like it's displayed in the following image:

Image

For this look I use the plugin, but it has not the functional range as the component. For example you can't use the geotagging feature.

Furthermore a variable description-height (maximum height of all used descriptions) or a description below the image-box would be desirable.

Please don't consider my suggestion as criticism; I like the phoca gallery.

Best Regards

Habak
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Image Description on Category View with Thumbnai

Post by Jan »

Hi, thank you for your ideas, but not sure if I understand it correctly? You cannot load different categories with their images at once :-( :-( ... this will crash your server with database overloading (but maybe I don't correctly understand what you mean?)

Jan
If you find Phoca extensions useful, please support the project
habak
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Aug 2012, 20:33

Re: Display Image Description on Category View with Thumbnai

Post by habak »

Hi Jan,

you understand me correctly. But I don't know until your answer that it is a problem loading more than one category.
I do it with the plugin, but I can't realise a Problem at the moment. Will I get one?

Habak
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display Image Description on Category View with Thumbnai

Post by Jan »

Hi, I don't know the server so cannot say, if you will get some problem there or not :idea:
In every case, there is no such feature, so this needs to be customized in the code (to load all the images) and then you will see if this can make problems on your server or not :-( :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply