- Posts: 3
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Made 3 albums but each album shows everything??
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Made 3 albums but each album shows everything??
- DaRKNeSS666NL
- Topic Author
- Offline
- New Member
Less
More
15 years 7 months ago #23221
by DaRKNeSS666NL
Made 3 albums but each album shows everything?? was created by DaRKNeSS666NL
Okee my problem
I have made on my Joomla site a page with 3 custom joomla modules.
In each module I want to load a different album.
So I have set up
{gallery}gallerij1{/gallery} module1
{gallery}gallerij2{/gallery} module2
{gallery}gallerij3{/gallery} module3
Of course I have created 3 different dir. gallerij1, gallerij2 and gallerij3 in the stories dir.
I can now see the 3 gallery's on the page but they al load all the images from the 3 directories.
I have tried also the {gallery}gallerij/gallerij1{/gallery} so with 3 subdir.
But again all the images are getting loaded.
Isn't it possible to load 3 different albums on the same page??
I guess it is possible can somebody tell me how to do it??
TIA
DaRKNeSS
I have made on my Joomla site a page with 3 custom joomla modules.
In each module I want to load a different album.
So I have set up
{gallery}gallerij1{/gallery} module1
{gallery}gallerij2{/gallery} module2
{gallery}gallerij3{/gallery} module3
Of course I have created 3 different dir. gallerij1, gallerij2 and gallerij3 in the stories dir.
I can now see the 3 gallery's on the page but they al load all the images from the 3 directories.
I have tried also the {gallery}gallerij/gallerij1{/gallery} so with 3 subdir.
But again all the images are getting loaded.
Isn't it possible to load 3 different albums on the same page??
I guess it is possible can somebody tell me how to do it??
TIA
DaRKNeSS
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
- Offline
- Platinum Member
Less
More
- Posts: 1188
15 years 7 months ago #23222
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks Support Team on topic Re: Made 3 albums but each album shows everything??
Hi there!
Yes, you can load more than one gallery in the same page.
It's really strange that in your page you can't... :-\
Cold you please post a direct link to the gallery?
I would like to check the source code.
Thank you! :)
Yes, you can load more than one gallery in the same page.
It's really strange that in your page you can't... :-\
Cold you please post a direct link to the gallery?
I would like to check the source code.
Thank you! :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- DaRKNeSS666NL
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
15 years 7 months ago #23223
by DaRKNeSS666NL
Replied by DaRKNeSS666NL on topic Re: Made 3 albums but each album shows everything??
Here is the direct link
testsite-dcs.no-ip.org/index.php?option=com_content&view=article&id=4&Itemid=2
At forehand thanks for your help.
testsite-dcs.no-ip.org/index.php?option=com_content&view=article&id=4&Itemid=2
At forehand thanks for your help.
Please Log in or Create an account to join the conversation.
- cyberworks
- Offline
- New Member
Less
More
- Posts: 4
15 years 7 months ago - 15 years 7 months ago #23224
by cyberworks
Replied by cyberworks on topic Re: Made 3 albums but each album shows everything??
I can confirm that as of 28May09, this bug is still there with version2 (just downloaded off the PDS)...
I guess this is because in the popup.php (i am using multibox) the box is told to grab everything based on class...However all links of all galleries are of the same class...
box = new MultiBox(\'sig-link\');
I guess this is because in the popup.php (i am using multibox) the box is told to grab everything based on class...However all links of all galleries are of the same class...
box = new MultiBox(\'sig-link\');
Please Log in or Create an account to join the conversation.
- cyberworks
- Offline
- New Member
Less
More
- Posts: 4
15 years 7 months ago #23225
by cyberworks
Replied by cyberworks on topic Re: Made 3 albums but each album shows everything??
My solution for the issue. Please note that i am using ImageGalleryProv2 with Multibox as my engine...The solution should differ for other engines but hopefully the informatio i offer could streamline the joomlaworks.net team towards a solution that applies to all engines (although i dont know with which specific ones this issue is present).
Anyway to cut to the chase; remember i am using the Multibox....
Modification 1 of 2
Changes in $SERVER_ROOT\plugins\content\jw_sigpro\popup_engines\mootools_multibox\popup.php
In this file we will change the javascript code. Currently the code creates only one Multibox object. We will need to create a separate Multibox object for each gallery that is displayed on the page.
Find the code around Line 20
and replace with
Modification 2 of 2
Edit you SERVER_PATH\plugins\content\jw_sigpro.php
Somewhere around line 165 make the code look like this
Notice that i have only added 1 line of code...
//cyberworks - mod 2of2 - start
$extraClass = ' sig'.$galleryID;
//cyberworks - mod 2of2 - end
After this is done you should now be able to load as many galleries as possible on the same page....Each gallery will keep its hands off the images of the other galleries..
Hope this helps...
Anyway to cut to the chase; remember i am using the Multibox....
Modification 1 of 2
Changes in $SERVER_ROOT\plugins\content\jw_sigpro\popup_engines\mootools_multibox\popup.php
In this file we will change the javascript code. Currently the code creates only one Multibox object. We will need to create a separate Multibox object for each gallery that is displayed on the page.
Find the code around Line 20
var box = {};
window.addEvent(\'domready\', function(){
box = new MultiBox(\'sig-link\')
});
and replace with
var manyboxes = new Array();
var galleries = new Array();
window.addEvent(\'domready\', function(){
// grab collections of ul html objects whose class starts with sig-container
galleries.extend($$(\'ul[class^=sig-container]\'));
// with each element in the array (it represents the actual html element)
galleries.each(function(item,index) {
// obtain the gallery id as it has been generated
// it is something like sig24583567
var tmpClassRef = new String(galleries[index].getProperty(\'id\'));
// and use this gallery id to select all elements that are of this class
// basically without the next mod no such elements would exist...see below
// create a new Multibox and store it in an array
manyboxes.include(new MultiBox(tmpClassRef.valueOf()));
}.bind(galleries));
});
/*
var box = {};
window.addEvent(\'domready\', function(){
box = new MultiBox(\'sig-link\')
});
*/
Modification 2 of 2
Edit you SERVER_PATH\plugins\content\jw_sigpro.php
Somewhere around line 165 make the code look like this
// Gallery specific
$srcimgfolder = $galleries_rootfolder.'/'.$gal_folder.'/';
$galleryID = substr(md5($key.$srcimgfolder),1,10);
//cyberworks - mod 2of2 - start
$extraClass = ' sig'.$galleryID;
//cyberworks - mod 2of2 - end
$html_template = '
<li class="sig-block"{THUMB CLASS}>
<span class="sig-link-wrapper">
<span class="sig-link-innerwrapper">
Notice that i have only added 1 line of code...
//cyberworks - mod 2of2 - start
$extraClass = ' sig'.$galleryID;
//cyberworks - mod 2of2 - end
After this is done you should now be able to load as many galleries as possible on the same page....Each gallery will keep its hands off the images of the other galleries..
Hope this helps...
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Made 3 albums but each album shows everything??