July 25, 2007

How To get Flash Header - My First Blogger Hack

It was hardly a week and I was getting bored of the header in blogger. It was unreal to think it is just a text or plain image ! In this age of jazzy looking headers this was pathetic !

So went out for a simple blogger hack. Here's a Tut for you.

Warning: This is long and possibly boring tutorial. You are responsible for your own action and if your blog acts funny or goes up in flames I am not responsible. Blame it on Weapons of mass Distruction. A coke could be handy during this tutorial.


Even if you are going to put a flash header you need to first upload a image header( dummy image) and choose the following settings.

Step 1



Step 2



Note: If you are uploading the image header for the first time than the "Placement" option will not be visible as soon as you upload one. Close the window and repeat step 1.

Step 3

Now comes the embedding part. Go to Template -> Edit Html

Then click on Expand Widget Templates



COPY THE WHOLE TEMPLATE TO A NOTEPAD AND SAVE IT IF THINGS GO BAD YOU CAN ALWAYS PASTE AND GO BACK T0 DEFAULT.


Now the default templates have too many waste space on either side of the bog so first you need to decrease that so that you can insert a big header.

Step 4

Under the edit template search for "
#header-wrapper" (by Ctrl + F.... duh !)

This is the code which gives the header-wrapper attributes

#header-wrapper {
width:670px;
margin:0 auto 10px;
border:1px solid $bordercolor;
}

Now I wanted a atleast 800 px width and I didnt like the border so I changed to

#header-wrapper {
width:800px;
margin:0 auto 10px;
border:0px solid $bordercolor;
}



Step 5

I dont want even the the header border (by default there are 2)

So search for "#header { "

#header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; }

Changed it to :-

#header { margin: 5px; border: 0px solid $bordercolor; text-align: center; color:$pagetitlecolor; }

Now check out the preview.

Step 6

Now if you need to increase the width of the blog. This is how you do it to Increase blog width :-

Search for the string "#outer-wrapper { "

#outer-wrapper { width: 760px; margin:0 auto; padding:10px; text-align:left; font: $bodyfont; }

I Changed it to:-

#outer-wrapper { width: 900px; margin:0 auto; padding:10px; text-align:left; font: $bodyfont; }


Step 7

To decrease the width between the main blog and the sidebar

Then Search for the string "#main-wrapper { "

#main-wrapper { width: 410px; float: left;

Change it to

#main-wrapper { width: 510px; float: left;

Step 8

Press Preview to check it out. Never Press Save Template until you are absolutely sure about the changes.

If everything looks smooth like a baby's bottom then lets go to the next step !

Step 9

Now we start to embed the flash header. (Finally! The pop-corn were almost over)

You need to host the flash header, choose a flash header that lets you hotlink and gives you the full file address (eg http://somebloodyfreehost.com/crap/your-god-damn-header.swf and not http://reallystingyhosting.com/free-shit/1287192837198237jsdkajdshakd/ )

Once you you've done that, replace the the src to the file address in the following flash embedding code !



Dont forget the /> at the end
Keep the width less than that in Step 4 and now keep the code handy (Copy to clipboard would be good)

Step 10

The moment of truth. Now its a good time to have that coke cuz don't mess up this step

Search the template for "!--Show just the image, no text-- "

here is the screenshot



Now replace the selected block of code with the flash embed code from step 9

Now press preview. If every thing is ok then click Save Template

Here is the screen shot of before and after

Before:


After:



With a flash header in blogger you can add menus, search box, mouse over effects including sound. Best of all looks non-template and alive !

Troubleshooting
Now for all those people who screwed up. Most likely you will get this message

We were unable to preview your template

Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.

This will be followed by the xml error message like this

XML error message: The element type "embed" must be terminated by the matching end-tag "".


Check out what the message states and act accordingly. Most likely you might have missed a tag or deleted something.
You can always copy the original template which you had saved in Step 3 and start all over again.



Coming soon more menus and header mods

Let me know your comments ! you can also post yours in the comments !

29 comments:

Sumesh said...

Nice long tut. Though you're right about that "boring" part ;)

And I liked the troubleshooting part a lot- its good for newbies who don't know about Blogger's error-reporting console and how to use it...

Techno Dude said...

@ Sumesh:

Hey thnx for stopping by !

Hey I am always right ;-)

Well I want the blogoshpere be more noob friendly will help spread the open source thinking !

Anonymous said...

hey
where do u get free fash headers

Casey said...

ok sound's good for all those in the blogger beta, but i'm setting up blogs in the "classic templates" anyone know how to hit a flash abnner up onto there?

ethan said...
This post has been removed by the author.
CUCHITA said...

hi can you tell me what wrong why i can not center the header
thanks

CUCHITA said...

http://alkolica.blogspot.com/
forget the address

Techno Dude said...

Hey CUCHITA !

Seem like centered to me !

Anonymous said...

Hi I followed your tutorial buy for some reason my flash header is now showing? any help?

Scheiro said...

Really nice tutorial !
Most of my bogs are in the "classic templates", but one of them is "in beta". I will try this hack.
Thanks for share ;-)

Н.В. said...

