Sunday, 29 July 2007

Change Your Header - NEW Blogger

NEW Blogger instructions, probably for the majority of users, and probably the one that will interest most of the visitors to this site looking for simple instructions on how to change a 'Header' or 'Banner'.

Have you got your image ready? Is the image width set to the width of your current template? Please remember I am dealing specifically with 'Rounders-3' and 'Rounders-4', and in those the width of the image is the same as the width of the template - 740 pixels. The height of the image is what you choose to make it, but I suggest 150 pixels for a balanced display.

--------------------------------------------------------------------------------

1. Backup your old template. Either by using the built-in backup feature in Blogger, or by copy/pasting it to a text editor of your choice, and saving it in a location you can find easily and with a name that makes sense to you!

--------------------------------------------------------------------------------

2. Clicking on 'Customise' on your main page, or 'Layout' on your Dashboard will bring you to the "Add and Arrange Page Elements" of the 'Template' tab. This is the new feature of NEW-Blogger in which you can literally 'drag-and-drop' modules wherever you wish. The one we are interested in is the 'Header' panel at the top:

--------------------------------------------------------------------------------

3. When you click on 'Edit' (see pic on top) it takes you to a new window in which you are asked to make a few choices. I have annotated the choices you should make so I won't reiterate them here:

--------------------------------------------------------------------------------

