Redirect the website with 'www' in Drupal 7

I want to set my website with 'www' prefix on the url. i have setup the website base url on setting.php
like

$base_url = 'http://www.example.com/';

But if i open the website without 'www' it should redirects on http://www.example.com/.

I don't want to add any patch in my drupal files.

Currently i my redirects on http://example.com/ URL.

Compulsory migration woes (PostgreSQL to MySQL)

So we did up a massive Drupal 7 site using PostgreSQL (our favourite db) then found out that our host (using CPanel) only supports PostgreSQL 8.1.x and we need @least 8.3 and PDO. So I proceed to try to change the db to MySQL. No ends of headache. Here are the steps I've taken and the error I've got.

how to make 100% width content for certain content type node?

I made my own theme with side bar region.
But for all my photo gallery node under "Photos" content type, I want the content to be seen 100% width without side bar region.

I know configuring blocks for specific page only/excluding...etc...
configuring blocks for specific page only
How can I override my theme that has a sidebar region? Should I make other theme without side bar region?

How to Switch theme on the fly?

same modules. What do I want? I'd like to put a button, a select button or something else so that the user can Switch between site's themes?

In this way, I would be able to test the CSS themes for different clients in order to test the look and feel. I don't want to copy the entire source code for each site that I have.

did anybody get what I mean?

Pass Form Sellection as Parameter

I've got 2 arrays that I'm running on my user registration page. One array is for presentation and the other is for the database. The first array propogates radio buttons. I want to be able to take the users selection (i.e. edit-store-5) and use this to pull the value from my second array which will go into the database. How can I get this value once the form is submitted?

When uploading my module, it is giving me .info file error

Hi,

When I upload my custom module to my site, when I upload it, drupal is telling me that it can't find the .info file. I double checked the zip file that I uploaded, and it does have a .info file, and a .module file. Is there any more files that I need, or am I naming it wrong?

Amar

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x