Gunter

BT Quick Contact not working in joomla 3.3.0.

8 posts in this topic

Hi,

I cannot create a contact form using joomla 3.3.0.

It won't let me create any fileds under manage fields tab

The version which i use is: BT Quick Contact Version 2.1.2

Is there a solution or work around for this problem?

Regards

Share this post


Link to post
Share on other sites

HI.

Please open file /mod_bt_quickcontact/admin/formfield/assets.php

Find this line

if (!$checkJqueryLoaded)

and change to

 if (!$checkJqueryLoaded && !version_compare('JVERSION', '3.3', 'ge'))

Cheers

Share this post


Link to post
Share on other sites

Hi, thanks for the quick response but it did not work for me.

This is what i have

//Add js

if (!$checkJqueryLoaded)

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/assets/js/jquery.min.js');

if(!version_compare(JVERSION, '3.0', 'ge')){

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/chosen.jquery.min.js');

$document->addStyleSheet(JURI::root() . 'modules/mod_btquickcontact/admin/css/chosen.css');

}

$document->addScript(JURI::root() . $this->element['path'] . 'js/bt.js');

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/btquickcontact.js');

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/btbase64.min.js');

//Add css

$document->addStyleSheet(JURI::root() . "modules/mod_btquickcontact/admin/css/btquickcontact.css");

$document->addStyleSheet(JURI::root() . $this->element['path'] . 'css/bt.css');

return null;

I changed this to

//Add js

//if (!$checkJqueryLoaded)

if (!$checkJqueryLoaded && !version_compare('JVERSION', '3.3', 'ge'))

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/assets/js/jquery.min.js');

if(!version_compare(JVERSION, '3.0', 'ge')){

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/chosen.jquery.min.js');

$document->addStyleSheet(JURI::root() . 'modules/mod_btquickcontact/admin/css/chosen.css');

}

$document->addScript(JURI::root() . $this->element['path'] . 'js/bt.js');

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/btquickcontact.js');

$document->addScript(JURI::root() . 'modules/mod_btquickcontact/admin/js/btbase64.min.js');

//Add css

$document->addStyleSheet(JURI::root() . "modules/mod_btquickcontact/admin/css/btquickcontact.css");

$document->addStyleSheet(JURI::root() . $this->element['path'] . 'css/bt.css');

return null;

Any other sugestions?

Share this post


Link to post
Share on other sites

So the problem is not like my thought.

Please use element inspect tool of browser (chrome or firefox) by clicking F12 -> open console tab -> refresh the page, you can see javascript error -> capture it and give it to me with a html file of you page source.

I want to see how jquery is loaded on your site.

Thanks

Share this post


Link to post
Share on other sites

OK, i got this error:

ReferenceError: Sortables is not defined

this.sortables=new Sortables(this.options.container,{

This code comes from btquickcontact.js (regel 12)

Share this post


Link to post
Share on other sites

Hi Gunter.

Please open file /mod_btquickcontact/admin/formfields/btfields/php

Find this line

JHTML::_('behavior.framework');

Change it to

JHTML::_('behavior.framework', true);

Cheers

Share this post


Link to post
Share on other sites