4. Nearly done - but not quite! Those pesky codes in the /* Blog Header still need to be changed so that the image will sit exactly where you want it, centred at the top of the page. It is exactly the same criteria that was edited in OLD-Blogger, so take a look at the graphic below and do the editing . . .

--------------------------------------------------------------------------------

That's it. You wanted more?

The examples for this sort of editing are all around you. The banner header on this site was inserted using exactly the same editing techniques. The banner header on David McMahon's blog (using the Rounders-3 template), and the banner header on Cecilia Mercado's blog, Dance with the Sun (using the Rounders-4 template), were also edited using the same instructions I've posted above.

If things don't work out first time, just restore the site to the way it was by using the saved template you copied before you started. Then e-mail me directly and I will visit your site and see what I can do for you. Don't forget to add as much information about what went wrong.

Over to you . . .

back to the top

 

Change Your Header - OLD Blogger

OLD Blogger instructions. Here we go. Please bear in mind that this will come in two parts - OLD and NEW-Blogger. Why? Because I hacked away at both, and it would be a waste if I didn't at least mention OLD-Blogger for some 'peeps' who are still using it.

So, before we get down and dirty with the template changes, have you got your image ready? You probably have or you wouldn't be interested in attempting to change it. Make sure that the image is the width of your current template. In 'Rounders-3' and 'Rounders-4' the width of the image is the same as the width of the template - 740 pixels. The height is whatever you want it to be, but I suggest 150 pixels for a balanced display.

The following is the picture I settled on after much editing in Photoshop. You will see a screen-caliper I use as an aid when 'measuring' stuff for the web and it clearly shows that the width of the picture is 740 pixels. Measuring things using the 'artists thumb' method isn't much good for web design. It has to be precise or your display will look shoddy!

OK, we have the replacement ready so let's go see what we need to attack. Once again, please let me remind you that this is OLD-Blogger that we are working on. If you want the information for NEW-Blogger, read the post that follows this one.

--------------------------------------------------------------------------------

1. Backup your old template. Either by using the built-in backup feature in Blogger, or by copy/pasting it to a text editor of your choice, and saving it in a location you can find easily and with a name that makes sense to you!

--------------------------------------------------------------------------------

2. Upload your image so that it gets to lodge itself on Blogger's servers, because you're going to have to call it up during the editing process. You can do this in a new draft post that you won't be publishing:

--------------------------------------------------------------------------------

3. The highlighted bit is what you need when replacing the template's own image. The rest is superfluous:

--------------------------------------------------------------------------------

4. Now choose the 'Template' tab and choose to 'Edit HTML' (if you're still reading this and you are a NEW-Blogger user, please note the differences in the options offered to you). Follow the instructions in the graphic below:

--------------------------------------------------------------------------------

5. And here are the changes:

--------------------------------------------------------------------------------

6. Still in the 'Edit HTML' window, find <!-- Blog Header --> and delete the bits that I've highlighted. This is so that the 'Blog Title' and 'Blog Description' don't show up over (or through) your carefully constructed graphic!

--------------------------------------------------------------------------------

7. That should have been all you needed to do, but when I made the changes to David's blog, one of his visitors commented that the 'link' that the original header provided back to the home page of the blog was now broken, and that she found it disconcerting that clicking on the new banner didn't take her anywhere! That's the strength of 'feedback', that a simple oversight made a visitor's browsing experience less than satisfactory. So I went back in and did another small change that the next couple of graphics describe. I would recommend that you do it as well. This graphic shows what needs to be edited . . .

--------------------------------------------------------------------------------

8. And this graphic shows it after it has been edited . . .

--------------------------------------------------------------------------------

That's all folks. If you haven't already done so, take a wander across to David McMahon's blog. What you see is precisely what was achieved editing his banner while he was still using OLD-Blogger.

He is, of course, now using NEW-Blogger. Which means I can use his site as an example for the 'tute' on changing things in NEW-Blogger as well. Watch out for the next post . . .

back to the top

 

What a Vista . . . !

A gentle comment left by papoosue reminded me that I've been putting off publishing the 'Banner/Header' tutes, using the switch to the new computer and the new OS as an excuse.

Well, a week has rolled by since I switched off the trusty 'old' computer and I haven't been tempted to turn it back on again. Looks like I managed to snatch all the files I needed, so it appears that the time for excuses is over!

My dual monitor display of a Vista desktop.
Photograph: © Terry Fletcher

 

I've put up that pic just to prove that life has moved on and that I have truly changed things. I should be able to get my head down now and become productive.

Give me a day or two, OK?

back to the top

 

Friday, 13 July 2007

Update . . .

New computer. New OS (Windows Vista). Same old problem. And NO, it isn't connected to paraskavedekatriaphobia, or what is commonly known as the "The Fear of Friday the 13th"!

Can't build a local network because M$, in their wisdom, have changed just about everything as far as Administering your account is concerned. They claim that it 'hardens up' your computer against vile on-line attacks. Sure! What they don't say is that they've changed things so much that, you can barely access the internet. Which makes your computer pretty safe!

It is now a game of 'trial-and-error' to build a local network, and until I've managed to do that then all my old files are sitting on the old computer and thumbing their collective nose at me.

Figuratively speaking, of course!

Bear with me, folks! I will be good to go in a few days . . .

back to the top

 

Friday, 29 June 2007

Update . . .

This is a quick note for anybody that is waiting for the tute(s) to be posted.

I am experiencing some MAJOR computer problems. Mostly I get around to fixing them, but I think it is time for a new computer, which also means a move to Vista, something I have been putting off for a while.

Please bear with me . . .

back to the top

 

Monday, 25 June 2007

Own It . . . !!

There are millions of bloggers, using various blogger engines, which means there are millions of templates in use. And your template of choice is going to end up being similar to many thousands of others.

So what's so terrible about that? Absolutely nothing!

The templates have been crafted with love and care and enthusiasm, and have been made available to all blog users - FREE of charge. But you can make it your own - "Own It!" - by changing only a few parameters. The colour combination for one thing; the banner header for another.

Any change you undertake will make your template UNIQUE. The base template will remain the same as the thousands of other, similar templates, but it will have your personal touch stamped all over it. Which will tell your visitors that you care. Not just about the content, but how you wish to serve up the dish!

What you have to say on your Blog, the most important part, is still your own unique footprint on the web. Don't ignore the fact that the container in which you display it is also within your remit for change.

David McMahon posted a series of three pictures of the sunset on his shortest day of the year on his authorblog a few days ago. Apart from the phenomenom that Oz was experiencing their shortest day whilst the rest of us in the northern hemisphere were 'clebrating' the longest day, the pictures were of the usual high quality one expects from the man. I marvelled at the images he had captured and then a blindingly obvious thought struck me. Those pictures, untouched, matched the overall colour scheme of his 'Rounders 3' template. I wondered how one of those might look if it could be used as a banner for his site.

Long story, short. I fiddled around in Photoshop and came up with something I thought might appeal to him. I was still hesitant, but after a bit of encouragement from my 'better-half', Maria, I forwarded the idea to David. In true McMahon fashion (and I won't repeat the Aussie expletives from his email) he was delighted and enthusiastic and said he'd incorporate the idea as soon as he could find the time (Wendy in hospital, Blogger awards, deadlines to meet at work . . . and the rest!).

So I offered to do it, and he accepted. Don't misunderstand. This doesn't happen all the time, and to repeat a quaint Aussie expression that David uses frequently, ". . . neither of us paints the other guy's fence!" It is just something one bloke does for the other without any expectation of a reciprocal act. Mind you, I am ahead of the game, considering the amount of original stuff he pushes my way for publication on my main website Anglo-Indian Portal.

The change to David's banner header seems to have been generally accepted as a good move. And now I have a comment from YesBut encouraging me to "bring it on!"

How can I refuse?

Standby for the next post . . .

back to the top

 

Thursday, 31 May 2007

'Recent Posts' - Where did they go?

From: David McMahon
To: Terry Fletcher
Subject: Request from Jenera Healey

Jenera says, "I'm trying some new things with my template and I'd like to add a Recent Posts section in and I know you have one. How did you get that in your template? I'm having a heck of a time trying to get it in there!"

What's the answer El-Tel? I seem to remember we worked on this one when I first switched to the new template.

David


---------------------------------------------------------------------------------

Must admit that this one caused a bit of consternation because, as David mentions in his email, we DID work together on his template when he did the switch.

The BAD news is that it isn't possible to incorporate the feature into Jenera's template. Simple reason:

  • Jenera is using NEW-Blogger.
  • David is still using OLD-Blogger!

There is no doubt that NEW-Blogger is much more user-friendly and that it has introduced a 'drag-and-drop' feature, but at the same time the designers have integrated certain features. The 'Recent Posts' feature is one of them, and has been integrated into the 'Archives' feature which, in turn, has been expanded to allow different displays of the archived posts.

Win some! Lose some! But I will continue to investigate if it is possible to split the two.

back to the top

 

Sunday, 27 May 2007

YouTube . . . My Generation!

Cecilia again (boy, am I glad somebody is asking questions)!

 

Q: How do I add a YouTube feed to my page. I've tried, but somehow it doesn't seem to want to display!

A: Follow these steps.

 

1. Find the video clip on the YOUTUBE site - NOT the clip you've seen being streamed on somebody else's page.

2. This is what you need to copy:

---------------------------------------------------------------------------------

3. This is a 'before' and 'after' of the same code snippet. You can see where I've added the tags to center the YouTube window. You can achieve the same thing by using the 'Compile' or WYSIWYG feature.

---------------------------------------------------------------------------------

The following is an excerpt taken from the blurb that accompanied the release of this video clip:

The oldest and greatest rock band in the world - meet The Zimmers and their amazing cover of The Who's "My Generation".

The single was painstakingly recorded between band members having to sit out sections due to treatment for various medical problems. One fainted in over-excitement before she even reached the studios.

Lead singer Alf is 90 - it's quite something when he snarls, 'Hope I die before I get old' and then a little later kicks over a drumkit. Winifred Warburton is 99 and thrashes away at the keyboard. Buster Martin, 100, is the oldest working man in Britain. You have to watch until the end to see his tour de force.

Tim Samuels, the documentary-maker responsible for this event says, "They are all enjoying the rock and roll ride in a very understated way. Some of them might not be able to stand for too long as their knees might give them a bit of gyp, but they are all sprightly enough."

Altogether, they are a formidable bunch!

 

 

I hope you gained something from the 'tute', but that you enjoyed the YouTube clip more!

Come back again soon.

back to the top

 

Thursday, 24 May 2007

Leap of Faith, too . . . Implementing Thickbox

I am about to use one of David McMahon's original high-res photographs that he sent me some time ago, but which he hasn't actually posted on his blog one that he published on authorblog titled Jose, Can You See . . .. This should demonstrate how a 'medium-sized' picture on a Blogger page (as displayed on David's blog and reproduced in a similar size here) can be viewed at its best by using the 'Thickbox' technique. I like the effect very much; you have to decide whether it is something you'd like to use, too!

OK, let us make a start!

---------------------------------------------------------------------------------

1. Choose to make a new post (I don't think I need to add screencaps for the obvious steps - but correct me if I am wrong).

---------------------------------------------------------------------------------

2. Choose your method, 'Compose' or 'Edit HTML'. I prefer the latter because I have more control, but your mileage will vary. Be warned, you will HAVE to use 'Edit HTML' at a later stage.

I prefer to compose the post in a text editor - (click on the thumbnail for a larger image)

I also compose my posts in a text editor outside the post window, and when I am satisfied that everything is as I want it, I copy/paste into the editing window and save it (but, of course, Blogger has introduced an 'Auto-save' feature which is an excellent idea!). You can see from the 'screencap' that I have already started to format my paragaraphs and, where required, to italicise or bold the text.

---------------------------------------------------------------------------------

3. Before I upload the image I need to take a look at its size in 'high-res' format. This one happens to be 3008-pixels-wide and 2000-pixels-high (size: 827,906 Bytes).

  • Far too large to display as a standalone image in a new window; the viewer would be forced to use scroll bars to view the whole image.
  • Far too large to save many images of this size to your (limited) Blogger disk space allocation.
  • Far too large for a user with a dial-up connection (DUN) who would have to wait an interminable age for the picture to download and appear on his or her screen.
'Thickbox' will automatically adjust it to a viewable size that will display centred in the available space in the viewing window, whatever the screen resolution the viewer is using, but the other two factors mentioned above are still important, because Thickbox will NOT resize your raw picture for you.

I will now upload the image after having reduced it to 800px by 532px (size: 22,382 Bytes). I simply used Irfanview (discussed elsewhere) to reduce the width to 800 pixels and it did the rest for me:

The code returned for an uploaded image

The first thing to notice is how Blogger 'codes' the HTML for the image. In the 'screencap' I have deliberately NOT posted any text so that you get an idea of what sort of thing you need to look for when you start to fiddle with the HTML. In any event Blogger ALWAYS places the uploaded image at the beginning of your post, regardless of where you last placed your cursor. This is an annoying quirk but, we can use it to our advantage if we know that the last image uploaded will always be the first bit of text you come across when you're editing in HTML.

I have highlighted and arrowed the characters "-h" that appear immediately after "s1600". REMOVE THEM. Do it the first time you see your code so that you don't forget later when you're adding other bits as explained in step 4 below!

---------------------------------------------------------------------------------

Code changes highlighted and arrowed

4. Here is the same code again, but note the highlighted additions (errmmm... the deletion is obvious by no longer appearing there!).

  1. Added the code for centering the paragraph and 'closed' the tag.
  2. Added the 'class' telling the script to call up Thickbox.
  3. Added the 'title' text.
  4. Added the 'alt' text.

---------------------------------------------------------------------------------

Whew! That was a toughie - FOR ME. I began to get confused as to whether I was adding screen captures or the actual picture. Had to delete and re-upload a couple of times. But, if you've come this far, then here is the original David McMahon photograph (slaps head! - must remember to add the copyright):

 

Sunrise in the City! - (click on the thumbnail for a larger image) Photograph: © David McMahon

 

That's ALL, folks

back to the top

 

Saturday, 19 May 2007

Leap of Faith . . . Editing your template for Thickbox

This is your 'leap of faith'. This is where you have to make a decision as to whether stepping out into the unknown is worth the end result. I have shown you what you can achieve; you have to decide whether it is worth the effort. I will hazard a guess that most of you decide that it probably is!

So, let us make a start.

---------------------------------------------------------------------------------

1. Call up your page in a new window and check that you're 'signed in'. You should now have this tutorial and your homepage open, either as two separate windows or two tabs (IE7 or Firefox or whatever), and you will need to switch between windows to complete the various steps I will outline.

---------------------------------------------------------------------------------

2. Click on 'Customize' (I vill zay zis only vunce - all editing is being done on YOUR page!).

---------------------------------------------------------------------------------

Choose to edit the  HTML - (click on the thumbnail for a larger image)

3. Choose to 'Edit HTML' when you are faced with these choices.

---------------------------------------------------------------------------------

Save your template - (click on the thumbnail for a larger image)

4. Save your template (but see below) . . .

---------------------------------------------------------------------------------

My preference for saving a template - (click on the thumbnail for a larger image)

5. My preference for saving a template is to copy the template from the editing window by positioning the cursor in the window, pressing 'Ctrl+A', then 'Ctrl+C' (this will select all the text in the window and copy it to the clipboard). Now paste the copied text into your text editor (Notepad or one of the editors I've recommended previously), by opening it and pressing 'Ctrl+V'. Then SAVE that as a text file, with a name you can recognise easily, and in a place that, if you need to, you can find it quickly.

Note: do NOT use a word-processing package like 'Word' as this will corrupt the text you've just saved. For the 'geeky', the difference is between UTF-8 and UTF-16, but that's another story for another time!

---------------------------------------------------------------------------------

6. Find the last 'close brace' above the '</head>' tag. You could scroll down (see image), but the easiest way is to click the 'Edit ---> Find on this page' link in your browser and type '</head>' (without the quotes) into the box and click 'Next'.

---------------------------------------------------------------------------------

7. Insert two or three returns between the curly bracket and the line that reads "]]></b:skin>". If your template doesn't have this line, insert the following code just above the '</head>' tag and it will still work! Copy & paste the code in the box:


/* ----- thickbox settings ----- */

