Hi.
I use phoca gallery in my website ( www.ariafanclub.com ), and use the HighSlide JS (Image Only) for detail view. I like it very much and don`t want to change it. But I can`t put in it Google AsSense... I have done everything that told here - https://www.phoca.cz/documents/45-phoca- ... ca-gallery ... it works in some detail windows but in HighSlide JS (Image Only) don`t work.
Is there any way to make it work there??
Google AdSense in detail window
- Jan
- Phoca Hero

- Posts: 49191
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Google AdSense in detail window
If you find Phoca extensions useful, please support the project
-
absenthe160
- Phoca Member

- Posts: 11
- Joined: 25 Mar 2011, 12:21
Re: Google AdSense in detail window
Hi, Jan
Thank you very much! I have solved the problem by chousing the Modal Box for detail view and changed its colors, buttons and size to suit with my website... (can see here http://www.ariafanclub.com/ru/pic/categ ... roses.html ) .
But there is another thing I want to do... I want to add the button to download the original size image in detail window... Can you please help me with this???
Thank you very much! I have solved the problem by chousing the Modal Box for detail view and changed its colors, buttons and size to suit with my website... (can see here http://www.ariafanclub.com/ru/pic/categ ... roses.html ) .
But there is another thing I want to do... I want to add the button to download the original size image in detail window... Can you please help me with this???
-
absenthe160
- Phoca Member

- Posts: 11
- Joined: 25 Mar 2011, 12:21
Re: Google AdSense in detail window
Hi again.
I have tried some ways to solve my problem and have found some things that I need, but now I have vome across another problem... I will explain what I have done, and will be very thenkful for any kind of help.
So, when the picture is opened in Modal Box detail window, there is a function in Phoca Gallery to close the window when you click on the image... and I want to replase this function with the one that`s download the full size picture... so when you click on the image on detail window it will offer you to save the full size picture on your computer.... I think it is an better idea then closing the window.
And I have found that in the file \components\com_phocagallery\views\detail\tmpl\default.php, the line 13 contains this - .'<a href="#" onclick="'.$this->tmpl['detailwindowclose'].'">'.$this->item->linkimage.'</a>'; - which is doing the "close window" function.
And in the file \components\com_phocagallery\views\category\tmpl\default.php, the line 344-345 contains this - echo ' <a title="'. JText::_('Image Download').'"'
.' href="'.JRoute::_('index.php?option=com_phocagallery&view=detail&catid='.$this->category->slug.'&id='.$value->slug. $tmplCom.'&phocadownload='.$value->displayicondownload.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') ).'"'; -
which is doing the download function.
And I tried to put this part of code in the place of "close window" code, but it cannot get the path of the picture there... and I get 404 Error.....
Please, can someone help me with this???
I have tried some ways to solve my problem and have found some things that I need, but now I have vome across another problem... I will explain what I have done, and will be very thenkful for any kind of help.
So, when the picture is opened in Modal Box detail window, there is a function in Phoca Gallery to close the window when you click on the image... and I want to replase this function with the one that`s download the full size picture... so when you click on the image on detail window it will offer you to save the full size picture on your computer.... I think it is an better idea then closing the window.
And I have found that in the file \components\com_phocagallery\views\detail\tmpl\default.php, the line 13 contains this - .'<a href="#" onclick="'.$this->tmpl['detailwindowclose'].'">'.$this->item->linkimage.'</a>'; - which is doing the "close window" function.
And in the file \components\com_phocagallery\views\category\tmpl\default.php, the line 344-345 contains this - echo ' <a title="'. JText::_('Image Download').'"'
.' href="'.JRoute::_('index.php?option=com_phocagallery&view=detail&catid='.$this->category->slug.'&id='.$value->slug. $tmplCom.'&phocadownload='.$value->displayicondownload.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') ).'"'; -
which is doing the download function.
And I tried to put this part of code in the place of "close window" code, but it cannot get the path of the picture there... and I get 404 Error.....
Please, can someone help me with this???
- Jan
- Phoca Hero

- Posts: 49191
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Google AdSense in detail window
Hi, for now I have no experiences with customizing this part
, you need to somehow load the same behaviour like the category view has - to download the image and paste it to detail window code, but really no concrete advices there 
Jan
Jan
If you find Phoca extensions useful, please support the project