It is currently Thu Dec 14, 2017 5:15 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Apr 28, 2014 1:00 pm 
Offline

Joined: Mon Apr 28, 2014 12:18 pm
Posts: 2
Hello
Thanks for the cool gallery. It's just really easy for the end user who editing page, just do a folder and upload pictures, and ready. I really like it!

But now the problem (sorry for my bad English)! My server host use additional authorization to access Joomla site to enter in administrator page, it means that all inquiries to folder "Administrator" in the Joomla root. If I create a menu with gallery layout and open it, then Admiror Gallery opens the template CSS file just in folder administrator in Joomla root (<link rel = "stylesheet" href="http://jaalind.ee/administrator/components/com_admirorgallery/templates/default/css/template.css" type = "text / css" />), and asked for extra security passwords.
You can look it http://jaalind.ee/index.php/pildid
And the same problem when opening album.
Is there any way to avoid the Administrator folder for that.
I'm not a code writer, and that's why I can not understand why something needs to just open up there where he must open;)

I really want to use this extention, but when I cant´t get solution I cant´t use it.
Thanks!


Top
 Profile  
 
 Post subject: Problem by opening album because an extra security on server
PostPosted: Mon Apr 28, 2014 1:00 pm 
Top  
PostPosted: Thu May 01, 2014 11:30 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Well maybe you are not a code expert but you managed to find something that many have missed :)

This is a bug, there shouldn't be any request from Administrator folder when you add Gallery Layout menu item.
Thank you for reporting this.

OK, to solve this, open: components\com_admirorgallery\admirorgallery.php and remove these 3 lines :
Code:
$doc->addScript(JURI::root().'administrator/components/com_admirorgallery/scripts/jquery.hotkeys-0.7.9.min.js');
$doc->addStyleSheet(JURI::root().'administrator/components/com_admirorgallery/templates/'.$AG_template.'/css/template.css');
$doc->addStyleSheet(JURI::root().'administrator/components/com_admirorgallery/templates/'.$AG_template.'/css/toolbar.css');

For Gallery Layout this is not necessary.

If you intend to use Image Manager, in front end, as these includes are necessary for it, open: components\com_admirorgallery\views\imagemanager\tmpl\default.php and edit it so it looks like:
Code:
defined( '_JEXEC' ) or die( 'Restricted access' );

$doc = JFactory::getDocument();
$doc->addScript(JURI::root().'administrator/components/com_admirorgallery/scripts/jquery.hotkeys-0.7.9.min.js');
$doc->addStyleSheet(JURI::root().'administrator/components/com_admirorgallery/templates/'.$this->ag_template_id.'/css/template.css');
$doc->addStyleSheet(JURI::root().'administrator/components/com_admirorgallery/templates/'.$this->ag_template_id.'/css/toolbar.css');
require_once (JPATH_COMPONENT_ADMINISTRATOR.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'imagemanager'.DIRECTORY_SEPARATOR.'tmpl'.DIRECTORY_SEPARATOR.'default.php');

?>


For Image Manager you must have access to Administrator so this is ok.

If you have any troubles with this, you can send me the files mentioned and I will help changing them.

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


Top
 Profile  
 
PostPosted: Fri May 02, 2014 5:45 pm 
Offline

Joined: Mon Apr 28, 2014 12:18 pm
Posts: 2
I'm far from an expert, but thanks to the host additional security and help, I found this bug :)

But thanks a lot, now it works fine. And again, this is a super simple gallery for web-page Editor.


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