#TB_window {
font: 12px Arial, Helvetica, sans-serif;
color: #333333;
}

#TB_secondLine {
font: 10px Arial, Helvetica, sans-serif;
color:#666666;
}

#TB_window a:link {color: #666666;}
#TB_window a:visited {color: #666666;}
#TB_window a:hover {color: #000;}
#TB_window a:active {color: #666666;}
#TB_window a:focus{color: #666666;}

#TB_overlay {
position: fixed;
z-index:100;
top: 0px;
left: 0px;
background-color:#000;
filter:alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;
height:100%;
width:100%;
}

* html #TB_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

#TB_window {
position: fixed;
background: #ffffff;
z-index: 102;
color:#000000;
display:none;
border: 4px solid #525252;
text-align:left;
top:50%;
left:50%;
}

* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

#TB_window img#TB_Image {
display:block;
margin: 15px 0 0 15px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #666;
border-left: 1px solid #666;
}

#TB_caption{
height:25px;
padding:7px 30px 10px 25px;
float:left;
}

#TB_closeWindow{
height:25px;
padding:11px 25px 10px 0;
float:right;
}

#TB_closeAjaxWindow{
padding:7px 10px 5px 0;
margin-bottom:1px;
text-align:right;
float:right;
}

#TB_ajaxWindowTitle{
float:left;
padding:7px 0 5px 10px;
margin-bottom:1px;
}

