Showing posts with label How to's. Show all posts
Showing posts with label How to's. Show all posts

Friday, November 09, 2007

How to add a Social Book marking Button to Blogger.

If you want to include the social book marking button to the end of each post you do in Blogger then follow the below steps:

  1. Login into Blogger Dash Board
  2. Go to Settings
  3. Click on the template tab.
  4. Hit the Edit-HTML button, this displays the HTML for you blog.
  5. Check the "Expand Widget Templates" check boxes.
  6. Copy all the HTML to a text editor (e.g. Notepad, or whatever) and save a copy.
  7. Search for the tag <div class='post-footer'>. Note: If you cant find this, go and make sure you've clicked the 'Expand Widget Templates' checkbox first. When you are done, click 'Save Template'.

To add the new Add This drop down copy + paste in the following

<!-- AddThis Bookmark Post Dropdown BEGIN --> <div><script type='text/javascript'>addthis_url='<data:post.url/>'; addthis_title='<data:post.title/>'; addthis_pub='NiallMulhare';</script><script src='http://s7.addthis.com/js/addthis_widget.php?v=12' type='text/javascript'></script></div> <!-- AddThis Bookmark Post Dropdown END -->


Or to copy in the original button copy and paste the following


<!-- AddThis Bookmark Post Button BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=NiallMulhare&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark using any bookmark manager!'><img src='http://s9.addthis.com/button1-bm.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='AddThis Social Bookmark Button' /></a></div>
<!-- AddThis Bookmark Post Button END -->



And Badabing, your hit rate will be through the roof…… maybe...

Thursday, November 01, 2007

How to hide the nav bar in Blogger

While Blogger is great, Thanks Guys, one of the things that used to bug the living hell out of me was that pesky Nav Bar that is at the top of ever page. However as you can see its now gone from this page thanks to the joys of CSS 8 )

To remove the nav bar from your Blooger based Blog then follow the below instructions to remove the nav bar.

Removing from Blogger Beta
- Log in to blogger

  • - On your Dashboard, select Layout. This will take you to the Template tab.
  • - Click Edit HTML. Under the Edit Template section you will see you blog's HTML.
  • - paste the CSS definition in the top of the template code:
                
#navbar #Navbar1 iframe {
display:none;
visibility:none;
}

  • The Nav bar has now been removed. To display the nav bar again removed this code.


Removing from classic Blogger:

- Log in to blogger

- On your Dashboard, select Layout. This will take you to the Template tab.

- Click Edit HTML. Under the Edit Template section you will see you blog's HTML.

- Search for #b-navbar and replace it with #navbar-iframe

And Badabing the nav bar is gone!

It has to be said fair play to Blogger how giving the ability to remove this in the first place!

Thursday, September 21, 2006

How to open The Windows Explorer With A File Selected In Eclipse

Overview :

This is a handy little trick that can be used within Eclipse, basically (in a nut shell) it allows you to open windows explorer to the location of any select file from eclipse....

Setup:
Create an external tool with location ${env_var:SystemRoot}\explorer.exe and arguments /select,${resource_loc} . Any selected file or directory can now be shown in the windows explorer.

How do I do that?

From eclipse : Run -> External Tools.
Within here add the following:
  1. Create a new Program, This is done by right clicking on program on the tree and clicking "new"
  2. Name it shell
  3. Set the location to ${env_var:SystemRoot}\explorer.exe
  4. Set the arguments to /select,${resource_loc}
  5. Run it:

How do I run it?

When you have any file selected in Package Explorer view or Navigator view and run your new Shell program, the folder containing that file will automatically be opened in windows explorer. Note: If you are in the editor it will show the file you are currently editing in the explorer.... Note: If you don't run immediately, you should either add it to the favorites in the "External Tools" Menu, or run it once, then it will be added to the favorites.