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

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?

Error when using menu.module

I get the following error since i uploaded and tried installing the menu.module.

warning: Invalid argument supplied for foreach() in /home/virtual/site585/fst/var/www/html/modules/system.module on line 202.

how can i fix this?

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal