Hi All,
I'm extremely new to php and SS CMS!
I am having trouble getting some scripts to work (which I am transferring from my old html website).
I have searched the forum for solutions, and so far have found that I should edit mysite/config.php to include:
HtmlEditorConfig::get('cms')->setOption('extended_valid_elements',"script[type|src],img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|usemap],iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],object[width|height|data|type],param[name|value],map[class|name|id],area[shape|coords|href|target|alt]");
However, my script still won't work as the CMS seems to place comments bewteen scripts with <![CDATA[ as shown here:
<script type="text/javascript" src="http://www.db798.com/pictobrowser/swfobject.js">// <![CDATA[
<script type="text/javascript">[CDATA[<![CDATA[<![CDATA[<![CDATA[// <![CDATA[
var so = new SWFObject("http://www.db798.com/pictobrowserp.swf", "PictoBrowser", "940", "590", "8", "#3a3a3a"); so.addVariable("source", "album"); so.addVariable("userName", "user"); so.addVariable("names", "101125"); so.addVariable("albumId", "0000000123"); so.addVariable("titles", "off"); so.addVariable("displayNotes", "off"); so.addVariable("thumbAutoHide", "off"); so.addVariable("imageSize", "original"); so.addVariable("vAlign", "mid"); so.addVariable("vertOffset", "0"); so.addVariable("colorHexVar", "3a3a3a"); so.addVariable("initialScale", "off"); so.addVariable("bgAlpha", "5"); so.write("PictoBrowser110419211155");
// ]]]]]]]]<![CDATA[><![CDATA[><![CDATA[><![CDATA[>]]]]]]<![CDATA[><![CDATA[><![CDATA[>]]]]<![CDATA[><![CDATA[>]]]][CDATA[
// -->]]></script>
Does anybody have any ideas????
Many thanks!!!