Keyword
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.

[SOLVED] SIG Pro conflict with Google maps plugin

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago - 15 years 8 months ago #22215 by strsljen
Hi!

I'm testing new SIG Pro and I found a conflict with google maps plugin:
extensions.joomla.org/extensions/photos-&-images/maps/1147/details

I installed both of them on my test site and when I use them separately on same article, I have no problems, but when I include them both, only SIG is displayed correctly, while google maps plugin is not visible.
This happens regardless of which one of them is put first in the article.

Example:
keeper-new.sharanet.org/index.php?option=com_content&view=article&id=237:sig-pro-test&catid=25:razno&Itemid=44

The article code is below:

Google maps:

{gmap width='400'|height='300'|lat='52.052312'|lon='4.447141'|zoom='3'| zoomType='Large'|zoomNew='0'|mapType='Satellite'| showMaptype='1'|overview='0'|text='sv DWO'|lang='en'}

SIG Pro:
{gallery}razno/studentski_dani:200:150:1:2{/gallery}




Any idea what might be a problem?

Mario.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #22216 by JoomlaWorks
Replied by JoomlaWorks on topic Re: SIG Pro conflict with Google maps plugin
Try changing the popup engine for SIG Pro - see which one does not conflict. ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago - 15 years 8 months ago #22217 by strsljen
Replied by strsljen on topic Re: SIG Pro conflict with Google maps plugin

Try changing the popup engine for SIG Pro - see which one does not conflict. ;)


Hi!

Here are the results: The ones powered by jQuery are the ones causing the conflict: SlimBox2, Pretty Photo, ColorBox, FancyBox.

There is no conflict if used others popup engines.

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago #22218 by strsljen
Replied by strsljen on topic Re: SIG Pro conflict with Google maps plugin
Soooo, what's the verdict? :)

It this a bug? When can we expect a fix to be released?

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago #22219 by strsljen
Replied by strsljen on topic Re: SIG Pro conflict with Google maps plugin
Hello!

It's me again.  :D

Any news on this subject? Is this a bug on sig pro side or google maps plugin side?

Regards,

Mario.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #22220 by JoomlaWorks
Replied by JoomlaWorks on topic Re: SIG Pro conflict with Google maps plugin
It's a javascript conflict. You can't do much aside using some non jQuery based popup engine. Simple I guess. :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago - 15 years 8 months ago #22221 by strsljen
Replied by strsljen on topic Re: SIG Pro conflict with Google maps plugin
Hi Fotis!

I did my homework and look what I found:
docs.jquery.com/Core/jQuery.noConflict
docs.jquery.com/Using_jQuery_with_Other_Libraries

I'm also in touch with the author of googlemaps plugin and he also pointed me to similar:
tech.reumer.net/google-maps/documentation-of-plugin-googlemap/checklist-placing-plugin-in-article.html
www.designvsdevelop.com/using-mootools-and-jquery-together-in-joomla/


I quote:
"Framework conflicts are a common problem people run into when using jQuery. While jQuery provides some tricks you can use to get around this, you may still run into issues when Joomla! generates MooTools effects. While writing the second edition of Learning Joomla! Extension Development, I decided to do a chapter on JavaScript and look into this problem a little bit more closely. It turns out you have to make sure MooTools loads before jQuery, then use one of the tricks detailed on jquery.com."


Now.. I added following line in jw_sigpro/popup_engines/jquery_prettyphoto/popup.php:
<script>jQuery.noConflict();</script>


The line is positioned in:
<script type="text/javascript" src="www.google.com/jsapi">
<script type="text/javascript">google.load("jquery", "1.3.2");</script>
<script>jQuery.noConflict();</script>
<script src="'.$popupPath.'/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<!--[if IE 6]>
<script type="text/javascript" src="'.$popupPath.'/js/DD_belatedPNG_0.0.7a-min.js"></script>
<script type="text/javascript">
        DD_belatedPNG.fix(\'.pp_left,.pp_right,a.pp_close,a.pp_arrow_next,a.pp_arrow_previous,.pp_content,.pp_middle\');
</script>
<![endif]-->


And now I can use jQuery pop-up engine along with googlemaps plugin.

Example:
keeper-new.sharanet.org/index.php?option=com_content&view=article&id=237:sig-pro-test&catid=25:razno&Itemid=44

Maybe this line should be added in next revision of Sig Pro for all jQuery pop-up engines?
In the mean time, I can provide a patch if needed.

Regards,

Mario.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #22222 by JoomlaWorks
We are aware of this issue and that is why we are ALREADY using jQuery based engines in no conflict mode (with the jQuery(..) wrapper call to be exact).

So it must be an issue related to the other plugin. ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 8 months ago - 15 years 8 months ago #22223 by strsljen

We are aware of this issue and that is why we are ALREADY using jQuery based engines in no conflict mode (with the jQuery(..) wrapper call to be exact).

So it must be an issue related to the other plugin. ;)


Hi Fotis!

I'm not very convinced in that, since SigPro stopped bugging GoogleMaps plugin only after I added the line I explained earlier.

Looks like jQuery has a documented issue with mootols (and not only with them) and they proposed the procedure how to fix it.

Regards,

Mario.

Please Log in or Create an account to join the conversation.

  • strsljen
  • strsljen's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 5 months ago #22224 by strsljen
Just wanted to note that current version of Sig PRo plugin has the same problem with google maps plugin and patching as indicated above is needed.

Is it possible this small change in code (1 line per jquery pop-up engine) to be added in standard package for future releases?

Regards,

Mario.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum