Monday, November 14, 2011

How to add Javascript, PHP, Iframe, HTML or even any kind of Code in Joomla 1.7 in Articles & Custom Module?

How to add Javascript, PHP, Iframe, HTML or even any kind of Code in Joomla 1.7 in Articles & Custom Module?

You are unable to insert PHP, JavaScript, PHP, HTML code in Joomla 1.6 and 1.7 Articles and Custom Modules. The code gets stripped upon saving in the TinyMCE WYSIWYG Editor. 
There May be Following Problems with your Joomla Settings. Please Check everything instructions I am providing here.

Quick Method :

The quickest and easiest method to including code in content is to have create a spare user account set up without any editor, and include that user in a group for which there are no blacklisted tags.
You set blacklist/whitelist tags in : 

Article Manager --> Options --> Set Filter Groups to No Filtering for the access level of your spare user. (Best to use a Super User account for this if you can.)

Now Follow Bellow Instructions If You Like to Ennable or disable you TinyMCE Editor On/Off for Scripts :
1. Go to Plugin manager
2. Select TinyMCE Editorthe same for TinyMCE settings in the Plug-in Manager:
Cleanup code on load: Off
Clean code on Save: Never

Delete any code from Prohibited Elements or Optionally add Dumy Data ex : cms

Add Any More scripts which you want to White list in Extended Valid Elements

Now go to Article Manager and  follow instructions given bellow:
1. Article Manager > Article Manager Options
2. Click on Text filtering Tab
Read Before Altering anything : These are the text filters that will be applied to articles submitted by users in the selected groups. These filtering options give more control over the HTML your content providers submit. You can be as strict or as liberal as you require to suit your site needs. The filtering is opt-in and the default settings provide good protection against markup commonly associated with Web site attacks.
3. Go to Super User Drop Down Option : Select No Filtering.

You have done all thing to insert any kind of code within your article and modules. Please note that Do not provide above authorizations to Registered user group they can also insert any kind of code within your article. It can be virus code, add codes. So keep above authorizations to Super user only.

Enjoy Easiest Advanced CMS Website using Joomla 1.7. If any problem just post your comments, i will reply with appropriate Solutions.

32 comments:

  1. Good job man, It saves my lots of time.

    ReplyDelete
    Replies
    1. Thank You so Much Vipin for Comment !
      I would like to suggest you to visit my new Website/Blog where you can find more stuffs for Internet marketing and Web Development Articles. http://www.chandanmehta.com

      Delete
  2. Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!

    nano products

    ReplyDelete
  3. Face To Face java SE Java EE Training Courses Materials. Java Training in Chennai Java SE & Java EE Certification Courses Training Program. Online Java Training Online Java Training India Java Training Institutes in Chennai Online Java Training India Java J2EE Training Institutes in Chennai

    ReplyDelete
  4. Nice post. Glad to found your blog. Thanks for sharing.

    web design course in chennai

    ReplyDelete
  5. Nice post. Glad to found your blog. Thanks for sharing.

    web design course in chennai

    ReplyDelete
  6. I can not stop myself to read this post! Thanks. Kanhasoft is the mobile and web solution developer in India and USA. We are developing a complete enterprise solution to boost the business. Visit our site to know more.

    ReplyDelete
  7. The blog depicts how hard the writer has worked on this.
    Mason Soiza

    ReplyDelete
  8. I’ll grade this blog as an A and it shows how much effort has been put into this.
    Mason Soiza

    ReplyDelete
  9. Idiotic and additionally trusting people at the same time can be an obstacle, on aged and also fully grown folk assembled also will follow a complication. Age and also embryonic concern together. digitalisieren

    ReplyDelete
  10. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. best led tv under 25000 rs

    ReplyDelete
  11. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Best Headphones Under 300 in India

    ReplyDelete
  12. Very good information. we need learn from real time examples and for this we choose good training institute, we refer Apponix Technologies which offers free demo classes!!
    https://bit.ly/2TORdBp

    ReplyDelete
  13. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! business server

    ReplyDelete
  14. I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. https://leather-toolkits.com/reviews/best-cutting-mats/

    ReplyDelete
  15. Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. Expert Witness

    ReplyDelete
  16. It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. How to delete a page in Microsoft word

    ReplyDelete
  17. I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. https://isportable.com

    ReplyDelete
  18. So, SEO techniques can improve the ranking of your website and help it to grab a place in the first page of the search result, which in turn will bring in more leads for your business. No matter digital marketing course in hyderabad

    ReplyDelete
  19. First ever i used this amzing gadget,this is worth of money.
    UV Sanitizer

    ReplyDelete
  20. Patients who are affected with ulcers on their tongue and within their cheeks can truly benefits by using borax. It can be one of useful Natural Remedies for Lichen Planus. Plentiful folks who have had success report using one to eighth of a teaspoon blended with water two times each day. For further details about Lichen Planus Treatment Natural please visit at Herbs Solutions by Nature.

    ReplyDelete
  21. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. click here

    ReplyDelete
  22. Informative blog post, thanks for sharing.
    Our Digital Marketing Course with Internship Program consists of 35 Modules. With 1 Hr class everyday from Monday to Friday. You can join the internship along with the course for two months duration.
    Digital Marketing Course with Internship

    ReplyDelete
  23. The Blog contains the effective and attractive information’s and thanks for the blog.
    JAVA Training in Chennai
    JAVA Training in Bangalore

    ReplyDelete
  24. The HP Deskjet 6940 is not your regular printer. In fact, it can be the best budget printer you can ever have. Listen to this: HP Deskjet 6940 is fast, reliable, efficient, and most importantly affordable for users. best printer reviews

    ReplyDelete
  25. Thanks you very much for sharing these links. Will definitely check this out.. this page

    ReplyDelete
  26. Really nice and interesting post. I was looking for this kind of information and it was great to read it. Keep posting. Thanks for sharing 😊😊😊😊😊Sometimes travelers get overwhelmed by the complicated procedures of visa acquisition. However, getting e-visa to Turkey from Indian is as easy as making a paper plane : ) Apply Turkey e visa for Indian with the online portal and get your e-visa in 3 steps!

    ReplyDelete
  27. Great article. Thanks for your sharing such as amazing article

    ReplyDelete

I Tech - Technology Updates's Facebook Wall