It is currently Sun May 20, 2018 5:57 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Feb 20, 2013 12:08 pm 
Offline

Joined: Wed Feb 20, 2013 11:12 am
Posts: 6
Hi, just installed AdmirorGallery extension and used the gallery template.

When viewed in my browser, I've got two errors:

"NetworkError: 404 Not Found - http://localhost/webs/mueblescapel.es/w ... t/next.gif"
"NetworkError: 404 Not Found - http://localhost/webs/mueblescapel.es/w ... t/prev.gif"

The problem being in ../templates/galleryView/jquery.galleryview-2.1.1.js:

Code:
         // Determine path between current page and plugin images
         // Scan script tags and look for path to GalleryView plugin
         $('script').each(function(i){
            var s = $(this);
            if(s.attr('src') && s.attr('src').match(/jquery\.galleryview/)){
               loader_path = s.attr('src').split('jquery.galleryview')[0];
               theme_path = s.attr('src').split('jquery.galleryview')[0]+'themes/';
            }
         });


theme_path and loader_path are undefined as there are no <SCRIPT src='....jquery.galleryview'> anywhere in the page code.

I have workarounded this by hard coding the paths:

Code:
                        if( !theme_path ) {
                            loader_path = 'plugins/content/admirorgallery/admirorgallery/templates/galleryView/';
                            theme_path = loader_path + 'themes/';
                        }


Kind regards
--santilĂ­n


Top
 Profile  
 
 Post subject: Bug: imageview theme path not found
PostPosted: Wed Feb 20, 2013 12:08 pm 
Top  
PostPosted: Thu Feb 21, 2013 9:04 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Hmm interesting find :)

Personally, I have never came across this kind of problem.

What browser do you use?

Better solution could be to define
Code:
var loader_path = 'plugins/content/admirorgallery/admirorgallery/templates/galleryView/';
var theme_path = loader_path + 'themes/';

At the top of the jquery.galleryview-2.1.1.js file, along with the other variables.

This should be there at the first place, but maybe creator of galleryview missed it :)

I will update Admiror Gallery code with this improvement and add thanks to you :)

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


Top
 Profile  
 
PostPosted: Thu Apr 18, 2013 9:47 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Better solution for this problem can be found at : viewtopic.php?f=35&t=839#p3203

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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