It is currently Sat Dec 16, 2017 11:11 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Jul 02, 2013 8:36 am 
Offline

Joined: Wed Jan 16, 2013 9:58 pm
Posts: 6
Sweet, thanks for your time and anwsome gallery!


Top
 Profile  
 
 Post subject: Re: Fancybox with touch/swipe support (Photoswipe)
PostPosted: Tue Jul 02, 2013 8:36 am 
Top  
PostPosted: Sun Aug 25, 2013 2:32 am 
Offline

Joined: Sun Aug 25, 2013 2:25 am
Posts: 4
Hi everybody, I've successfully installed the Photoswipe popup but it works only on the first instance of the Admiror Gallery.

In fact I have an article with such content:

Title 1
{AG}images/2013/08{/AG}

Title2
{AG}images/2013/07{/AG}

Title3
{AG}images/2013/06{/AG}


etc.

and the photoswipe is only working on the first instance of AG (images/2013/08), while on the others if I click on a picture it opens normally in a new window instead of using photoswipe!

Can you please help on that?

Many thanks,
MR


Top
 Profile  
 
PostPosted: Tue Sep 03, 2013 11:57 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Well there is one part missing.

In index.php:

Code:
// Insert JavaScript code needed to be loaded after gallery is formed
$this->popupEngine->endCode = '   
<script type="text/javascript">
    (function(window, PhotoSwipe){      
        document.addEventListener(\'DOMContentLoaded\', function(){
            var options = { enableMouseWheel: false , enableKeyboard: false },
            instance = PhotoSwipe.attach( window.document.querySelectorAll(\'#AG_01 a\'), options );
        }, false);
    }
    (window, window.Code.PhotoSwipe));
</script>      
';


As you can see we search only for AG_01 and this is wrong.
Here is the code with fix applied:
Code:
// Insert JavaScript code needed to be loaded after gallery is formed
$this->popupEngine->endCode = '   
<script type="text/javascript">
    (function(window, PhotoSwipe){      
        document.addEventListener(\'DOMContentLoaded\', function(){
            var options = { enableMouseWheel: false , enableKeyboard: false },
            instance = PhotoSwipe.attach( window.document.querySelectorAll(\'#AG_' . $this->getGalleryID() . ' a\'), options );
        }, false);
    }
    (window, window.Code.PhotoSwipe));
</script>      
';


Now it should work OK.

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Tue Sep 03, 2013 11:02 pm 
Offline

Joined: Sun Aug 25, 2013 2:25 am
Posts: 4
Now it works perfectly! Thanks a lot!

Good night

MR


Top
 Profile  
 
PostPosted: Mon Mar 17, 2014 5:13 am 
Offline

Joined: Mon Mar 17, 2014 5:08 am
Posts: 2
any chance this will work with the new version 5 and joomla 3 ?
I've copied to the popups folder and selected in config, it just display opens image in a new tab


Top
 Profile  
 
 Post subject: Re: Fancybox with touch/swipe support (Photoswipe)
PostPosted: Mon Mar 17, 2014 5:13 am 
Top  
PostPosted: Mon Mar 17, 2014 2:49 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
I don't know, never tested, but it should work the same as here. Maybe some changes should be made, not sure.

It is possible that some JS script on your site breaks the photo-swipe in some way. Can you check that there is no javaScript error on you page?

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Mon Mar 17, 2014 11:38 pm 
Offline

Joined: Mon Mar 17, 2014 5:08 am
Posts: 2
no errors that I can see, I have display php errors on, and checked sites error_log files


Top
 Profile  
 
PostPosted: Sat Sep 13, 2014 4:17 pm 
Offline

Joined: Sun Aug 25, 2013 2:25 am
Posts: 4
Hi everybody,
I've installed photoswipe as popup in my Admiror Gallery but when I click on a Album - often happens using tablet or smartphone browser - it stucks in a black page; only if I try to go back and forward it loads correctly the album's pictures and then here I can view them in fullscreen with swipe feature.

This issue is quite annoying. Can you please look at my site to this URL: http://www.marcorenzi.it/gallery.html. Please use a mobile device and try to look into an album.

I hope you can find a solution to that since photoswipe is fitting very well the mobile devices visualization using Admiror Gallery.

Thanks MR


Top
 Profile  
 
PostPosted: Fri Oct 31, 2014 1:15 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Sorry for a late replay.
I checked your website, and I don't see any issues, did you solved the problem?

Anyway, good website, and even better integration of AdmirorGallery :)
In case I ever make a list of top integrator, I would like to add your page if you don't mind.

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
 Post subject: Re: Fancybox with touch/swipe support (Photoswipe)
PostPosted: Fri Oct 31, 2014 1:15 am 
Top  
PostPosted: Sun Apr 12, 2015 12:13 am 
Offline

Joined: Sun Aug 25, 2013 2:25 am
Posts: 4
Hi Vasiljevski,
the problem is not solved (the photoswipe plugin popup was not enabled at the time of your visit).

Now I've enabled again the photoswipe plugin popup. Can you please have a look using smartphone and pc browser? on both the behavior is not the one as expected (using the smartphone I got a lot of problems... :| )

Thanks a lot

PS: I'll be glad to be added in your top integrators! :-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group