How to remove Slideshow source code from Phoca Detail Views?

Phoca Gallery - image gallery extension
nemmar
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 13 Mar 2014, 18:55

How to remove Slideshow source code from Phoca Detail Views?

Post by nemmar »

Hi,

I just upgraded my site to Joomla 3.3.4 and also upgraded to Phoca Gallery 4.1.1.

On my J2.5.4 site I had posted in this forum and got the steps to remove the Slideshow source code from Phoca Detail Views. I need to make those same edits to Phoca Gallery 4.1.1. The Slideshow adds every photo in the gallery into the source code of the pages which makes my site much slower. I don't need the slideshow or that source code on my site.

1) Is there a Phoca Gallery setting to remove the slideshow source code from the site pages?
Phoca Gallery Options > Detail View > Slideshow Settings > Display Buttons > No

In Phoca Gallery 4.1.1 Detail View the souce code line 316 begins with all the photos in the gallery for the Phoca slideshow even if I have settings to hide the slideshow buttons. For example:

Code: Select all

<div id="content-area">
<script type="text/javascript">
/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
var phocagallery=new fadeSlideShow({
	wrapperid: "phocaGallerySlideshowC",
Thanks for any advice!
Last edited by nemmar on 28 Sep 2014, 23:48, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to remove Slideshow source code from Phoca Detail Vi

Post by Jan »

Hi,

1) no there is no such option

in file: components\com_phocagallery\views\detail\view.html.php

there is a line which loads all the javascript code which is stored in own file:

Code: Select all

parent::display('slideshowjs');
This code you should comment :idea:

Jan
If you find Phoca extensions useful, please support the project
nemmar
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 13 Mar 2014, 18:55

Re: How to remove Slideshow source code from Phoca Detail Vi

Post by nemmar »

Hi Jan,

Thank you for that advice. I commented out that line 403 of code and it fixed two problems for my Joomla 3.3.4 site.

1) It removed the slideshow source code and all the unwanted URLs with the photos in the Phoca Gallery. So my site pages load faster without the excessive source code.

2) Here is something else it fixed that I didn't expect: Your slideshow JS apparently loads an extra version of jQuery which creates a conflict with my bootstrap site template. I was having problems with duplicate menus showing up in some pages of my site template. This is caused by extensions loading an extra version of jQuery, which conflicts with bootstrap, since bootstrap loads it's own version of jQuery for the template to work.
When I commented out line 403 of the slideshow JS code, it solved this problem related to an extra jQuery.

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

Re: How to remove Slideshow source code from Phoca Detail Vi

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply