WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: bfalcons on May 06, 2008, 04:50:30 PM
-
Hi all,
I have been looking through the pages and it seems no one else has had an issue so I will probably look really stupid. My knowledge is limited but I have installed ok, changed images to suit, but want to change a heading image to flash, I have done it and pointed to an .swf but it doesn't display at the front end, I have created other versions. flv and nothing shows. .gif and .jpg not a problem even .png.
Any suggestions.
thanks
BF
-
check the pathes.
best way is, you put your swf file into the template folder.
then you need to set a path like:
src="<?php echo TEMPLATE_DIR; ?>/your_file_name.swf"
regards,
stefek
-
check the pathes.
best way is, you put your swf file into the template folder.
then you need to set a path like:
src="<?php echo TEMPLATE_DIR; ?>/your_file_name.swf"
regards,
stefek
Thanks Stefek, sadly no luck, I have tried just loading my .swf image into media nd placing it, that doesn't work.
So for some reason WB cannot identify, I have looked through all files and folders, in the hope of seeing a permission, line with .jpg .gif .png but can't. Any further tips would be welcome.
Cheers
BF
-
First upload your flash file to your media library, then go to your admin settings page and enter your flash code in the "Website Header:" box similar to:
<embed src="../media/YourFlashFile.swf" width="400" height="80" type="application/x-shockwave-flash" play="true" loop="true" menu="true"></embed>
Adjust height & width & point to correct flash file.
Then open your template's index.php file and find the following code somewhere on the top:
<?php
// this allows to add custom information to the head section of your template (WB-->Settings-->Website Header)
echo WEBSITE_HEADER;
?>
Then move this code where you want your flash to appear in your template. You will probably have to further edit your template file (index.php file) to position your flash properly.
Hope it helps.
-
First upload your flash file to your media library, then go to your admin settings page and enter your flash code in the "Website Header:" box similar to:
Then open your template's index.php file and find the following code somewhere on the top:
<?php
// this allows to add custom information to the head section of your template (WB-->Settings-->Website Header)
echo WEBSITE_HEADER;
?>
I cant see that line on my template. I can only read my flagh file on Firefox but not IE. Please help. Thanks.
-
Re the mentioned piece of code, just copy it from here and paste it in your template as mentioned above. Or try another template and see how it goes.
Does your ie show flash in other websites?
-
Yes, only in WB I have problem :(
-
I had problems with adding Flash with Flash generated code. I place mine swf in the template folder and used the simple Fckeditor Insert Flash generated code
<embed width="940" height="717" menu="false" loop="true" play="true" src="http://stormvisions.com/templates/splash/splash.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
and it worked. Not sure if this helps.
-
I just now inserted a flash menu to my index page and here's how...
You will need to open whatever template file you are using for your site...you will then edit the index.php
The <div> that want the flash image/menu to go you will place:
<embed src="<?=TEMPLATE_DIR; ?>/folderlocationofswf/nameofflash.swf" width="696" height="364" />
It worked for me! Thrilled that it did...thought it was going to be much harder than that.
If you want to see what I did: www.lilmisskaties.c om/wb/pages/big-idea.php
Hope that was helpful.
Lil Miss