Hello! Congratulations for the perfect job!!! I`ve install a flash header in my 2 collumn blog. But since yesterday I installed a 3-collumn layout, which was taken from http://webtalks.blogspot.com/2007/04/downlaod-three-column-new-blogger.html But there is a problem - in this new layout the feature for putting pictures instead of text message is disabled. I have no answer from this guy who made this 3-collumn layout, so I can ask U for help. I could be vary happy if u take a look at the HTML code of this new layout and help me to put a flash header above.
Thank U!
Nick from Bulgaria
My e-mail for contact: bigshot@dir.bg

Anonymous said...

hi
plz help me.
i tried but it didnt workd for me
in firefox it says "click here to download plugin" and in IE7 it shows no header.

raheelfarooq_pk@yahoo.com
thanks

sachinKT said...

nice tutorial !! i will try.. thanks

One Winged Angel™ said...

Thanks..nice tut..

Can U suggest how to install new templates without screwing my blog (with widgets) ?

My blog is
http://hackingangel.blogspot.com

Ruby-Stone said...

hey, i was going through all the steps but i cant understand step 9....

~iwene~ said...

Hi!! I tried to follow your step by step tutorial but since my layout is so complicated, I was not able to install my flash header on the first several attempts. BUT THANK YOU SO SO SO MUCH. Your tutorial did lead me towards the right direction with regards to embedding the flash header. I will definitely refer people to your website!!

AVParanormal said...

Thanks for the tutorial. It's probably only boring to those who don't understand it. Now look at how awesome my header looks!

www.avparanormal.blogspot.com

My Generation said...

Thanks, it helps me a lot. Now i can have my own flash header instead of static image:)

MKS said...

Hi friend. I Visit your blog first time. are r u ready Care 4 link exchange...I have added ur blog on my blog .please u can see in my blog list ,n check urs blog' there...
I hope u also do same for my blog


Mohit
http://forextradingisthe.blogspot.com

Fox Prime said...

shit bug with the transparency navbar on top

can you help me?

Anonymous said...

hallo...thanks for ur step by step tutorial...it really made me clearer but i dont know where to upload the flash i created. can u show step by step where i can upload flash for free? Im using marcomedia flash 8.0.

You may email me - chew0904@yahoo.com

Thanks

Jerry said...

cheap wedding gowns,
discount bridal gowns,
China wedding dresses,
discount designer wedding dresses,
China wedding online store,
plus size wedding dresses,
cheap informal wedding dresses,
junior bridesmaid dresses,
cheap bridesmaid dresses,
maternity bridesmaid dresses,
discount flower girl gowns,
cheap prom dresses,
party dresses,
evening dresses,
mother of the bride dresses,
special occasion dresses,
cheap quinceanera dresses,
hot red wedding dresses

polo shirt said...

Fantastic!God bless you!Meanwhile,you can visit my China Wholesale,we have the highest quality but the lowest price fashion products wholesale from China.Here are the most popular China Wholesale productsfor all of you.You can visit http://chinaclothes.net.Also the polo clothing is a great choice for you.
http://www.pumafr.com/blog
http://poloshirtsonline.blogspot.com
http://thediary.org/mensclothing
http://blog.livedoor.jp/dokoma
http://www.itimes.com/my_blog.php

polo shirt said...

Do not mean bad.Thank you so much!I just want to show some fashion things to all of you.I like puma speed, puma femmes and other puma shoes. These puma sport items are at store recently and available for anyone.

venus said...

Perfect!!You are a outstanding person!Have you ever wore chaussures puma,Here are the most popular puma CAT,Puma shoes store gives some preview of puma speed cat,and casual but no sweat puma basket.

polo shirt said...

God bless you!I really agree with your opinions.Also,there are some new fashion things here,gillette razor blades.gillette mach3 razor bladesfor men.As for ladies,gillette venus razor blades must the best gift for you in summer,gillette fusion blades are all the best choice for you.
http://blog.livedoor.jp/lljj332
http://shoes-puma.jugem.jp
http://poloshirts--myfashion.blogspot.com
http://blades.blogsome.com
http://gillettefusion.edublogs.org</a

polo shirt said...

Awesome!!!Best wishes for you !!cheap polo shirts is the father of the summer should be prepared to most commonly used item, it has both style and shape of Ralph Lauren Polo, and vest with a random function polo ralph lauren, so that in the short-sleeved apply to both on many occasions, the pink and black color men's polo shirts brought into effect, lightweight cotton, linen texture to demonstrate masculine temperament and sense of fashion exhaustively.

polo shirt said...

Thank you so much!!polo shirt men'ssweate,Burberry Polo Shirts lacoste sweater, ralph lauren Columbia Jackets,ski clothing. Free Shipping, PayPal Payment. Enjoy your shopping experience on mensclothingus.com.You can find the father who desire fashionable, intellectual mens clothing simultaneously.
http://gilletterazor.blog126.fc2.com
http://poloclothing.blogsome.com
http://venuschinawholesale.easyjournal.com
http://pumaspeedcat.blogharbor.com

polo shirt said...

http://lj83612.blogspot.com
http://uggbootscamp.blogspot.com
http://ljsz123.blogspot.com
http://beilihua123.blogspot.com
http://beilihua321.blogspot.com
http://luoluo123.blogspot.com
http://lj83612.spaces.live.com
http://pumashoes.blog124.fc2.com
http://menspoloshirt.blog126.fc2.com
http://crystalluo612.blog126.fc2.com
http://mensclothingus.blog126.fc2.com
http://poloshirts123.spaces.live.com
http://www.free-blog-site.com/poloshirt
http://howforge.com/user/mensclothingus
http://gilletterazorblades123.blogspot.com
http://uggbootsshop.spaces.live.com
http://activerain.com/crystal111
http://www.free-blog-site.com/razor
http://mensclothing.blogsome.com