How to add "Tweet This" to a node

Ever wanted to add a "Tweet This" to your nodes? Here is how I did it at somoscanada.com. This short tutorial is for people using Drupal.

Open the file node.tpl.php, located under your active theme(sites > all > themes).

At line 96 approximately, add this code(you need to type it!), just before "<?php if ($terms): ?>">. And I am using the Zen theme:

Replace http://somoscanada.com to your domain.

I am using URL Alias(Path module), that's why you see "echo $node->path", it prints the node alias. If you are not using the Path module, then replace that with "php print $node->nid", it prints node/ID. Read This »

Google Wave Invites

It's been almost a year now since Google unveiled Google Wave to a limited number of people. Google Wave is still in invitation only. I will not go into details about what Google Wave is, learn more about it here.

If you would like to give it a try, I am giving away some invites. I have given away a few ones, and it appears that the invites are sent out right away. Leave a comment and add your email or contact me here.

Update: May 19, 2010. Google Wave is now open to the general public.

The Olympics are here - Free Shows

I just wanted to share with you a link that someone posted on Facebook, it has long list of Free Shows in various areas.

Remember that you need to be a Facebook member to see it.

Remove Bing as your default search engine in the address bar in Firefox

Firefox is my favorite browser, i use it a lot for searching using the address bar, i would just type what i am looking for and i would get the results using Google Search.

Firefox uses Google as the default search engine. But recently, this changed, instead of Google search, i get Bing, the new(just the name) search engine from Microsoft.

If you are in the same scenario as me, let me show you how to change or remove Bing as the default search engine in the address bar.

Here's how. I am using quotes just for highlighting.

Open Firefox, in the address bar, type "about:config", if it does not work, add a space(push the Space Bar) after config "about:config ", then hit enter. Read This »

Watermark a picture using Picasa

Open Picasa, click on a picture, to select multiple pictures, hold down the CTR key and click on another picture, any picture for that matter.

Now at the top left corner of your program, click on "File", select "Export Picture to Folder", check the option "Add a watermark:", type your message in the box, the text you enter here will appear on your image(s).

That's it, make sure you remember where you are saving your photos. Go ahead, upload them in Facebook or Twitpic. You do not need special software to watermark your photos.

Zen Classic, the best Drupal theme

The Zen theme is indeed one of the best themes for customizing your Drupal, in my opinion. The theme has lots of information in the page.tpl.php file, the usage of each Drupal function and CSS is included in the page.tpl.php template.

One feature i really like is the ability to have a fixed width of a site, Zen Classic makes it easy, just by checking a button. If you are new to Drupal and cannot decide on a theme, go for the Zen theme and enable the sub-theme Zen classic.

A quick tutorial of Magento E-commerce installation on Wamp Server

Magento is an ecommerce platform, for selling goods and services online.

Before we start the installation, make sure you have php_mcrypt and php_curl enabled, we need these extensions working and also, ensure your database is already created, I named mine 'magento', of course.

Download the Full Magento Package here, extract it to your www folder.

In your browser address bar, type in '127.0.0.1', NOT 'localhost', otherwise, you will get some Cookie issues, which will not allow you to login to your Magento administration page after the installation. Read This »

Add a map in your Blog using Google Elements

Make your web site live and interactive by using Google Elements. Google Elements has several small scripts that you can use to make your blog more interactive, even attractive. Add a Calendar, a Custom Search and Spreadsheets in your web site.

Adding a map in your blog is very easy. Go to Google Elements, enter an address, then copy and paste the snippet in your page. Here is an example: Read This »

Syndicate content