detail view - original size

Phoca Gallery - image gallery extension
romino
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 May 2010, 11:12

detail view - original size

Post by romino »

Hi;

after having a look to all posts with this problem, i still have no answer of the correct to do it:

I propose images to print, no photos.
When a user / visitor is looking to an image, the site have to show the original size photo, and then with a right clic he can print it.

Some options can nearly do it: highslide propose to open image in it's original size. BUT if you choose "print" from your browser, you print all the site and not only the image

Solution would be to use no-pop-up option or standard popup, but image shown comes from thumbs_l and not the originial image path.

How to make this change in php files? And tried to do it, but without any success ...

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

Re: detail view - original size

Post by Jan »

Hi, then you need to change the paths in detail window:

components/com_phocagallery/views/detail/
components/com_phocagallery/model
components/com_phocagallery/controller

find the path to large image and change it to path of original images

see libraries folder in administration to get more info about path Class.

Jan
If you find Phoca extensions useful, please support the project
romino
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 May 2010, 11:12

Re: detail view - original size

Post by romino »

Hi;

thanks for the information ... but i didn't found the paths :(
Could you help me more precisly?

Regards
romino
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 May 2010, 11:12

Re: detail view - original size

Post by romino »

well ... just found how to do :)

in the file:

administrator / components / com_phoca / libraries / phocagallery / file / filethumnail.php

on line 33, change the line with this one:

Code: Select all

			$thumbName->rel	= str_replace ($title, $title, $path->image_rel . $filename);
and there it is ...

Doing this, you make phoca showing original picture instead of large thumb one.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: detail view - original size

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
naturphotos
Phoca Member
Phoca Member
Posts: 11
Joined: 23 Nov 2011, 12:13

Re: detail view - original size

Post by naturphotos »

why can't i use that in Phoca Images 4? Is there any possibility to use this now again?

*solved by myself*

does also work with phoca gallery 4 !
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9966
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: detail view - original size

Post by Benno »

@ naturphotos
*solved by myself*
:twisted:

Kind regards,
Benno
Post Reply