Having problems installing Drupal? See the Installation Guide for more information.

Missing step?

Greetings-

Pardon my inexperience, but I don't have the vocabulary to correctly describe this problem, nor to search the help pages effectively for it.

On completing the steps for an installation of Drupal 4.2.0 on the localhost of my debian machine, (including installation and set-up of mysql and php), my browser shows nothing but the list of files in my /var/www directory.

I have retraced the steps of the installation, restarted apache, reinstalled PHP4, made sure the .htaccess file was copied into the folder, and still I have no site.

Creating php block

Hello,

While trying to write a php block with this content:

$agent=$_SERVER[' HTTP_USER_AGENT'];
return t("$agent");

It shows nothing.
It works in a test.php on the same virtualhost.
What is wrong?

Multilingual site - switching languages

Hi,

I've translated whole my Drupal site to Polish using locale.module, but I don't want to have it in one language only. How I can create simple link on the home page which will allow user changing language? And without messing up URL?

Thanks in advance for help
A.

First time admin login

When i click the create new account button NOTHING happens, i just get the same page! whats wrong?
base_url is correct, database login is correct.

Why Can't I Edit theme.inc?

No matter what i try I am unable to edit theme.inc. I am getting very frustrated with this.

Here is an example of what i am trying to change:

function theme_list($refresh = 0) {
  static $list;

  if ($refresh) {
    unset($list);
  }

  if (!$list) {
    $list = array();
    $result = db_query("SELECT * FROM {system} where type = 'theme' AND status = '1' ORDER BY name");
    while ($theme = db_fetch_object($result)) {
      if (file_exists($theme->filename)) {
        $list[$theme->name] = $theme;
      }
    }
  }

  return $list;
}

This Is What I Want To Do:

function theme_list($refresh = 0) {
  static $list;
  
  $strHost = explode(".", $_SERVER['HTTP_HOST']);
  $base_host = strtolower($strHost[1]);
  
  if ($refresh) {
    unset($list);
  }

  if (!$list) {
    $list = array_fill(0,1,$base_host);
    
  }

  return $list;
}

I always end up with header errors (and not because of trailing spaces, the spaces stay exactly the same as they are distributed).

What am i doing wrong?

errors may be viewed Here

Disable Navigation Block

I asked this before at one point and I thought it was resolved in the 4.3rc. But I can't figure it out in the final release. It seems that the Navigation block is showing to all users. When I try to disable it for anonymous users, I lose the menu for logged in users (and thus, my administration menu). Is there a way to disable the defualt content so it doesn't show this block for unauthenticated users?

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal