newteks Posted June 22, 2013 Share Posted June 22, 2013 Hello, i am building my new WHMCS based site here: http://www.newteks.gr/index.php (it is in Greek) I am trying to integrate getcu3er on the top right corner of the frontpage in order to show this http://www.newteks.gr/templates/newteks/modules/portfolio/embed_example.html But I am getting this message as you can see: Click to get Flash Player or try to enable JavaScript and reload the page What I have done is the following: in homepage.php I add this line <div id="portfolio"> {include file="$template/modules/portfolio/portfolio.tpl"} </div> the portfolio.tpl contains : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="templates/newteks/modules/portfolio/js/swfobject.js"></script> <script type="text/javascript" src="templates/newteks/modules/portfolio/CU3ER.js"></script> <script type="text/javascript"> // add your FlashVars var vars = { xml_location : 'templates/newteks/modules/portfolio/CU3ER-config.xml', width:'490', height:'350' }; // add Flash embedding parameters, etc. wmode, bgcolor... var params = { wmode: 'transparent' }; params.allowScriptAccess = "always"; // Flash object attributes id and name var attributes = { id:'CU3ER', name:'CU3ER' }; // dynamic embed of Flash, set the location of expressInstall if needed swfobject.embedSWF('templates/newteks/modules/portfolio/CU3ER.swf', "CU3ER", 490, 350, "10.0.0", "templates/newteks/modules/portfolio/js/expressinstall.swf", vars, params, attributes ); // initialize CU3ER class containing Javascript controls and events for CU3ER var CU3ER_object = new CU3ER("CU3ER"); </script> </head> <body> <div id="CU3ER"> <!-- modify this content to provide users without Flash or enabled Javascript with alternative content information --> <p>Click to get Flash Player<br /> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </p> <p>or try to enable JavaScript and reload the page</p> <!-- generated SEO content starts here --> <div style="position:absolute;left:-50000px;"> <ul> <li> <a href="http://www.ydrogios.gr" target="_blank"> <img src='images/ydrogios.jpg' alt=''/> </a> <a href="www.ydrogios.gr" target="_blank"> <h2>Υδρόγειος ΑΑΑΕ</h2> <p></p> </a> <p>Υδρόγειος ΑΑΑΕ - www.ydrogios.gr</p> </li> <li> <a href="http://www.wsurf.gr" target="_blank"> <img src='images/wsurf.jpg' alt=''/> </a> <a href="www.ydrogios.gr" target="_blank"> <h2></h2> <p></p> </a> <p></p> </li> <li> <a href="http://www.cbp.gr" target="_blank"> <img src='images/cbp.gr.jpg' alt=''/> </a> <a href="www.ydrogios.gr" target="_blank"> <h2></h2> <p></p> </a> <p></p> </li> <li> <a href="http://www.choiceandattitude.com" target="_blank"> <img src='images/choiceandattitude.jpg' alt=''/> </a> <a href="www.ydrogios.gr" target="_blank"> <h2></h2> <p></p> </a> <p></p> </li> <li> <a href="http://www.seyk.gr" target="_blank"> <img src='images/seyk.gr.jpg' alt=''/> </a> <a href="www.ydrogios.gr" target="_blank"> <h2></h2> <p></p> </a> <p></p> </li> </ul></div> <!-- generated SEO content ends here --> </div> </body> What I am doing wrong ? thanks Kostas 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted June 22, 2013 Share Posted June 22, 2013 Try wrapping {literal} and {/literal} around the JavaScript parts. This is a smarty template requirement. 0 Quote Link to comment Share on other sites More sharing options...
newteks Posted June 22, 2013 Author Share Posted June 22, 2013 thanks for the advice. I added {literal}{/literal} to this part: {literal} <script type="text/javascript" src="templates/newteks/modules/portfolio/js/swfobject.js"></script> <script type="text/javascript" src="templates/newteks/modules/portfolio/CU3ER.js"></script> <script type="text/javascript"> // add your FlashVars var vars = { xml_location : 'templates/newteks/modules/portfolio/CU3ER-config.xml', width:'490', height:'350' }; // add Flash embedding parameters, etc. wmode, bgcolor... var params = { wmode: 'transparent' }; params.allowScriptAccess = "always"; // Flash object attributes id and name var attributes = { id:'CU3ER', name:'CU3ER' }; // dynamic embed of Flash, set the location of expressInstall if needed swfobject.embedSWF('templates/newteks/modules/portfolio/CU3ER.swf', "CU3ER", 490, 350, "10.0.0", "templates/newteks/modules/portfolio/js/expressinstall.swf", vars, params, attributes ); // initialize CU3ER class containing Javascript controls and events for CU3ER var CU3ER_object = new CU3ER("CU3ER"); </script>{/literal} and on local enviroment I can see the getcu3er but I can not see it online. If you do a right click on it you can see it is trying to load FLASH but it doesn't show the flash. thanks Kostas 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.