Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How To Allow Embedded Code In DNNArticle Problem + SolutionHow To Allow Embedded Code In DNNArticle Problem + Solution
Previous
 
Next
New Post
12/26/2012 6:59 AM
 

Hello folks,

There is Solution I'd like to share with the Dotnetnuke community.

If the forum is not the relevant one to share this approached, please move it to the right one.

In our company we are using Dotnetnuke CMS Edition which give us the best solution for expose our company agenda.

In the website we are using the DNNArticle module for adding and managing articles.

Our marketing section wanted to add YouTube video (Iframe embedded code) to one of the articles but we encountered a problem. Its seems  that the html editor just remove the YouTube iframe embedded code.

I don't need to mention how much sharing YouTube videos is one of the important things for Effective advertising for our company.

So, I decided to go deeper for finding some solutions.

First I tried to see if there is any property that need to change in the DNNArticle Settings, but I didn't saw something that mention embedded, iframe or YouTube support.

Second, I tried to Google it, but I didn't found any relevant discussion or code solution that will help me.

Thirdly, I thought maybe the DNN is blocking or filter the YouTube or script tags, while downloading the source code and exploring it, I found interesting approach in the security section on the DNN, there is a  method for checking if there is some script or iframe tags needed to render, and for security reasons he remove them. so I recompile the source code solution without the invoking the filtering method. then open the website in the internet explorer expecting that I solved the problem. but I didn't.

Fourth, I thought maybe it's the Html Editor that blocks the script tags. but after changing to another html editor provider in the DNN I realize that the html editor is not the cause of the filtering. by the way, I tried the CKEditor and its seems that it done better html edit that the default one which did large amount of errors while editing.

After All those approaches , I realized that the problem must been in the DNNArticle Module. but the DNNArticle is NOT open source and its module for sale.

There was no other way but DeCompile the DNNArticle Dynamic Link Library (DLL) File.

After viewing the DeCompiled Code, I Saw the filtering method that invoked only by a true case condition. then after further investigation I saw one property that responsible to the filtering, after investigation deeper I found that the property is a part of the module setting and it is written in the database in the DNN modules settings, so then I figure that must be a setting that I Missed.

In the DNNArticle Module Setting, under the general settings section, I saw it. it's called "Filter Javascript" Using a checkbox for indicates true or false. no further explanations about it. how can we know that this little thing that almost hidden will allow us to plant YouTube embedded video.

I hope this solution will help others in the future.

Assaf,

 
New Post
1/9/2013 5:45 PM
 
Thanks for the information.

Usually I use old embed code (flash embed code) to post YouTube video in DNN Article, so I didn't deem this as a big deal. Until recently my colleague wants to post a 3D enabled YouTube video that does not support old embed code. I googled for a solution and find this post.

However, I didn't go through all this process to realized that it's DNN Article's problem, because I simply test if I can embed a iframe code in a normal HTML module, it works, so I conclude that its DNN Article's problem.
 
New Post
1/9/2013 9:19 PM
 
I use DNNArticle. I'm not sure if this occurred to you, but try asking the developer!
I've had a couple issues and just asked Lei and he replied within 10 min. one time and within 12 hrs. next time. Excellent service and support.
The easiest way to add a youtube video is via Lightbox. The user manual mentions how to add a youtube video this way.

BTW, the user manual states : Filter If this is enabled, it will filter all JavaScript code. If you want to include JavaScript into article content or description, you should disable this setting.

DNNArticle is a powerful programs and has many settings. I'm not sure I understand them all. But there is a user manual and support website.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How To Allow Embedded Code In DNNArticle Problem + SolutionHow To Allow Embedded Code In DNNArticle Problem + Solution


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out