Page 1 of 1

Display short description with text link under thumbnails

Posted: 31 Oct 2008, 15:54
by krajcek
I need to add a short (two line) address for each thumbnail that links to a unique page in the site. Example: thumbnail click would target the shadowbox / slideshow but text link (from description) would target a particular menu id. I was going to try this with overlib (but can't make it sticky) to allow click-through. Then I thought well maybe the same way overlib passes description could be used below thumb title. Please advise if this is possible and best place to make the adjustment.

This is the first I'm using this component and so far I like it very much. I haven't donated yet but will certainly do so if I can solve this problem and remove the branding link. Thanks for giving this your attention.

Re: Display short description with text link under thumbnails

Posted: 31 Oct 2008, 18:41
by Jan
Hi,
there are a lot of possibilities (in html, php), you can change e.g. some icon below the text to some text which will display a link to some other site, you can add the link below the text too (if you make the box larger in parameters), the overlib can be hava a stick behaviour, see:
navigation on this site:
https://www.phoca.cz/documentation/index ... 2-features

every change you can do here:
components\com_phocagallery\views\category\tmpl\default.php, see the html code for the overlib on the phoca documentation site, you can add change it on line 149 +

if you will donate and let me know via e-mail (info [at] phoca [dot] cz), I will send you files which using can hide the branding
Jan

Re: Display short description with text link under thumbnails

Posted: 31 Oct 2008, 20:09
by krajcek
Thanks so much for your fast response. I will be launching this site in a few days and this was one of the final tasks on my list. Once launched I will contact you about branding (after donation is posted.) Thanks again!

Here's a link to the dev site if interested:
http://s46647.gridserver.com/index.php? ... &Itemid=77

Re: Display short description with text link under thumbnails

Posted: 31 Oct 2008, 22:02
by Jan
ok

Re: Display short description with text link under thumbnails

Posted: 31 Oct 2008, 23:37
by krajcek
Jan wrote:Hi,
there are a lot of possibilities (in html, php), you can change e.g. some icon below the text to some text which will display a link to some other site, you can add the link below the text too (if you make the box larger in parameters), the overlib can be hava a stick behaviour, see:
navigation on this site:
https://www.phoca.cz/documentation/index ... 2-features

every change you can do here:
components\com_phocagallery\views\category\tmpl\default.php, see the html code for the overlib on the phoca documentation site, you can add change it on line 149 +

if you will donate and let me know via e-mail (info [at] phoca [dot] cz), I will send you files which using can hide the branding
Jan
I looked at the link you provided for the phoca content navigation, but don't know where I would make the overlib sticky in phoca gallery. Can you point me to the appropriate file or is it the same . . .category\tmpl\default.php

Also, is it possible to display first two lines of description below title? I already expanded the height of thumb box but no additional text is displaying, so I'm guessing I need to set a parameter in the php to pull description or maybe it's better to use virtuemart id field and point to an article instead of product. I see what you mean about the possibilities. I'm getting confused about the best approach. This link shows an example of the overlib but I'd also like this sticky and the same link under thumb title. If you have a look, thank you!

Re: Display short description with text link under thumbnails

Posted: 02 Nov 2008, 20:55
by Jan
overlib:
see lines 149 +
in components\com_phocagallery\views\category\tmpl\default.php

for sticky code you should add, e.g.:

STICKY, MOUSEOFF, WIDTH, 400

here you find every feature of overlib
http://www.bosrup.com/web/overlib/?Documentation

Jan

Re: Display short description with text link under thumbnails

Posted: 03 Nov 2008, 17:56
by krajcek
Thanks much Jan,
This worked wonderfully, here's the code from line #152 for anyone interested:
[ ...\com_phocagallery\views\category\tmpl\default.php ]

Code: Select all

echo " onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div style="'.$divPadding.'">'.$value->description.'</div>'))."', CAPTION, '". $value->title."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaClass', FGCLASS, 'fgPhocaClass', BGCLASS, 'bgPhocaClass', CAPTIONFONTCLASS,'capfontPhocaClass', CLOSEFONTCLASS, 'capfontclosePhocaClass', STICKY, MOUSEOFF, WIDTH, 200);\"";
Now I just need to figure out how to add the first two lines of description. I'm guessing somewhere around line #121 but I don't know the correct syntax so I guess @day and I will have to wait for the kindness of phoca hero.

Re: Display short description with text link under thumbnails

Posted: 03 Nov 2008, 19:32
by Jan
great...
description is saved in:

$value->description

the lines for adding the name are:
202 +

there you should paste something like that:

...<br /> function to cut the description ( $value->description)

Jan