Problem by opening album because an extra security on server

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
lnvoh
Posts: 2
Joined: Mon Apr 28, 2014 12:18 pm

Problem by opening album because an extra security on server

#1 Post by lnvoh »

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/compone ... mplate.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!

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Problem by opening album because an extra security on se

#2 Post by Vasiljevski »

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: Select all

$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: Select all

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

lnvoh
Posts: 2
Joined: Mon Apr 28, 2014 12:18 pm

Re: Problem by opening album because an extra security on se

#3 Post by lnvoh »

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.

Post Reply