- fish4redAsked on May 02, 2011 at 10:25 AM
I have been using joomla 1.5 for my clients for a while and Jot form always intergrated perfectly with that. However Joomla 1.6 is not liking the Jotform embed options. I tried the iframe and also standard HTML and it's not working.
Any ideas?Page URL:
- DanielGriffinAnswered on May 02, 2011 at 11:14 AM
Its possible that joomla is preventing you from adding scripts to your content. Have you seen the joomla page in the user guide:
If you haven't already tried, you could also add your form using an iframe by doing the following:
1. Open your form in JotForm
2. Click on 'Setup & Embed
3. Choose 'Embed Form'
4. From the embed options choose 'iFrame'
5. Copy the iframe code and insert into your joomla page.
Hope this helps, but if you still have problems please get back to us.
- fish4redAnswered on May 02, 2011 at 01:56 PM
Thanks for responding.
I have tried the Iframe as well. Joomla 1.6 will not allow the insert =
of any of the code other then the full HTML code but it then displays =
errors because of the script tag. I have tried different content =
editors and even disabled them all, still no luck.
When I add the code and hit \"save\" I notice joomla is taking the code =
away completely and then it things the content item is blank....
- DanielGriffinAnswered on May 02, 2011 at 02:20 PM
Ok it sounds like TinyMCE (the content editor tool) is stripping out anything sensitive.
I found the following solution for a similar problem with Joomla 1.5 online. It is from this thread on the Joomla forum
There are some other solutions there as well but I think this one should be common to 1.5 and 1.6... but I don't have access to a 1.6 Joomla instance so can't test it to be sure.
1. Create a new user and set the User Editor to "Editor - No Editor"
2. Log in as this new user (ie no longer using tinymce to post nor edit articles), create a new article and paste the iframe into it.
Let me know if this helps,
- DanielGriffinAnswered on May 02, 2011 at 02:24 PM
This post by Jen4Web in the same thread looks promising
"In Joomla, iframes are called wrappers.
There's one in the menu manager, which is designed for an iframe to take up a whole page.
In the module manager, there's a wrapper module. Set up the module with your iframe settings, assign it a module position (I recommend using a position not in use on the site elsewhere), and assign the module to your content item. I usually use a position like "inset" but you can call it whatever you want.
Now in your content item, add this piece of code:
where "inset" is the name of the module position.
Save the content and take a peek.
The piece of code above is based on a plugin that comes with Joomla called Content - Load Module. You can find it in the plugin manager. There is a setting there for changing the style. By default your module will be wrapped in a table. You may want to get in there and change it to wrapped by a div or no wrapper.
- fourstar4Answered on May 06, 2011 at 12:25 PM
I found by changing the notification to a text instead of HTML email I was able to get it through a Joomla 1.6 site
- DanielGriffinAnswered on May 06, 2011 at 04:45 PM
Thanks for the information fourstar4, but fish4red's problem seems to be actually displaying the form in the first place.
- senetAnswered on June 10, 2011 at 08:20 AM
Hello, thank you for this information.
However, I can not change the shape of the form in my page.
I followed your recommendations (loadmodule), but nothing to do ...
Do you have any other solutions so that the questionnaire does not appear in a frame?
In advance thank you
To see my form
(site under construction)
- JotForm SupportliyamAnswered on June 11, 2011 at 04:23 AM
So far we're still figuring out how to make this work. I have checked Joomla 1.6 and found out that aside from the TinyMCE issue, it has something to do with the content management system itself that it automatically deletes scripts from the content once you save it.
I saw this issue after I did not use any editor and checked what happens when I save an article, and what happened was that it deleted the script tags and left what's in between.
We will keep you posted once we have an answer.
- JotForm SupportliyamAnswered on June 11, 2011 at 05:02 AM
Hello again senet,
So far I found out that Joomla 1.6.3 filters out script tags.
1. Open the file libraries\joomla\filter\filterinput.php
2. Go to line 59 of the file, or find simply find this part of the code:
var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml');
To explain, this part of the code tells that these are the tags that are going to be removed if you ever try to make a submission.
3. Delete: 'script',. So it will become like this:
var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'style', 'title', 'xml');
4. Save the file.
To change your editor:
1. Go to Global Configuration
2. Under site settings: Default editor "Editor - None".
If you need further clarification regarding this matter, please let us know. We'd be happy to assist.
- senetAnswered on June 15, 2011 at 05:07 AM
Thanks for your answer.
Your solution is perfect !!
Just a precision : On my "Global Configuration" I don't have "Editor-None" but I have : "CodeMirror", "Non WYSIWYG" and "Tiny MCE" and I choose "Non WYSIWYG"
Thanks a lot
- JotForm SupportliyamAnswered on June 15, 2011 at 05:21 AM
Good to know the solution works for you.
If we ever get to find other means to make things better for joomla users, we'll let everyone know.
Thanks and warm regards,
- Brian TeemanAnswered on June 24, 2011 at 07:46 PM
Please do NOT follow this advice and edit the core files of Joomla. Not only will kittens die when you edit the core files but you will lose the changes when you update Joomla to the next version or for security updates.
you need to whitelist <script> in the interface provided not hack the core files
- Brian TeemanAnswered on June 24, 2011 at 07:49 PM
Oops I hit submit too early
- JotForm SupportliyamAnswered on June 25, 2011 at 01:26 AM
Thank you for pointing this out Brian. I was looking for this post since 3 days ago to update this one. (I did say it's not recommended and it was only due to the matter that I could not find where to fix the filtering issues via administration that prompted me to re-code the core.)
So to change the settings, here's the new update:
For Joomla 1.6 users, to be able to insert your forms in articles, you need to do the following:
1. Login to the administration panel
2. Click Article Manager
3.Click Options on the upper-right part of the page
3. Go to Text Filters tab, set the filter type (change Black List to White List and add script under filter tags, or you can use No Filtering). And then Save your settings
Let us know if you are still experiencing issues regarding this.
- basketbaalAnswered on October 14, 2011 at 02:50 AM
But Am Sending source html code and saved. after nothing script code. am understand problem.
- JotForm SupportliyamAnswered on October 14, 2011 at 03:13 AM
Can you please provide us more details about your problem? If you can give us the URL to your form page that has the error, it would be great.
Also, can you tell us that you have done the instructions that I have made?
- koydenaliyorummAnswered on October 14, 2011 at 05:13 AM
Liyam look please.
- JotForm SupportidarktechAnswered on October 14, 2011 at 06:43 AM
I haven't tested this but most of the users says it is working, so I am pretty sure it would work on your side.
If this doesn't help, let us know so we can assist you further. Thank you so much.
- koydenaliyorummAnswered on October 16, 2011 at 07:39 AM*I solved the problem thank you*... I love jotform :) see you.