FreiChat related discussions
Javascript conflict with JomSocial

Hello,

For a while i have been looking around for an issue with JomSocial, the function where to crop profilepicture to a correct size thumbnail was not working due to an javascript conflict. Today when i disabled FreiChat everything started to work ok again.

I have tried to move FreiChat around to other modulepositions but with no luck, it still break the edit profilepicture function in JomSocial.

Any solution to this?

Thanks

Regards
Rune

Hello, For a while i have been looking around for an issue with JomSocial, the function where to crop profilepicture to a correct size thumbnail was not working due to an javascript conflict. Today when i disabled FreiChat everything started to work ok again. I have tried to move FreiChat around to other modulepositions but with no luck, it still break the edit profilepicture function in JomSocial. Any solution to this? Thanks Regards Rune

conversation continued on mail.

conversation continued on mail.
Necessity is the mother of all inventions!

I´m having the exact same problem. Have you found out a solution?

I´m having the exact same problem. Have you found out a solution?

Yes, i got the below info from admin, and it worked ok on my site.. But now i have installed JomSocial version 2.6 RC 1 and i had to reset file again. Anyway here is what worked on my site with version 2.4.2

Go to main.php
And comment the line
require_once 'jquery/js/jquery.1.7.1.js';

i.e replace it by
//require_once 'jquery/js/jquery.1.7.1.js';

Enable freichat and reload the page.
This may break FreiChatX .
Tell me what changes you see. If it does not change anything
Just revert back to original.

Yes, i got the below info from admin, and it worked ok on my site.. But now i have installed JomSocial version 2.6 RC 1 and i had to reset file again. Anyway here is what worked on my site with version 2.4.2 Go to main.php And comment the line require_once 'jquery/js/jquery.1.7.1.js'; i.e replace it by //require_once 'jquery/js/jquery.1.7.1.js'; Enable freichat and reload the page. This may break FreiChatX . Tell me what changes you see. If it does not change anything Just revert back to original.

By the "main.php" do you mean the index.php located in the root?
I´ve tried to find a line that resembles: require_once 'jquery/js/jquery.1.7.1.js';
but without luck.
Here is what my index.php looks like:


<?php /**
* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// Set flag that this is a parent file.
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);

if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}

if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE.'/includes/defines.php';
}

require_once JPATH_BASE.'/includes/framework.php';

// Mark afterLoad in the profiler.
JDEBUG ? $_PROFILER->mark('afterLoad') : null;

// Instantiate the application.
$app = JFactory::getApplication('site');

// Initialise the application.
$app->initialise();

// Mark afterIntialise in the profiler.
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;

// Route the application.
$app->route();

// Mark afterRoute in the profiler.
JDEBUG ? $_PROFILER->mark('afterRoute') : null;

// Dispatch the application.
$app->dispatch();

// Mark afterDispatch in the profiler.
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;

// Render the application.
$app->render();

// Mark afterRender in the profiler.
JDEBUG ? $_PROFILER->mark('afterRender') : null;

// Return the response.
echo $app;

By the &quot;main.php&quot; do you mean the index.php located in the root? I´ve tried to find a line that resembles: require_once &#039;jquery/js/jquery.1.7.1.js&#039;; but without luck. Here is what my index.php looks like: &amp;lt;?php /** * @package Joomla.Site * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Set flag that this is a parent file. define(&#039;_JEXEC&#039;, 1); define(&#039;DS&#039;, DIRECTORY_SEPARATOR); if (file_exists(dirname(__FILE__) . &#039;/defines.php&#039;)) { include_once dirname(__FILE__) . &#039;/defines.php&#039;; } if (!defined(&#039;_JDEFINES&#039;)) { define(&#039;JPATH_BASE&#039;, dirname(__FILE__)); require_once JPATH_BASE.&#039;/includes/defines.php&#039;; } require_once JPATH_BASE.&#039;/includes/framework.php&#039;; // Mark afterLoad in the profiler. JDEBUG ? $_PROFILER-&amp;gt;mark(&#039;afterLoad&#039;) : null; // Instantiate the application. $app = JFactory::getApplication(&#039;site&#039;); // Initialise the application. $app-&amp;gt;initialise(); // Mark afterIntialise in the profiler. JDEBUG ? $_PROFILER-&amp;gt;mark(&#039;afterInitialise&#039;) : null; // Route the application. $app-&amp;gt;route(); // Mark afterRoute in the profiler. JDEBUG ? $_PROFILER-&amp;gt;mark(&#039;afterRoute&#039;) : null; // Dispatch the application. $app-&amp;gt;dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $_PROFILER-&amp;gt;mark(&#039;afterDispatch&#039;) : null; // Render the application. $app-&amp;gt;render(); // Mark afterRender in the profiler. JDEBUG ? $_PROFILER-&amp;gt;mark(&#039;afterRender&#039;) : null; // Return the response. echo $app;

You can find main.php here: freichat/client/main.php
And the command to comment is located almost down to the bottom, in line 143

You can find main.php here: freichat/client/main.php And the command to comment is located almost down to the bottom, in line 143
172
6
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft