Elxis CMS Forum

Support => General => Topic started by: xmanhattan on December 11, 2009, 18:10:25

Title: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 11, 2009, 18:10:25
Hello,

I just tried easygallery and found that it is a very nice and simple way for anyone to place pictures on their web site.

I noticed that when I click on a picture that it is opening up very large and I think that it must be using my screen size rather than my browser window size. (Yes, I bought a 22" lcd.) 
The next and prev and close do not show unless I scroll or open my browser window to 100% but I believe that this can be changed by modifying css.

Is there a way that I can modify this so that pictures open either smaller or according to browser size?

Thanks again for a terrific extension.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 11, 2009, 18:43:02

Another question is whether this extension will work in Elxis 2008 as it is not mentioned in the wiki.

I found a solution for the picture sizing problem.  Resizing original picture to 800px works.
Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 11, 2009, 20:05:55
Yes, easy gallery works on Elxis 2008.x
http://www.elxis-downloads.com/com_downloads/image-galleries/222.html (http://www.elxis-downloads.com/com_downloads/image-galleries/222.html)
Quote
Compatibility: Elxis 2008.0+, PHP5.x
Title: Re: Can Easy Gallery be slightly modified?
Post by: rentasite on December 12, 2009, 00:06:49

Can someone plz give a link on a site that has installed Easy Gallery?

Haven't yet installed it, and i would like to see a working demo  :)
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 12, 2009, 12:05:46
Hmmm, I just loaded it on the internet and for some reason it doesn't work.

I went to the wiki and saw this
Quote
Don't use this Bot on pages where you use other Javascript libraries such as jQuery as you will face javascript conflicts and Easy Gallery wont work.
but the template that I am using is BlueBell-hc and it loads
Code: [Select]
<script type="text/javascript" src="<?php echo $mainframe->getCfg(&#39;live_site&#39;); ?>/templates/bluebell-hc/lightview/js/lightview.js"></script>
The thumbnails are showing but the gallery is not working although the pictures are opening in a separate html page.

http://www.do-my-site.net/discover-elxis/other-elxis-extension-demonstrations/easy-gallery-show.html (http://www.do-my-site.net/discover-elxis/other-elxis-extension-demonstrations/easy-gallery-show.html)

Title: Re: Can Easy Gallery be slightly modified?
Post by: ROUBOS on December 13, 2009, 02:58:10
don't like how easy gallery opens up the pictures. The open up in a new window from what I see. It's a bit like IOS gallery.
Have a look at this thread : https://forum.elxis.org/index.php?topic=3890.0

I was given a nice gallery bot. Works perfect. Link should be there on the replies. Download it and install it. You will like it.
Easy to use, and images show inside the browser . Very cool ;)
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 13, 2009, 10:52:02
That's the same gallery.  This post is about a problem.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 14, 2009, 11:49:18
Still does not work.  I have set this
Code: [Select]
{gallery &title=A display of our photos}images/dms-easy-gallery/{/gallery} and file names use latin letters, numbers with either - or _ and with .jpg and .JPG endings.  Also verified directory and file permissions.

Very strange as it works on my local test system.

Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 14, 2009, 19:21:09
Remove the ampersand in front of "title".
Change from this: &title=...
to this: title=...

If the any problem persists please describe me which is the exact problem.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 15, 2009, 10:45:51
Datahell,

Sorry to say that even after the change it still continues to open a new html page with the image.

I uninstalled the bot and then reinstalled but still no change.

Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 15, 2009, 11:31:27
Sorry to say that even after the change it still continues to open a new html page with the image.

Now you made the problem clear, you should have mentioned that from the very beginning.
So, Easy Gallery works fine but opens the images in a new window.

This is not an Easy Gallery issue. This can happen only under 2 cases:

1. You have the javascript disabled in your browser. Solution: Enable it.

2. There is a javascript conflict. Easy Gallery uses mootools, if on the same page you use an other javascript library such as jquery or prototype then there will be conflicts. You can not load 2 different javascript libraries on the same page. Solution: Un-publish all the other modules and remove javascript from your site until you find which is the one that conflicts wish easy gallery.


Note: To solve the js conflicts issue I have been decided some months ago to use only mootools in the extensions I built. Mootools has less extensions base and it is harder to learn than jquery but it is much more advanced and powerful than jquery.
Title: Re: Can Easy Gallery be slightly modified?
Post by: ks-net on December 15, 2009, 14:22:05
as i have said(suggested)  the other day...
we should add one of this libraries in the default distribution of elxis with an option to load or not from the administrator area... i know it can be done with tpl xml parameters...
but in this way we will produce more conflicts in the future!

