Drupal / CMS

Create your own blog with my FREE Drupal installation

Have you ever wanted to start your very own blog but did not know how? Now you can! I will help you set it up for you and for free! One of the main reasons a lot of people do not start their blog is because they find it difficult set up. And when they hear terms like FTP, Modules, Themes, CPanel, Databases, and so on, they are completely discouraged to start their blog.

Many would be bloggers shy away from even attempting to start their blogs, again, because of the difficulty involved in setting it up. If you find yourself in this situation, you will be glad to hear about my FREE Drupal Blog Installation Service. Find out how to get your own FREE blog.

Customizing a specific node in Drupal

Here is a quick tutorial about customizing a single node in Drupal. There are many reasons you want to customize a node, could be a sponsors page, a product you are promoting, a splash page, just a few examples. You can see a working example of a node already customized here.

Our goal here is to remove the top part of the page, the left and side parts of the page. You can also remove bottom part of the page if you like. The node can be fully customized. At the end, you are left with just the page content.

I used the fusion theme in this example, you can achieve the same thing with any other theme.

1 - First create a page/story, or if you have one already, find its node ID(node/NODENUMBER)

Custom node in Drupal

This is a customized node!

Home

How to add the Facebook Like button to your theme

It's been a while since I wrote a post here on my blog. I have been busy lately with some personal projects.

Let's get started. With the increasing popularity of Facebook social plugins, such as the Like button, many people wonder how to add the Like button to their theme. In this quick tutorial, I will show you how to add it in your Zen theme.

1. Open your Zen theme folder and locate the node.tpl.php. I am using version 2.0 of Zen, and I have my themes saved at sites/all/themes/zen/templates/

2. Once you find the template, find the following code
<?php print $links; ?>
Add the following, right below it(Type it!):

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.

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.

Create a region and use it to place a banner - Using the Zen classic theme

I will show you how to create a header region and use it to place a banner or add any content to it. We will use the Zen Classic theme in this tutorial.

Open the zen_classic.info file and add this at the begging or at the end of your Regions section. Note that the name of the region we are using is headertwo, you can name it whatever you like, no spaces underscore and uppercase are fine:

regions[headertwo] = header two

Now open your zen-classic.css style sheet and add the next CSS to the very end of it, the CSS will hold the region we are creating:

.headerContainer {
display: inline;
position: absolute;
margin: 0 0.5em;
}

We need to modify the the page.tpl.php template, open it and add this:

Spammers, beware, Mollom will kick your butt


A quote from the creators page:
Mollom is a web service that analyzes the quality of content posted to websites. This includes comments, contact-form messages, blogs, forum posts, etc. Mollom specifically tries to determine whether this content is unwanted - i.e. "spam" - or desirable - i.e. "ham."

This module does a wonderful job in blocking spammers from my site. When someone posts a comment, for example, Mollom sends the data to http://mollom.com, it goes through an analysis, it then returns the content back and classifies it as 'Spam' or 'Ham, now if it is unsure as of what to do with the information, it tags it as 'Unsure', it then presents it to the visitor with a CAPTCHA challenge.

You don't need to know all the details about how it works, just know that it guards your web site against spammers, so you can focus your time on generating content for your blog.

Mollom is a module that was initially written for http://drupal.org, but has now been ported to other CMS platforms. Here is a version for WordPress http://wordpress.org/extend/plugins/wp-mollom/ and for Joomla http://extensions.joomla.org/component/option,com_mtree/task,v...

If you have a Drupal site and you would like to install it, visit http://drupal.org/project/mollom, the main page is at http://mollom.com