- Posts: 5
COMMUNITY FORUM
Automatic Scrolling fancyBox To Top
- Active
- Topic Author
- Offline
- New Member
Less
More
7 years 4 months ago - 7 years 4 months ago #163003
by Active
Automatic Scrolling fancyBox To Top was created by Active
Hello,
I've searched the forum and found a few topics on this issue, but nothing seems to work. I've turned off all possible conflicting JS with in the template (Go toTop, JQuery, etc.) and fancyBox is still jumping to the top of the page.
Running Joomla 3.7.2 (Automatically runs JQuery)
Here is the URL: 64.207.185.234/2017/
Using the SIG for the home page portfolio.
I'm considering purchasing the Pro version, but I am skeptical as this version does not seem to work properly.
Thanks in advance for any help you can provide for this issue.
I've searched the forum and found a few topics on this issue, but nothing seems to work. I've turned off all possible conflicting JS with in the template (Go toTop, JQuery, etc.) and fancyBox is still jumping to the top of the page.
Running Joomla 3.7.2 (Automatically runs JQuery)
Here is the URL: 64.207.185.234/2017/
Using the SIG for the home page portfolio.
I'm considering purchasing the Pro version, but I am skeptical as this version does not seem to work properly.
Thanks in advance for any help you can provide for this issue.
Last edit: 7 years 4 months ago by Active.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #163016
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Automatic Scrolling fancyBox To Top
Hello there,
Unfortunately this seems to be related with the template.
You can also apply this solution
stackoverflow.com/questions/13547007/fancybox2-fancybox-causes-page-to-to-jump-to-the-top
The file you need to edit:
github.com/joomlaworks/simple-image-gallery/blob/master/plugin/jw_sig/includes/js/jquery_fancybox/popup.php#L37-L40
Unfortunately this seems to be related with the template.
You can also apply this solution
stackoverflow.com/questions/13547007/fancybox2-fancybox-causes-page-to-to-jump-to-the-top
The file you need to edit:
github.com/joomlaworks/simple-image-gallery/blob/master/plugin/jw_sig/includes/js/jquery_fancybox/popup.php#L37-L40
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Active
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
7 years 4 months ago - 7 years 4 months ago #163019
by Active
Replied by Active on topic Automatic Scrolling fancyBox To Top
Thanks for your reply. Is this the correct syntax?
<?php
/**
* @version 3.0.1
* @package Simple Image Gallery (plugin)
* @author JoomlaWorks - https://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$relName = 'fancybox-button';
$extraClass = 'fancybox-button';
$stylesheets = array(
'fancybox/jquery.fancybox.css?v=2.1.5',
'fancybox/helpers/jquery.fancybox-buttons.css?v=2.1.5',
'fancybox/helpers/jquery.fancybox-thumbs.css?v=2.1.5'
);
$stylesheetDeclarations = array();
$scripts = array(
'fancybox/lib/jquery.mousewheel-3.0.6.pack.js',
'fancybox/jquery.fancybox.pack.js?v=2.1.5',
'fancybox/helpers/jquery.fancybox-buttons.js?v=2.1.5',
'fancybox/helpers/jquery.fancybox-thumbs.js?v=2.1.5'
);
if(!defined('PE_FANCYBOX_LOADED')){
define('PE_FANCYBOX_LOADED', true);
$scriptDeclarations = array('
jQuery.noConflict();
jQuery(function($) {
$("a.fancybox-button").fancybox({
//padding: 0,
//fitToView : false,
helpers : {
title : { type : \'inside\' }, // options: over, inside, outside, float
buttons : {}
},
helpers: {
overlay: {
locked: false
}
}
});
afterLoad : function() {
this.title = \'<b class="fancyboxCounter">'.JText::_('JW_PLG_SIG_FB_IMAGE').' \' + (this.index + 1) + \' '.JText::_('JW_PLG_SIG_FB_OF').' \' + this.group.length + \'</b>\' + (this.title ? \' | \' + this.title : \'\');
}
});
});
');
} else {
$scriptDeclarations = array();
}
Last edit: 7 years 4 months ago by Active.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #163041
by Krikor Boghossian
Helpers are being defined twice, this block:
should be moved in the first instance of helpers. The latter instance is not needed.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Automatic Scrolling fancyBox To Top
helpers : {
title : { type : \'inside\' }, // options: over, inside, outside, float
buttons : {}
},
helpers: {
overlay: {
locked: false
}
}
Helpers are being defined twice, this block:
overlay: {
locked: false
}
should be moved in the first instance of helpers. The latter instance is not needed.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Active
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
7 years 4 months ago #163046
by Active
Replied by Active on topic Automatic Scrolling fancyBox To Top
Thanks, but it's opening the photo in a separate window now -
if(!defined('PE_FANCYBOX_LOADED')){
define('PE_FANCYBOX_LOADED', true);
$scriptDeclarations = array('
jQuery.noConflict();
jQuery(function($) {
$("a.fancybox-button").fancybox({
//padding: 0,
//fitToView : false,
helpers : {
title : { type : \'inside\' }, // options: over, inside, outside, float
buttons : {}
overlay: {locked: false}
},
afterLoad : function() {
this.title = \'<b class="fancyboxCounter">'.JText::_('JW_PLG_SIG_FB_IMAGE').' \' + (this.index + 1) + \' '.JText::_('JW_PLG_SIG_FB_OF').' \' + this.group.length + \'</b>\' + (this.title ? \' | \' + this.title : \'\');
}
});
});
');
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #163057
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Automatic Scrolling fancyBox To Top
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Active
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
7 years 4 months ago #163066
by Active
Replied by Active on topic Automatic Scrolling fancyBox To Top
It's still jumping to the top of the page in that screen shot.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #163087
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Automatic Scrolling fancyBox To Top
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Active
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
7 years 4 months ago #163091
by Active
Replied by Active on topic Automatic Scrolling fancyBox To Top
That works! Thanks for the solution!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #163100
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Automatic Scrolling fancyBox To Top
You 're welcome :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.