Keyword

K2 kills facebook when using JomSocial (Solved)

  • frold
  • frold's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago - 12 years 1 month ago #102409 by frold
Hmm maybe its more a template issue?

I can see my menu is not working either when K2 is installed.

All the items: Forum, Afstemninger etc should open up when mouse over...

Like here:

File Attachment:


Edit: the menu works when you are on pages like: studmed.dk/kontakt-os and studmed.dk/afstemninger but not the front page....

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

  • frold
  • frold's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #102410 by frold
Please let me know when you have tested it cause at the moment my users using facebook as a login aint able to login...

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

  • frold
  • frold's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #102411 by frold
Okay,

Now I did spot it down to k2.js

When I remove the content in that file every thing works great.

Im not able to spot what specific in the file that course the problem, but when I delete the content in that file and uploads a empty k2.js and empty my cache every things works again: my menu, facebook login...

Any ideas what could be wrong in it?

This is the content of my k2.js

pastebin.com/ub3FRU4G

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

  • frold
  • frold's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #102412 by frold
Finally!!

I think I did solve it.

It seems like there is a problem when using a joomlart template.

When doing so and T3 optimize the js files.

And there is something that is messed up when T3 try to optimize k2.js

When I did add (the original) k2.js into the fields Optimize Exclude in my template control center every things work. Now the js filed is called like:


<script src="/components/com_k2/js/k2.js" type="text/javascript"></script>

instead of in a compiled file like:

<script src="/index.php?jat3action=gzip&amp;jat3type=js&amp;jat3file=t3-assets%2Fjs_58988e.js" type="text/javascript"></script>

File Attachment:

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

More
12 years 1 month ago #102413 by Lefteris
I am glad you solved it. Thanks for sharing this with the community.

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

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

  • Vincent Nonnenmacher
  • Vincent Nonnenmacher's Avatar
  • Offline
  • New Member
More
12 years 1 month ago #102414 by Vincent Nonnenmacher
Replied by Vincent Nonnenmacher on topic Re: K2 kills facebook login when using JomSocial
I don't think this compression and packing is the problem.

I got the same one and from a non T3 template (no framework).

I think it is because I removed all mootool scripts (including modal.js) and got the same
error.

Sound like there is still a dependency from K2 to moo tools, on this SqueezeBox that is all around the K2.js code.

The included hook (in my case components/com_ninja/html/behavior.php), give the same error as reported :

joomla25:38TypeError: 'undefined' is not a function (evaluating 'window.addEvent('domready', function() {

SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
})')

seems to come from an included plug-ins (ninja_board) that relies on the koowa framework in this file

components/com_ninja/html/behavior.php around lines 201 :

// Attach modal behavior to document
$document->addScriptDeclaration("
window.addEvent('domready', function() {

SqueezeBox.initialize(".$options.");

$$('".$selector."').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});");

Is there is a document way to remove front-end dependency on mootools ?

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


Powered by Kunena Forum