Topic-icon JFB Connect and MijoPolls Compatability Issue

Active Subscriptions:

None
I am trying to use JFBConnect with MijoPolls but unless I switch off the ajax loading in MijoPolls it will not allow MijoPolls to work. If I do not use JFB Connect there is no issue, it only causes a problem with JFBConnect published.

I have contacted MijoPolls but they say and I did laugh, "we do not support this" I am banging my head against a brick wall with them so I am hoping somebody here can help? I really want to use their poll module with the ajax load as it looks terrible it loading a separate page just for a pie chart. Alas if I use JFB Connect it gives an error or loads the xml of the results when somebody votes when using ajax loading as the method. There is obviously some conflict here but I am clueless to know what, what to look for or indeed fix it.

Hoping somebody here witht he skillset or knowledge can save the day?
The topic has been locked.
Support Specialist
10 years 6 months ago #37070 by alzander
There's a couple possibilities. First, on Wednesday, we're planning to release v5.1.2 of JFBConnect which should clear up a few Javascript conflicts that have happened in a few select extensions. We haven't heard of an issue with MijoPolls, but it's possible that release will fix things... let's hope.

Beyond that, can you let me know what page we can see the conflict on? That will help narrow down which combination of Javascript is causing the conflict.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #37074 by Andy Mills
Hi, thanks for the quick response.

If you visit arsenalsite.co.uk you will see on the lower part of this page a Featured Poll Module. If you cast your vote in this (don't need to be registered to vote as changed the setting to allow you to do so) you will see it does not load the results in the module which it will do if I unpublish JFBConnect.

Thanks,

Andy
The topic has been locked.
Support Specialist
10 years 6 months ago #37076 by alzander
Andy,
There's a Javascript error on that page that states:
Uncaught TypeError: Object [object global] has no method 'addEvent'
The 'addEvent' line is coming from:
/* <![CDATA[ */
window.addEvent('load', function()
    {
		$('poll_vote_1').addEvent('submit', function(e) {
				// Prevent the submit event
That's part of MijoPoll's code. The addEvent call that the error is coming from is happening because Mootools is not being loaded on your page. JFBConnect shouldn't be preventing Mootools from being loaded in any way, so I'm not sure why that's a conflict with JFBConnect.

Can you disable the JFBCSystem plugin (or whatever you do to make it work) and let me see what's happening?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #37082 by Andy Mills
Hi,

Strange I wrote a reply but must have forgotten to press submit. I have disabled everything now but for some reason it did it again. Perhaps you can see if it works for you now?

Any idea what i can do to solve this? I appreciate I might be asking too much if it isn't connected to your side but worth asking as the polls author has made it very clear, NO support.

Thanks again,
The topic has been locked.
Support Specialist
10 years 6 months ago #37083 by alzander
Check to see what might be disabling Mootools. There are plugins that are meant to 'optimize' your site, and may do that by removing Mootools. Some templates remove Mootools as well. There are usually options in either the plugins or templates to disable/enable the removal, but I really wouldn't know what it could be beyond that.

You may also want to go back to the Mijo people and tell them that it's not a conflict with JFBConnect (or anything else) and it seems that Mootools isn't being loaded. They may have a better answer for that direct question.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago - 10 years 6 months ago #37084 by Andy Mills
Thanks and my apologies for taking up so much of your time when it wasn't related to your product.

Review written at JED:

Not often you wish you could give more than 5 stars but this extension is worthy of 6!

The support I have received during pre-sales was excellent and post-sales it has stayed the same.

Recommend this company to anyone looking for the crème de la crème of extensions!

Last edit: 10 years 6 months ago by Andy Mills.
The topic has been locked.
Support Specialist
10 years 6 months ago #37085 by alzander
No problem for the help. It's what we do.

I really do hope you figure out what's going on, but if you can't make any progress, let me know. There's a few things we could help you check or let you know where to look if Mootools still won't load. I can't guarantee we'll get it going, but we'll try.. even if it's not directly related to JFBConnect.

Keep us posted, and best of luck to you,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #37138 by Andy Mills
I have after a lot of hard work finally managed to get the person behind the poll component to provide support however I am convinced they know full well there is this issue and also know how to solve it very quickly but..... they charge $50 to do so. I could of course be wrong but my gut instinct is they can solve the issue in a matter of a minute or two but refuse to provide support even for a paid component as they know they can get more from some.

Whilst I can pay this as I can't stand it not working as it should I do have a real issue giving even a cent to people like this so further to your previous post I was wondering if you have any contacts etc that might be able to help a joomla novice with this mootools not loading issue? If not I guess I will have to pay the nasty man :(

Thanks again!

Andy
The topic has been locked.
Support Specialist
10 years 6 months ago #37161 by alzander
Andy,
I'm sorry to hear your experience with other devs. Adding Mootools onto the page is very easy, and we'll gladly help how we can. There's 2 ways to do it, and please note that I know nothing about the other extension, so I can't give you exact things to do, but should be able to guide you well through the process.

If that Vote module on your home page is a MijoVote module (a module that came with the extension), you'll want to edit the following file:
/modules/mod_mijovote/mod_mijovote.php
Please note that I'm making up the names.. maybe it's mod_vote/mod_vote.php or mod_mijo/mod_mijo.php. You should be able to discern the name from the Module manager, hopefully.

Once you edit it, there'll be some copyright text at the top and then you should see something like:
defined('_JEXEC') or die ;
Directly under that line, add another line so it looks like:
defined('_JEXEC') or die ;
JHtml::_('behavior.framework');

If you can't find the right file there, you can do something similar in your template. This will load Mootools on all pages though, which isn't as optimal (but shouldn't be a problem). To do that, edit /templates/<YOUR_TEMPLATE>/index.php and then follow the same steps above looking for the JEXEC statement and adding the line below it.

If that still doesn't work, leave the change there (as long as the page doesn't break some other way) and let us know.. we'll gladly look again and see what else may be wrong.

Finally, again, please check again that you don't have any plugins or template settings that are enabled to forcefully disable Mootools.. as best you can at least ;)

Thanks,
Alex
The topic has been locked.