By snowball on
Hi, I am new at this sort of thing, however I would like to be able to know how to be able to replace the entire header in the FriendsElectric theme with a flash file. I can easily change the logo no problem, its a static image file, which I can replace, however I cannot seem to figure out how to add flash so that the entire header is in flash. I am not really that great at working with PHP or where to even look to edit this, however if anyone can help me with this that would be great.
Comments
I share your FLASH header pain!
I have been trying to do the same thing with my site and no luck.
This awesome Drupal site has been able to do it using the Kubrick theme:
http://www.partcafe.hu/vizisipalya/
They even got their fancy menu going as well!
if you look at the source code they have the flash code between
"div id=header" tags which is found at the top of the source code.
I am going give it shot and if I am successful. I will gladly show you how to do this. I know how frustrating it is good luck!
tricky but do-able
I've done this at some point or another - what I would recommend doing is "hard coding" the flash header into the document. go to the themes folder where the theme is held and poke around there. look for layout or node.tp.php or a file named as such. poke around for some code that looks like it is loading the top header image, delete it, and embed the flash you want with html directly. let me know if you have trouble.
Trouble....Still no FLASH header.
I have edited the kubrick theme layout page.tpl.php header tag and replaced the Flash object but no luck. More help is appreciated. I am sure "snowball" and I are not the only Drupal newbies grappling with this problem. Thanks!
Got FLASH working in FriendsElectric header..BUT...
Edited the page.tpl.php located in: themes>FriendsElectric
BUT I had to delete some php.endif tags to make it work and for some reason the side boarders disappear and gets all weird.
Snowball I can't seem to post the code so if you want the code email me. Thanks to zirafa!
thank god for back ups...
I am also trying to drop a Flash header into the code..and just blew up my site...if you or anyone can tell me how to do this that would be great!
cheers
Frank
Flash header help
Sure. Which theme are you using?
Flash header
Has anyone got the code for this as I to am trying to get this to work I have been trying to get it to work with the theme obsidian and kubrick
many thanks
Kevin
What theme should i be using?
If i wanted to imbed flash for navigation...what theme should i be using?
you know guys, just drop
you know guys, just drop your embed flash code in the header (div) (to have a flash based header or top navigation system in flash), that´s all there is to it, it has nothing to do with themes (even tho some themes of course is better suited for it, leaf and kubrick are pretty nice for that type of style)
and dont forget to wipe out the old php code for the header and to deal with the few visitors whom wont have flash.
Can you explain this please?
Hey... just upgraded to 4.6.* and it's been a VERY long time since I messed with Drupal.
I'm interested in placing a flash header as top navigation for my site. You mention header (div), could you explain what this is please?
Or if anyone else has sorted the problem, please inform me how you do it!
Thanks
Ritch
it looks to work to me
it looks to work to me without any problem, deal is you must remember that flash tag (embed) need more relative paths sooo:
iam workin on gespaa and flash name is a_nm.swf
so it looks just like this and working: src="themes/gespaa/a_nm/swf"
It worked for me
This is my first time posting here and glad to help with some coding. Thx to Cal34's suggested site I was able to use a swf as a web site logo. Here is how I did it:
(Was a really pain in the ass to post code here, so, here is as a link)
Click me
That's all. Thx Snowball for starting this thread.
try to send the code
almost
This technique seems to work at first, it is the same one I came up with using the kubrick theme. However, the flash header only shows up on the root directory and single level subdirectories. If a subdirectory is two levels deep i.e. http://www.domain.com/subdirectory1/subdirectory2/ the header won't appear.
Example:
it will appear on domain.com/user/register
but not on domain.com/user/register
My quick solution was referencing the entire url for the swf
<param name="movie" value="http://www.domain.com/yourlogo.swf" />and likewise where applicable. This is a cheap way to do it, and I'm currently trying to figure out how to reference the current theme directory through php so it can be used on multiple sites (having everything contained within the theme's directory)
I am trying to do this to
I am trying to do this to the ABAC theme and NOTING is changing! I delete stuff and it's just not affecting it! What step am I missing?
Flash header/menu
Can someone show me how to slot in a flash header/menu in Alek 2.0 theme ?
Another option
Here's an optional way to include Flash in your page.tpl.php file:
http://drupal.org/node/190583#comment-720978
flash in header image of four seasons
hi all,
i have a swf file for upload and want to put it where the header image is. Im using Four seasons if u know it its the color area below top horizontal menu that i want to place the flash.. im not a code guy btw
also the creator of my swf has asked what the dimensions of this space are ( how can i find this?, or can soemone just tell me....
much appreciated
is anyone kind enough to help
Thanks
dimensions
Hi there,
You can actually take a screen grab of the page and open a program like photoshop and use the ruler to measure - it is accurate!
Better way is o look in the css and find the sizes of the divs. You can find what the div is called by selecting the area on the webpage you want to know about, right clicking and selecting 'view selection source' (as opposed to page source which gives you the whole thing).
Makes it easier to find the needle in the haystack css if you know what it is called!
Good luck.
Carrie
CAZAM Ltd
http://www.cazam.eu
You're a legend
Got all this working by following your instruction. Bit of playing around with exactly where to put the flash to get the alignment working nicely in different browsers. Settled on replacing within the "title" div in the end ie:
replaced with:
And it works awesome - thanks for the code and explanation!!!