Double Gallery showing in J2.5

Admiror Gallery is free extension for Joomla! based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
nikstar81
Posts: 4
Joined: Wed May 23, 2012 7:52 am

Double Gallery showing in J2.5

#1 Post by nikstar81 »

Hi,
I am loving this gallery! Although I am having an issue that needs fixing.
I have installed Admiror Gallery 4 in Joomla 2.5.4 here http://websitefx.info/index.php/compone ... ge-gallery and I am having a double gallery display on the page. I'm not sure what to do, so any help would be much appreciated :D

Thanks,
Nikki

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: Double Gallery showing in J2.5

#2 Post by Vasiljevski »

Link you provided is broken :(

But by the title, I guess your problems is similar to this topic :http://www.vasiljevski.com/forum/viewto ... f=22&t=592
Help Admiror Gallery become even better,
give us a review on JED

nikstar81
Posts: 4
Joined: Wed May 23, 2012 7:52 am

Re: Double Gallery showing in J2.5

#3 Post by nikstar81 »

Thankyou very much for your prompt reply :D

Sorry, the servers were being upgraded - bad timing :cry: The link should work fine now, I just checked.
I have had a look at the link you supplied, how do I know if that is the issue in this instance?

Cheers,
Nikki

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

Re: Double Gallery showing in J2.5

#4 Post by Vasiljevski »

Well it seams it is not the same issue as on the link I added :)

Sorry, site was down and I supposed from the title that it is similar problem.

Well the solution would be to disable "arisexylightboxlite" plugin that makes images open two times.
Admiror Gallery already uses it's own popup script for images, and "arisexylightboxlite" interferes with it. Default is slimbox, but you can change it from plugin settings.
Basic installation comes with 3 popups to chose from, but you can add more.

If you really want to use "arisexylightboxlite" you can make a popup and add it to Admiror Gallery :)
Help Admiror Gallery become even better,
give us a review on JED

nikstar81
Posts: 4
Joined: Wed May 23, 2012 7:52 am

Re: Double Gallery showing in J2.5

#5 Post by nikstar81 »

Thanks heaps Vasiljevski!
That worked a treat 8-)
I love this plugin!

I have never made a popup before, so wouldn't mind learning how to... So I just looked up the JED... Do I use something like Modalizer?
... You don't have to help me if you don't want - but it will be a bonus if you do ;)

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: Double Gallery showing in J2.5

#6 Post by Vasiljevski »

No, you don't actually have to make the whole popup, that is one of the great things about Admiror Gallery that is not used as much.

You just need to find some JS popup code and wrap it in a Admiror Gallery popup plugin.

The easiest way is to check how the "slimbox" is added to Admiror Gallery, and build on that.

There is a API description here in manuals section : http://www.admiror-design-studio.com/en ... extensions

Basically, every script uses some kind of method to hook on images, link, or something else on the page.
Depending on what is required for the script to run properly you need to add that in your code.
If we take slimbox as an example (index.php in slimbox folder), for it to work we need to include some files :

Code: Select all

// Load JavaScript from current popup folder
$this->loadJS($this->currPopupRoot.'js/slimbox2.js');

// Load CSS from current popup folder
$this->loadCSS($this->currPopupRoot.'css/slimbox2.css');
Admiror Gallery provides loadJS() and loadCSS() functions(API documentation lists all functions available) for adding JS files and CSS files to the document head.

Now, for slimbox to bind to an image, the image has to have specific "rel" tag, so we add it in the next line:

Code: Select all

// Set REL attribute needed for Popup engine
$this->popupEngine->rel = 'lightbox[AdmirorGallery'.$this->getGalleryID().']';


You can see that in slimbox folder we have all the files necessary for slimbox to run properly, this came with slimbox package.
preview.jpg and details.xml are used for some basic information about the popup. But this is only if you want to share your popup with the community and details.xml enables you to make installable packages and share your work.

If you need more help let me know.
Help Admiror Gallery become even better,
give us a review on JED

nikstar81
Posts: 4
Joined: Wed May 23, 2012 7:52 am

Re: Double Gallery showing in J2.5

#7 Post by nikstar81 »

Thankyou so much... You're a champ!
I'll give it a go- my fingers are crossed :)

Post Reply