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



 
The support for all extensions was moved to jVitals.com.

Please post there the new questions or suggestions you have with them.

This forum was set to be read-only so the information in it is still available.

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

You can now also join aiContactSafe Fan Club on Joomla! People
http://people.joomla.org/groups/viewgroup/813-aiContactSafe+Fan+Club.html

How to hide JavaScript code inserted by aiSafecontact module?

How to hide JavaScript code inserted by aiSafecontact module?

Greetings Alex!

First of all, thank you for this wonderful piece of software.

I've been able to customize it to 90% of my liking. One thing that bothers me most is the massive JavaScript code inserted into the page's HTML by aicontactsafe module (see example below).

Is there any way to hide it?

Thank you very much!

Code:

  <script type="text/javascript">

...
  </script>

Edited By: Alex Dobrin
03-September-2010 21:01:59
Tim
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: How to hide JavaScript code inserted by aiSafecontact module?

You can try to put it in an external file, but you will not have the possibility to use any of Joomla's feature in it ( like translation of the text or dynamic URLs ).
You can find the javascript code in this file : components\com_aicontactsafe\includes\js\aicontactsafe.js.php .

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

Re: How to hide JavaScript code inserted by aiSafecontact module?

Alex, I appreciate your prompt response.

What would be the best way to accomplish that?

Many thanks!

Tim
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: How to hide JavaScript code inserted by aiSafecontact module?

Basically you need to remove all the php code in that file, replace the php code with appropriate values and generate a new .js file.
Then modify that file to include the new .js file instead of that script.
You need some php and javascript knowledge to do this.

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

Re: How to hide JavaScript code inserted by aiSafecontact module?

Alex,

What if I use aiContactSafe plugin inserted into a custom HTML module instead of aiContactSafe module, will that code still be there?

Thanks a lot for your prompt responses.

Tim
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: How to hide JavaScript code inserted by aiSafecontact module?

That code is required for the contact form to work.
Without it a lot of the features of the extension will not function.

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

Board Info

Board Stats:
 
Total Topics:
2281
Total Polls:
0
Total Posts:
10380
Dormant:
User Info:
 
Total Users:
60329
Newest User:
wheeteryday
Members Online:
1
Guests Online:
90

Online: 
memoryshot

Forum Legend:

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