Embedding HTML Into Information page not working
Posted: Tue Jun 15, 2010 12:08 pm
Hi,
I am running OpenCart version 1.4.7 and I am having problems any time i add code or text into any of the text boxes in the admin area.
A few examples...
I am trying to use this code and embed a youtube video into an information page...
So i enter the admin area for the information page I want to work with...go into the description area..., and then change to SOURCE mode.
I then paste the above code in and hit save. When viewing the live information page, I get nothing. When I go back into the admin area to view the code...this is what appears under SOURCE
It appears opencart or something server side is doing some sort of processing on the code and putting in special characters and so forth.
Am I doing something wrong or is there just something I am missing?
I am running OpenCart version 1.4.7 and I am having problems any time i add code or text into any of the text boxes in the admin area.
A few examples...
I am trying to use this code and embed a youtube video into an information page...
Code: Select all
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/hBYNlykw_Xo&hl=en_US&fs=1&rel=0&hd=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/hBYNlykw_Xo&hl=en_US&fs=1&rel=0&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>
I then paste the above code in and hit save. When viewing the live information page, I get nothing. When I go back into the admin area to view the code...this is what appears under SOURCE
Code: Select all
<p>
<object height="\"340\"" width="\"560\""> <param name="\"movie\"" value="\"http://www.youtube.com/v/hBYNlykw_Xo&hl=en_US&fs=1&rel=0&hd=1\"" /> <param name="\"allowFullScreen\"" value="\"true\"" /> <param name="\"allowscriptaccess\"" value="\"always\"" /> <embed allowfullscreen="\"true\"" allowscriptaccess="\"always\"" height="\"340\"" src="%5C%22http://www.youtube.com/v/hBYNlykw_Xo&hl=en_US&fs=1&rel=0&hd=1%5C%22" type="\"application/x-shockwave-flash\"" width="\"560\""></embed> </object></p>
Am I doing something wrong or is there just something I am missing?