#TB_title{
background-color:#e8e8e8;
height:27px;
}

#TB_ajaxContent{
clear:both;
padding:2px 15px 15px 15px;
overflow:auto;
text-align:left;
line-height:1.4em;
}

#TB_ajaxContent.TB_modal{
padding:15px;
}

#TB_ajaxContent p{
padding:5px 0px 5px 0px;
}

#TB_load{
position: fixed;
display:none;
height:13px;
width:208px;
z-index:103;
top: 50%;
left: 50%;
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}

* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

#TB_HideSelect{
z-index:99;
position:fixed;
top: 0;
left: 0;
background-color:#fff;
border:none;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity: 0;
height:100%;
width:100%;
}

* html #TB_HideSelect { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
margin-top:1px;
_margin-bottom:1px;
}

/* ----- end of thickbox settings ----- */

/* ----- start of Terry's settings ----- */

.img_left { /* terrys hack */
float: left;
margin-right: 20px;
margin-bottom: 6px;
}

.img_right { /* terrys hack */
float: right;
margin-left: 20px;
margin-bottom: 6px;
}

.clear { /* terrys hack */
clear: both;
}

.dropcap { /* terrys hack */
font-family: times;
color: #8CA3BB;
font-size: 70px;
float: left;
padding-right: 2px;
padding-top: 2px;
line-height: 60px
}

