Page 1 of 1

Google AdSense in detail window

Posted: 22 May 2011, 20:41
by absenthe160
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??

Re: Google AdSense in detail window

Posted: 23 May 2011, 16:05
by Jan

Re: Google AdSense in detail window

Posted: 24 May 2011, 11:33
by absenthe160
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???

Re: Google AdSense in detail window

Posted: 25 May 2011, 12:45
by absenthe160
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???

Re: Google AdSense in detail window

Posted: 27 May 2011, 15:05
by Jan
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