Page 1 of 1

How to show only thumb without resizing

Posted: 16 May 2012, 16:19
by JSleptsova
Hi,
could you please tell me if I can place only thumbs of images without any actions after mouse click?
I add {phocagallery view=category|categoryid=".$img_cat_id."|imageid=1|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=6|displayname=0| displaydetail=0|displaydownload=0|displaydescription=0|displaybuttons=0} into my own plugin code. So a single thumb of the 1st image in category $img_cat_id is inserted. Then I need to make the thumb as a link to another page, but not action of resizing. Something like <a href='...'>{phocagallery ...}</a>
I've read the documentation but didn't find if I can switch off action of resizing for a thumb. Can I do this using option "detail"?
Thank you!
Julia

Re: How to show only thumb without resizing

Posted: 18 May 2012, 00:08
by Jan
Hi, I think, you need to customize the code in plugin for this purposes :-(

Jan

Re: How to show only thumb without resizing

Posted: 18 May 2012, 19:11
by JSleptsova
Finally I've used table x628n_phocagallery to query the "filename" field (SELECT filename FROM x628n_phocagallery where catid='".$img_cat_id."' LIMIT 1) to get the filename of 1st thumb in category.
And then
$html .= "<a href='...'><img src='..//images/phocagallery/thumbs/phoca_thumb_m_".$filename."'></a>";
to insert the thumb into html.

Thank you for your Gallery! It is really efficient! And easy to custom :)