/* ----- end of Terry's settings ----- */

---------------------------------------------------------------------------------

8. This is what it should look like after you've pasted in the code. Still with me?

---------------------------------------------------------------------------------

9. Find the '</head>' tag again, then copy/paste the following code just above it:


    <script src='http://www.tapmal.com/thickbox/jquery.js' type='text/javascript'/>

    <script src='http://www.tapmal.com/thickbox/thickbox.js' type='text/javascript'/>

---------------------------------------------------------------------------------

10. This is what your template should look like after you've pasted in the relevant code.

A brief explanation: the code is telling the blogger engine where to find the JavaScript sources for the Thickbox to work. I have currently pointed it to my own server, which will always be available with the most up-to-date "js" scripts for this function. You see, I use this path as well, so you can be certain that as long as I am on the web, you don't have to worry about where to get your JavaScript or your animated 'loading' GIF.

---------------------------------------------------------------------------------

11. You can click on the 'PREVIEW' link, but you won't notice any change to how your blog displays, and that is because the bits of code we've put in don't actually change how your blog is displayed UNTIL you call the specific function. But more about that in the next post.

---------------------------------------------------------------------------------

Now 'SAVE' your template (you already have the original so you don't have to be too concerned) and 'View' your blog. No difference? Bravo! That means all the 'tweaking' you've done was completed successfully!

So far, so good! Now you just have to wait for the second part to see how to 'edit' each of your picture posts to achieve the 'Thickbox' effect.

Come back again, soon!

back to the top