Română (România)English (United Kingdom)



 
If you use aiContactSafe, please post a rating and a review at the Joomla! Extensions Directory.

Form won't display - only three dots

Form won't display - only three dots

The form does display correctly on one of my pages: http://www.tecb2b.com/about.html   but all other pages shows three dots instead. Any suggestions?

Bill

Edited By: Alex
02-August-2010 09:41:58

Bill Jenkins
useravatar
Offline
2 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

For some reason the mootools library is not loaded on the pages the extension is not working.
You need to identify what is preventing it from loading and stop this behavior.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I have the same problem - just ... and no form
I have a Javascript error "Calendar not defined"
I tried turning off all modules but I still get the error on that page.
I tried to take out the code:
if ($user->get('guest') == 1) { 
$headerstuff = $this->getHeadData(); 
$headerstuff['scripts'] = array(); 
$this->setHeadData($headerstuff); }
from the index.php but this just caused a fatal error.
Any other ideas on how to identify the problem?

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I have just realised that if I change the template to one of the default Joomla templates, rather than my purchased template, the contact form does appear.

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Alex,
That was it.  I actually had mootools disabled in the rt_afterburner template that I'm using, so if aiContactSafe requires mootools it's a mystery as to why it was working on the one page.

I've enabled mootools now and aiContactSafe now works correctly with no other ill effects.

Thanks for your speedy and insightful reply.
Bill

Bill Jenkins
useravatar
Offline
2 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Gina wrote:


I tried turning off all modules but I still get the error on that page.
I tried to take out the code:
if ($user->get('guest') == 1) { 
$headerstuff = $this->getHeadData(); 
$headerstuff['scripts'] = array(); 
$this->setHeadData($headerstuff); }
from the index.php but this just caused a fatal error.

This means you didn't remove it correctly. Make sure you removed the "<?php" and "?>" that is in front and at the end of that code.

Bill Jenkins wrote:


I've enabled mootools now and aiContactSafe now works correctly with no other ill effects.

Happy to hear that. smile

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I've just used the form by adding a new menu item and chosen the type as aicontactsafe, rather than using the {aicontactsafeform pf=1} and the form is now appearing OK.
I'm very new to Joomla so I didn't know I could do it this other way.  Thanks for your help, and hope I haven't wasted your time. I don't know why the other way didn't work though.

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

If you can post a link to the page that was not working I can take a look. smile
It should work ( the extension is working fine ) in both ways if mootools was loading and the plugin aiContactSafeForm was installed and activated.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Here's the link: http://www.datapa.com/NewWebsite/index. … ;Itemid=73
(site is a work in progress! got menu issues)
I have realised that I do need to embed the form in an article as I need to add other things to the page, so if you could give me tips to get that working, that would be great.
Thanks

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I'm guessing that is a templatemonster.com template and you need to remove their code preventing mootools ( default javascript library oj Joomla ) from loading.
That is done modifying the index.php file and removing this lines:

Code:

<?php

$user =& JFactory::getUser();
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
?>

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I tried removing those lines, but it is still not working:
/**
*$user =& JFactory::getUser(); 
*if ($user->get('guest') == 1) { 
*$headerstuff = $this->getHeadData(); 
*$headerstuff['scripts'] = array(); 
*$this->setHeadData($headerstuff); } 
*/
and using {aicontactsafeform pf=1}  to call the form
Any other ideas?
Thanks

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Now the mootools library is loading but you have a javascript conflict with it.
I'm guessing it is generated because you're loading the top menu twice, since the jquery code contains "jQuery.noConflict();".
Try removing one of the menus.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

I've got rid of the 2nd menu, but form is still not appearing.
I have a javascript error:
$("aiContactSafe_form_1").setHTML is not a function
[Break on this error] $('aiContactSafe_form_1').setHTML('Please wait ...');

Any ideas?
Page link is: http://www.datapa.com/NewWebsite/index. … ;Itemid=75

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

You have a javscript conflict with mootools.
Your site is loading jquery twice ( jquery00.js and jquery.js ).
I'm guessing that if you modify your template so jquery will be load only once everything will work fine.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Thanks, you are a genius! It's now loading the form.

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Happy I could help you. smile

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Sorry, me again!
I had just commented out the jquery00.js file, but since doing this the slideshow on my home page stopped working. How can I deal with the 'jquery loading twice issue' differently to preserve the functionality of the script??

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Sorry, you need to contact the developer of that script to make it not conflict with mootools.
After the second call of jquery the noConflict function is called so maybe it will work if you let the first one load and comment out the second one.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: Form won't display - only three dots

Thanks for all your help. I'll get in touch with the template support.

Gina
useravatar
Offline
12 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1306
Total Polls:
0
Total Posts:
5894
Average Posts Per Hour:
1.0
User Info:
 
Total Users:
22096
Newest User:
cac2s
Members Online:
3
Guests Online:
98


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked