Useful Drupal Skills

How to show a block only at front page or homepage?
1. Go to Administration » Structure;
2. Click ‘Add block’, and fill in “Add block”, and your code at “Add block”;
3. Under “Show block on specific pages”, Click “Pages on which this PHP code returns TRUE (experts only)”, and copy the folling code in the blank box:


Posted in Drupal. Comments Off on Useful Drupal Skills »

Drupal 6.22 installation stuck at database configuration

When we install a new drupal 6.22, after the first 2 steps:

  1. Choose language
  2. Verify requirements

The third step “Set up database” may prevent you from installing successfully. There are not any error messages to show what the problem is either. How to do then?

During the installation you may have renamed the file /sites/default/default.settings.php to /sites/default/settings.php.

However, Drupal expects you to make a copy if this file, not rename it! So you will know what to do now. Just copy default.settings and save it to /sites/default/.

Done.

Posted in Drupal. Comments Off on Drupal 6.22 installation stuck at database configuration »

Not recognizing database while installing drupal 6.9

Here is the error that I’m receiving (below):

Failed to connect to your MySQL database server. MySQL reports the following message: Access denied for user ‘govspons_bmarkfo’@’localhost’ (using password: YES).
Are you sure you have the correct username and password?
Are you sure that you have typed the correct database hostname?
Are you sure that the database server is running?

A: In your sites folder, do you have a settings.php and a default.settings.php file? if not you should.

Posted in Drupal. Comments Off on Not recognizing database while installing drupal 6.9 »
King Php Science Welcome, you are from: 54.205.172.57