For some reason, after updating to 4.30 and the most recent release of the event module, events are no longer accessible from the calendar. In previous version I could click on the calendar day and be taken to a page that listed the event... am i doing something wrong? I followed the installation instructions to the letter.
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.
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?
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).