david thompson Posted November 3, 2010 Report Share Posted November 3, 2010 Hello, I copyed this code into the profile_mail.tpl but only thing that works is the PIERP chart and the pie chart for the aircraft one doesnt show. Here is the code reagrds. <h3>Your Stats</h3> <?php /* Added in 2.0! */ $chart_width = '800'; $chart_height = '250'; /* Don't need to change anything below this here */ ?> <div align="center" style="width: 100%;"> <div align="center" id="months_data"></div> </div> <br /> <div align="center" style="width: 100%;"> <div align="center" id="aircraft_data"></div> </div> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "months_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsmonthsdata/'.Auth::$userinfo->pilotid);?>"}); <?php $chart_width = '800'; $chart_height = '300'; /* Don't need to change anything below this here */ ?> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "aircraft_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsaircraftdata/'.Auth::$userinfo->pilotid);?>"}); </script> Quote Link to comment Share on other sites More sharing options...
Strider Posted November 3, 2010 Report Share Posted November 3, 2010 Link to the site, and is it on free hosting? 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.