the majority of big cms load by default on of those libraries dp=>jguery  joomla => mootools etc..

i think that we can do this => a check box in admin to load or not a complete(core) compressed version of the  default library

if someone want to bypass  can disable it in admin and load other library in his tpl xml parameters or directly in the tpl

what I am saying is   we all must use the same library... we can force this if we add it in the default distribution...
we can say to people that all comps modules and tpls must use this library in order to be full compatible with less conflicts

elxis will load the core and any extension will add the extra scripts..

Quote
To solve the js conflicts issue I have been decided some months ago to use only mootools in the extensions I built
why not to expand this?  i think it is about time to think it more seriously .. before developers start(have started) adding those libraries in every extension they build and things become a mess?





 
 
Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 15, 2009, 15:07:56
Elxis has a javascript library already included and this is prototype (at the time we add it there were no mootools and jquery). Prototype in Elxis is used only by the Itemid preload feature. To access prototype: includes/js/prototype.js

Adding motools or jquery in elxis is easy but has problems. Why?

1. Which version to add? Usually third party js scripts need a specific version, not any version. There is a way to load remotely (f.e. via Google) always the latest one but this is not a solution as some scripts need a previous version.

2. Which extensions to load? As you may know these libraries have a core part that can be expanded via extensions (text effects, etc). Adding everything will make the library very heavy.

Consering the above I believe that it is much better for someone to add his desired extension in his template and this solution has less problems than the included into elxis one.

An interesting site for those want to learn some things for mootools/jquery: http://jqueryvsmootools.com/ (http://jqueryvsmootools.com/)
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 15, 2009, 18:43:51
Well, I had another look at the modules that I am using and I noticed that Ultimate Content Display uses jquery but I don't see it being used anywhere else.

My browser javascript is always on and I have not loaded anything other than Elxis modules, bots, or components.

I also have IOSgallery loaded and working.  Could that cause the conflict?



Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 15, 2009, 19:20:48
I am sorry but you just answered to your self...

You use UCD that uses jquery and you also use Easy Gallery that uses Mootools and you also use IOS Gallery that uses jquery or prototype (depending on the IOS Gallery gallerific/lightview select option).

You can use only one of them on a specific page. So, dont use Easy Gallery on pages that jquery/prototype is also used.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 16, 2009, 15:10:47
Sorry again but I have removed anything that might interfere with those pages and it still does not work.
I have been busy too trying to learn some new techniques with ajax, json, jquery and I can understand how much of a headache all of these new technologies can be while trying to get them to all work together.

I installed it to have a working demo there, I will unpublish if it cannot work until a later date if necessary.
Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 16, 2009, 19:48:14
If you give us a URL we could help you solve this issue.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 16, 2009, 21:08:47
Hmmm, I thought that I did.

http://www.do-my-site.net/discover-elxis/other-elxis-extension-demonstrations/easy-gallery-show.html (http://www.do-my-site.net/discover-elxis/other-elxis-extension-demonstrations/easy-gallery-show.html)

Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 16, 2009, 21:39:48
The problem is that you load prototype, scriptaculus and lightview from Google APIs together with mootools for Easy Gallery.
Check your template's index.php file.
Title: Re: Can Easy Gallery be slightly modified?
Post by: Ivan Trebješanin on December 16, 2009, 22:14:15
If you use jQuery you could use "no-conflict" option, but mootools can never work with prototype on the same page.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 17, 2009, 09:42:56
Okay, not a problem.  I will unpublish and uninstall for now.

I will use it on a client website that does not use jquery.

Thank you for the help.
Title: Re: Can Easy Gallery be slightly modified?
Post by: xmanhattan on December 17, 2009, 10:34:14
Okay, I have installed it here and it is working well.

I would like to ask if there is a way to change the titles: next, prev., close so that it displays them in Greek, when in that language?

http://www.enosismyrneon.gr/elxis/ekdoseis-tes-enoses/trekhouses-ekdoseis/aitese-gia-to-mouseio-ton-ellenon-tes-asias-kai-tes-anatoles.html (http://www.enosismyrneon.gr/elxis/ekdoseis-tes-enoses/trekhouses-ekdoseis/aitese-gia-to-mouseio-ton-ellenon-tes-asias-kai-tes-anatoles.html)

Title: Re: Can Easy Gallery be slightly modified?
Post by: datahell on December 17, 2009, 15:24:57
Change the images!