CodeIgniter Forums
[newbie ask] how to embed flashxml slideshow to CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: [newbie ask] how to embed flashxml slideshow to CI (/showthread.php?tid=56242)



[newbie ask] how to embed flashxml slideshow to CI - El Forum - 12-05-2012

[eluser]dhovie165[/eluser]
dear all,
im newbie, i just download slide show [.rar] from flashxml.net, but i dont know how to install at my CI website

need help.



[newbie ask] how to embed flashxml slideshow to CI - El Forum - 12-05-2012

[eluser]pickupman[/eluser]
It appears the installation instructions are included in the zip file, and also online at:
www.flashxml.net/banner-rotator.html#swmi-free-install

In MVC style, you would be placing your html code into a view to load the flash.


[newbie ask] how to embed flashxml slideshow to CI - El Forum - 12-05-2012

[eluser]dhovie165[/eluser]
im try to paste html code to views/menu.php like this ::

Code:
<div id="DivBannerRotatorFX"></div>
<$cript type="text/javascript" src="&lt;?php echo base_url(); ?&gt;javascripts/swfobject.js">[removed]
[removed]
var flashvars = {};
var params = {};
params.base = "";
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowFullScreen = "true";
params.allowScriptAccess = "always";
swfobject.embedSWF("&lt;?php echo base_url(); ?&gt;application/views/3d-banner/BannerRotatorFX.swf", "DivBannerRotatorFX", "600", "260", "9.0.0", false, flashvars, params);
</$cript>

but when i load page with firebug,this error appear ::

Code:
"NetworkError: 403 Forbidden - http://localhost/brandedbag/application/views/3d-banner/BannerRotatorFX.swf"

wht i miss?


[newbie ask] how to embed flashxml slideshow to CI - El Forum - 12-06-2012

[eluser]pickupman[/eluser]
You will find a .htaccess file in /application/ that will block direct access to any file inside of the application folder. You have two options.
1) Move the BannerRotatorFX.swf out of the application/views folder.
2) Add a FilesMatch rule inside of your /application/.htaccess to allow this file to be directly accessed.
Code:
<FilesMatch ".*\.(swf|SWF)$">
Order Allow,Deny
Allow from all
</FilesMatch>



[newbie ask] how to embed flashxml slideshow to CI - El Forum - 12-07-2012

[eluser]dhovie165[/eluser]
problem solve, thanks for this forums,