How to show only thumb without resizing

Phoca Gallery - image gallery extension
JSleptsova
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 16 May 2012, 16:04

How to show only thumb without resizing

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48910
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to show only thumb without resizing

Post by Jan »

Hi, I think, you need to customize the code in plugin for this purposes :-(

Jan
If you find Phoca extensions useful, please support the project
JSleptsova
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 16 May 2012, 16:04

Re: How to show only thumb without resizing

Post 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 :)
Post Reply