Related Tutorials


How to add flash to phpnuke



Hire Us!Download Video(0)Comments


If you have a flash file {.swf} that you want to add to the header, this tutorial will show you how to accomplish that..

Steps :
There are basically two ways to add flash to the header and they solely depend on the theme you are using. If your theme includes a header.html then use the first method below if not then use the last method.

Method:1
Swf files are embeded into your pages similar to adding a video or a music file. SWF files are added like the following. Notice that we placed the swf file in a flash folder inside the theme folder. Upload your flash file to that folder and paste the code below in the header.html file where you want the flash to play. If you have other files that the movie requires, it would be a good idea to put the files in that folder too.

Method:2
As you can see from above it's pretty simple to add your swf file to the header. Now you're thinking, my theme does not have a header.html file. Fear not, there is a simple way to add it the header. Open your themes/YOURTHEME/theme.php . Scroll down to the function header() . Find where you want the flash movie to play and add the codes like the following. Notice I replaced all the double quotes ( " ) with single ones ( ' ). You could also escape the quotes by using slashes but I like this way better. Do the same as above with the file placements.

You should now have a working flash header. If you have any further questions, visit the forums and ask for help..


Hire Us!Download Video(0)Comments